← All courses

EDGE FDE

Intermediate

From Metal to Core AI Model

Start at Metal shaders. Walk the clothing-classifier stack backwards until you return to the original pipeline lesson.

For people who finished, or quickly looked through, PyTorch to Core AI in Xcode.

Lessons

  1. What the GPU actually runs
  2. Read Instruments from the chip up
  3. Treat Core AI as the program that runs the model
  4. Keep SwiftUI thin: it only feeds the model
  5. Convert so the runtime gets a graph it can run
  6. Training must give conversion a model it can use
  7. Meet the original pipeline again

Key concepts

Takeaways

Agent briefs

FAQ

What does this course walk?

It starts at Metal shaders and walks the clothing-classifier stack backwards until you return to the original pipeline lesson.

What is the clothing model contract?

clothing.aimodel, function main, image [1, 1, 28, 28] float32 0-1, logits [1, 10].

Where does Core AI run?

Core AI can run on CPU, GPU, or Neural Engine. Metal is how the GPU runs work.

Why walk the stack backwards?

Each layer above must give the layer below shapes, types, supported ops, and prepare once. When something breaks, ask which lower-layer requirement failed before you blame the UI.

Do I need the PyTorch to Core AI course first?

This course is for people who finished, or quickly looked through, PyTorch to Core AI in Xcode.