← All courses ← Course home

Lesson 08 of 08

End-to-end checklist

Check private data, Mac training, the merged graph, the tokenizer, the Core AI export, and on-device writing as one package you can rebuild.

Agent brief (llms.md)

Why this checklist is what you deliver

You deliver a baked language model, the tokenizer it was exported with, the notes that can rebuild both, and a device measurement. A notebook is not that package. A runtime adapter is not that package.

The sibling course, Diffusion LoRA to Core AI on device, is the same method for images. Complete both if you want both methods.

The steps, one box at a time

WritingPrivate and prepared
WritingPrivate and prepared
LoRACheckpoint reviewed
WritingPrivate and prepared
LoRACheckpoint reviewed
Core AIMerge and export
WritingPrivate and prepared
LoRACheckpoint reviewed
Core AIMerge and export
ChatModel and tokenizer load

Environment setup

curl -LsSf https://astral.sh/uv/install.sh | sh
mkdir -p writing-style-lora && cd writing-style-lora
uv init --python 3.11
uv venv
uv add torch torchvision transformers peft datasets accelerate safetensors coreai-torch
uv run python -c "import torch; print(torch.__version__); print('MPS:', torch.backends.mps.is_available())"
uv run coreai.llm.export --help
xcodebuild -version

Data and model

Training evidence

Merge, export, and device

Failure modes

Done when

Keep learning

PyTorch to Core AI in Xcode · From the metal to the model · Core AI models, typed · Model architectures in plain English · Diffusion LoRA to Core AI on device

Key concepts

  • The package is baked model, tokenizer, rebuild notes, device measurement, and lesson 07 eval.
  • Data must be local, licensed, cleaned, and secret-scanned.
  • Ship merge, export, checksums, Xcode 27 prepare-once, and the platform preset you tested.
  • Keep the adapter and tokenizer for rebuild.

Takeaways

  • The adapter alone is not the product.
  • Missing secret scan or device latency is an untested claim.
  • A new engineer should rebuild without guessing export flags.