You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,i'm highly interested in this position.
I am curious to know if the Hugging Face baseline incorporates Flash Attention2. Could you please offer a reproducible Hugging Face baseline example?
If you use 1 GPU, the speedup is as we described in the 1 GPU table on the readme - around 1.8x ish.
The error losses are nearly identical for the first 60 steps, albeit some differences due to FA2, and Triton kernel's internal upcasting to f32:
A bit blurry since I copied it from Google Sheets - you can compare the losses yourself in the 2 notebooks.
All benchmarking uses max_seq_len = 2048, bsz = 2, ga = 4, max_grad_norm = 0.3, num_train_epochs = 1, seed = 3047, lr = 2e-4, wd = 0.01, optim = "adamw_8bit", schedule = "linear", schedule_steps = 10 except the Slim Orca benchmark on DDP, where it OOMed. We had to reduce the bsz=1 for ALL comparisons on Slim Orca, so the Slim Orca column for all methods is bsz=1. We could have tested Unsloth for Slim Orca on bsz=2, since we reduce memory usage by 50%, but for consistency, it is still bsz=1.
You are more than free to fork the Kaggle notebooks, and change the datasets or play around with them. Hope they're useful!
Activity
danielhanchen commentedon Dec 4, 2023
@lugimzzz The baseline as we mentioned is the reference Huggingface implementation from the QLoRA repo - https://colab.research.google.com/drive/1VoYNfYDKcKRQRor98Zbf2-9VQTtGJ24k?usp=sharing, so no, not using FA2. Our benchmark is from the reference implementation as specified from the repo.
I'll edit the readme to include 2 Kaggle benchmarking notebooks for Unsloth Open vs HF original - it's currently on the dev branch: https://github.com/unslothai/unsloth/tree/dev.2023.12.
If you use 1 GPU, the speedup is as we described in the 1 GPU table on the readme - around 1.8x ish.
The error losses are nearly identical for the first 60 steps, albeit some differences due to FA2, and Triton kernel's internal upcasting to f32:

A bit blurry since I copied it from Google Sheets - you can compare the losses yourself in the 2 notebooks.
All benchmarking uses
max_seq_len = 2048, bsz = 2, ga = 4, max_grad_norm = 0.3, num_train_epochs = 1, seed = 3047, lr = 2e-4, wd = 0.01, optim = "adamw_8bit", schedule = "linear", schedule_steps = 10except the Slim Orca benchmark on DDP, where it OOMed. We had to reduce thebsz=1for ALL comparisons on Slim Orca, so the Slim Orca column for all methods isbsz=1. We could have tested Unsloth for Slim Orca onbsz=2, since we reduce memory usage by 50%, but for consistency, it is stillbsz=1.You are more than free to fork the Kaggle notebooks, and change the datasets or play around with them. Hope they're useful!
Thanks for your interest in Unsloth!
danielhanchen commentedon Dec 14, 2023
@lugimzzz Just wrote up a full blog post on benchmarking + shared 59 notebooks on all our benchmarks if you're interested: https://unsloth.ai/blog/mistral-benchmark
Gemma bug fix (unslothai#13)
Gemma bug fix (unslothai#13)
Gemma bug fix (unslothai#13)
Fix gemini round 6 + URL audit: amd.py defensive checks, rocm6.5+ cli…
Add AMD ROCm/HIP support across installer and hardware detection (#4720)
Fix/adjust diffusion: round 24 P1 batch for PR #5754
Fix/adjust diffusion: round 26 P1 batch for PR #5754
Fix/adjust diffusion: round 27 follow-up P1 batch for PR #5754
[CS146S Stanford] Studio web fetch: a bare & stays as written, and es…