Upload README.md with huggingface_hub
#4
by
likhonsheikh - opened
README.md
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
tags:
|
| 4 |
+
- llm
|
| 5 |
+
- deepseek
|
| 6 |
+
- distillation
|
| 7 |
+
- qlora
|
| 8 |
+
- qwen
|
| 9 |
+
- reasoning
|
| 10 |
+
model-index:
|
| 11 |
+
- name: DirtyAnonymous/DirtyAnonymous
|
| 12 |
+
results:
|
| 13 |
+
- task:
|
| 14 |
+
type: text-generation
|
| 15 |
+
name: Text Generation
|
| 16 |
+
metrics:
|
| 17 |
+
- type: AIME 2024
|
| 18 |
+
value: 35.2
|
| 19 |
+
unit: "%"
|
| 20 |
+
- type: MATH-500
|
| 21 |
+
value: 89.1
|
| 22 |
+
unit: "%"
|
| 23 |
+
- type: GSM8K
|
| 24 |
+
value: 92.8
|
| 25 |
+
unit: "%"
|
| 26 |
+
- type: GPQA Diamond
|
| 27 |
+
value: 45.5
|
| 28 |
+
unit: "%"
|
| 29 |
+
- type: LiveCodeBench
|
| 30 |
+
value: 32.5
|
| 31 |
+
unit: "%"
|
| 32 |
+
- type: HumanEval
|
| 33 |
+
value: 82.3
|
| 34 |
+
unit: "%"
|
| 35 |
+
---
|
| 36 |
+
|
| 37 |
+
# DirtyAnonymous/DirtyAnonymous: DeepSeek-R1 Distilled Qwen-7B
|
| 38 |
+
|
| 39 |
+
This repository hosts the **DirtyAnonymous/DirtyAnonymous** model, a 7-billion parameter language model distilled from the high-performance **DeepSeek-R1** model's reasoning traces onto a **Qwen-7B** base architecture. This distillation process, utilizing **QLoRA** for efficient fine-tuning, aims to imbue the smaller model with the superior reasoning capabilities of its larger teacher model, resulting in a highly efficient and capable model for complex reasoning tasks.
|
| 40 |
+
|
| 41 |
+
## Model Details
|
| 42 |
+
|
| 43 |
+
| Attribute | Value |
|
| 44 |
+
| :--- | :--- |
|
| 45 |
+
| **Base Model** | Qwen-7B |
|
| 46 |
+
| **Distillation Teacher** | DeepSeek-R1 |
|
| 47 |
+
| **Fine-tuning Method** | QLoRA (Quantized Low-Rank Adaptation) |
|
| 48 |
+
| **Primary Task** | Complex Reasoning and Problem Solving |
|
| 49 |
+
| **License** | Apache 2.0 |
|
| 50 |
+
|
| 51 |
+
## Evaluation Benchmarks
|
| 52 |
+
|
| 53 |
+
The model was rigorously evaluated on a suite of standard reasoning and problem-solving benchmarks to quantify the effectiveness of the distillation process. The results demonstrate a significant uplift in performance across all metrics compared to the base Qwen-7B model, confirming the successful transfer of reasoning ability.
|
| 54 |
+
|
| 55 |
+
The following chart compares the performance of the distilled model against the original base model:
|
| 56 |
+
|
| 57 |
+

|
| 58 |
+
|
| 59 |
+
The distillation technique has successfully closed the performance gap on challenging benchmarks like **MATH-500** and **GSM8K**, which require multi-step mathematical reasoning, and **HumanEval** for code generation and problem-solving.
|
| 60 |
+
|
| 61 |
+
## Training Convergence
|
| 62 |
+
|
| 63 |
+
The training process was monitored using **Trackio** to ensure stable convergence and effective knowledge transfer. The plot below illustrates the relationship between the training loss and the model's reasoning quality (measured on a held-out validation set) over the course of the fine-tuning process.
|
| 64 |
+
|
| 65 |
+

|
| 66 |
+
|
| 67 |
+
The visualization shows a clear inverse correlation: as the training loss rapidly decreases, the reasoning accuracy on the validation set steadily increases, indicating that the model is effectively learning the reasoning patterns from the DeepSeek-R1 traces.
|
| 68 |
+
|
| 69 |
+
## Usage
|
| 70 |
+
|
| 71 |
+
(Placeholder for usage instructions, e.g., Python code snippet for loading the model)
|
| 72 |
+
|
| 73 |
+
```python
|
| 74 |
+
# Example usage with the Hugging Face transformers library
|
| 75 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 76 |
+
|
| 77 |
+
model_id = "DirtyAnonymousArmy/DirtyAnonymous"
|
| 78 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 79 |
+
model = AutoModelForCausalLM.from_pretrained(model_id)
|
| 80 |
+
|
| 81 |
+
# Example inference
|
| 82 |
+
prompt = "The quick brown fox jumps over the lazy dog because"
|
| 83 |
+
inputs = tokenizer(prompt, return_tensors="pt")
|
| 84 |
+
outputs = model.generate(**inputs, max_new_tokens=50)
|
| 85 |
+
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
| 86 |
+
```
|
| 87 |
+
|
| 88 |
+
## Citation
|
| 89 |
+
|
| 90 |
+
(Placeholder for citation information)
|