Harsha901 commited on
Commit
14319ee
·
verified ·
1 Parent(s): 487a30e

Model save

Browse files
Files changed (1) hide show
  1. README.md +69 -0
README.md ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Qwen/Qwen2.5-Coder-3B-Instruct
3
+ library_name: transformers
4
+ model_name: qwen2.5-coder-3b-distilled-from-14b
5
+ tags:
6
+ - generated_from_trainer
7
+ - distillation
8
+ - trl
9
+ licence: license
10
+ ---
11
+
12
+ # Model Card for qwen2.5-coder-3b-distilled-from-14b
13
+
14
+ This model is a fine-tuned version of [Qwen/Qwen2.5-Coder-3B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Coder-3B-Instruct).
15
+ It has been trained using [TRL](https://github.com/huggingface/trl).
16
+
17
+ ## Quick start
18
+
19
+ ```python
20
+ from transformers import pipeline
21
+
22
+ question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
23
+ generator = pipeline("text-generation", model="Harsha901/qwen2.5-coder-3b-distilled-from-14b", device="cuda")
24
+ output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
25
+ print(output["generated_text"])
26
+ ```
27
+
28
+ ## Training procedure
29
+
30
+
31
+
32
+
33
+
34
+ This model was trained with Distillation, a method introduced in [On-Policy Distillation of Language Models: Learning from Self-Generated Mistakes](https://huggingface.co/papers/2306.13649).
35
+
36
+ ### Framework versions
37
+
38
+ - TRL: 1.4.0
39
+ - Transformers: 5.0.0
40
+ - Pytorch: 2.10.0+cu128
41
+ - Datasets: 4.8.5
42
+ - Tokenizers: 0.22.2
43
+
44
+ ## Citations
45
+
46
+ Cite Distillation as:
47
+
48
+ ```bibtex
49
+ @inproceedings{agarwal2024on-policy,
50
+ title = {{On-Policy Distillation of Language Models: Learning from Self-Generated Mistakes}},
51
+ author = {Rishabh Agarwal and Nino Vieillard and Yongchao Zhou and Piotr Stanczyk and Sabela Ramos Garea and Matthieu Geist and Olivier Bachem},
52
+ year = 2024,
53
+ booktitle = {The Twelfth International Conference on Learning Representations, {ICLR} 2024, Vienna, Austria, May 7-11, 2024},
54
+ publisher = {OpenReview.net},
55
+ url = {https://openreview.net/forum?id=3zKtaqxLhW},
56
+ }
57
+ ```
58
+
59
+ Cite TRL as:
60
+
61
+ ```bibtex
62
+ @software{vonwerra2020trl,
63
+ title = {{TRL: Transformers Reinforcement Learning}},
64
+ author = {von Werra, Leandro and Belkada, Younes and Tunstall, Lewis and Beeching, Edward and Thrush, Tristan and Lambert, Nathan and Huang, Shengyi and Rasul, Kashif and Gallouédec, Quentin},
65
+ license = {Apache-2.0},
66
+ url = {https://github.com/huggingface/trl},
67
+ year = {2020}
68
+ }
69
+ ```