WhoBuilt

Llama 3 fine-tuning

Methods for adapting Llama 3 models to specific tasks using training data.

From talks

Results and examples shared in single talks

Timeline 0

Dated events, newest first. Open the sources under any item.

How we verify
20241 event
  1. as of Jul 2024metric
    Use batch size 2 and gradient accumulation 4 for effective batch size 8.
    “Use a batch size of two and gradient accumulation of four.”
    15:30inFixing bugs in Gemma, Llama, & Phi 3YouTube

Talks 1

17:41
Fixing bugs in Gemma, Llama, & Phi 3

Daniel Han explains bugs that can break fine-tuning or inference with Llama 3, Gemma, and Phi-3, including duplicate BOS tokens, untrained tokens, and identical pad and EOS tokens. He describes how Unsloth handles some of these issues and shares community fixes for llama.cpp conversion and system prompts. The talk also walks through Unsloth notebooks for fine-tuning and exporting models to Ollama, covering chat templates, LoRA settings, data preparation, and memory use. He closes with suggested training settings and guidance for running inference and saving models as GGUF files.

Jul 31, 2024· 18 minDiscussed 2:00