Downloads · 30 days
6
0% of all-time downloads
reissbaker/r1-llama-70b-distill-lora
r1-llama-70b-distill-lora is a machine learning model from reissbaker. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as apache-2.0.
This LoRA adapter was distilled from deepseek-ai/DeepSeek-R1 and uses meta-llama/Llama-3.1-70B-Instruct as a base. Despite being a mere rank-32 LoRA adapter on top of Llama-3.1-70B-Instruct, trained on less than 10k p…
Downloads · 30 days
6
0% of all-time downloads
All-time downloads
7.1K
Public
Repo size
2.5 GB
Likes
0
Public
Click a slice to open those files.
.safetensors829 MB · 99%
From the Hugging Face model README
This LoRA adapter was distilled from deepseek-ai/DeepSeek-R1 and uses meta-llama/Llama-3.1-70B-Instruct as a base. Despite being a mere rank-32 LoRA adapter on top of Llama-3.1-70B-Instruct, trained on less than 10k prompt/completion examples, it significantly outperforms the base model, gpt-4o, and typically Claude-3.5-Sonnet on MATH-500, AIME24, and GPQA Diamond, showing that system-2 style thinking can be cheaply trained in very small numbers of parameters.
The model was extracted by running prompts (not completions) from the following datasets through DeepSeek-R1 to generate a dataset of prompt/completion pairs using unfat:
We then modestly cleaned the generated dataset by stripping any completions that were missing
closing </think> tags, and trained for 2 epochs using Together.ai's serverless finetunning
platform. The total cost for extracting the data from glhf.chat's API,
and training the model on Together, was less than $450.
We suspect even better performance could be achieved with larger training sets and improved data cleaning, e.g. formally-verifying R1 outputs and only training on correct answers, as OpenR1-Math-220k attempts.
Run the model with one click on glhf.chat by copying this repo URL and launching the model.
We used open-R1 to evaluate the models, since unlike some other popular eval frameworks, it has successfully reproduced the R1-distill evals from DeepSeek. The results are as follows:
| Model | MATH-500 | AIME24 | GPQA Diamond |
|---|---|---|---|
| reissbaker/r1-llama-70b-distill-lora | 86.8 | 20.0 | 61.6 |
| meta-llama/Llama-3.1-70B-Instruct | 56.6 | 10.0 | 45.9 |
| gpt-4o-0513 † | 74.6 | 9.3 | 49.9 |
| Claude-3.5-Sonnet-1022 † | 78.3 | 16.0 | 65.0 |
| deepseek-ai/DeepSeek-R1-Distill-Llama-70B † | 94.5 | 70.0 | 65.2 |
<sup><sub>† Eval results reported by DeepSeek</sub></sup>
Our LoRA significantly outperforms non-reasoning models on most benchmarks, and is a large improvement over the base Llama-3.1-70B-Instruct model. DeepSeek's full-parameter finetune (on larger datasets) significantly outperforms it on these tasks, however.