~/talk

Hack Weekend: ML models on mobile

Talkat Scale By The Bay 2019 · 2019-11-13..11-15· [machine-learning]
slides:none on file

Attempts to run GPT-2 inside an iMessage extension over a weekend produce a working prototype only by falling back to server inference because Core ML refuses cyclic graphs: the model uses a while loop control flow and Core ML requires static graphs. The full model has about 117M parameters and ~500 MB on disk but 8‑bit quantization shrinks it to roughly 40 MB; Hugging Face’s Swift/Core ML port works but requires reimplementing tokenization and many low‑level tensor ops in Swift. Swift for TensorFlow looks like the real long‑term solution.

AI-written summary · about

  1. 0:00Intro
  2. 5:06Hack Weekend plan
  3. 6:58GBT to
  4. 8:26iMessage
  5. 9:04Python
  6. 9:33Complexity
  7. 11:46The Plan
  8. 13:01Core ML Hello World
  9. 14:48Core ML Model
  10. 17:14Core ML Limitations
  11. 23:33ML Engineering
  12. 28:11Neural Engines
  13. 29:30Motivation
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.