PirxTion commited on
Commit
3f2cbcb
·
verified ·
1 Parent(s): 86bf1c1

Model save

Browse files
Files changed (3) hide show
  1. README.md +70 -0
  2. generation_config.json +8 -0
  3. model.safetensors +1 -1
README.md ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: andresnowak/Qwen3-0.6B-instruction-finetuned_v2
3
+ library_name: transformers
4
+ model_name: full-dataset-instruction
5
+ tags:
6
+ - generated_from_trainer
7
+ - unsloth
8
+ - trl
9
+ - dpo
10
+ licence: license
11
+ ---
12
+
13
+ # Model Card for full-dataset-instruction
14
+
15
+ This model is a fine-tuned version of [andresnowak/Qwen3-0.6B-instruction-finetuned_v2](https://huggingface.co/andresnowak/Qwen3-0.6B-instruction-finetuned_v2).
16
+ It has been trained using [TRL](https://github.com/huggingface/trl).
17
+
18
+ ## Quick start
19
+
20
+ ```python
21
+ from transformers import pipeline
22
+
23
+ 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?"
24
+ generator = pipeline("text-generation", model="PirxTion/full-dataset-instruction", device="cuda")
25
+ output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
26
+ print(output["generated_text"])
27
+ ```
28
+
29
+ ## Training procedure
30
+
31
+ [<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/jingxuan-sun-epfl/mnlp-dpo/runs/6nw49wfv)
32
+
33
+
34
+ This model was trained with DPO, a method introduced in [Direct Preference Optimization: Your Language Model is Secretly a Reward Model](https://huggingface.co/papers/2305.18290).
35
+
36
+ ### Framework versions
37
+
38
+ - TRL: 0.15.2
39
+ - Transformers: 4.52.3
40
+ - Pytorch: 2.7.0
41
+ - Datasets: 3.6.0
42
+ - Tokenizers: 0.21.0
43
+
44
+ ## Citations
45
+
46
+ Cite DPO as:
47
+
48
+ ```bibtex
49
+ @inproceedings{rafailov2023direct,
50
+ title = {{Direct Preference Optimization: Your Language Model is Secretly a Reward Model}},
51
+ author = {Rafael Rafailov and Archit Sharma and Eric Mitchell and Christopher D. Manning and Stefano Ermon and Chelsea Finn},
52
+ year = 2023,
53
+ booktitle = {Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023},
54
+ url = {http://papers.nips.cc/paper_files/paper/2023/hash/a85b405ed65c6477a4fe8302b5e06ce7-Abstract-Conference.html},
55
+ editor = {Alice Oh and Tristan Naumann and Amir Globerson and Kate Saenko and Moritz Hardt and Sergey Levine},
56
+ }
57
+ ```
58
+
59
+ Cite TRL as:
60
+
61
+ ```bibtex
62
+ @misc{vonwerra2022trl,
63
+ title = {{TRL: Transformer Reinforcement Learning}},
64
+ author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallouédec},
65
+ year = 2020,
66
+ journal = {GitHub repository},
67
+ publisher = {GitHub},
68
+ howpublished = {\url{https://github.com/huggingface/trl}}
69
+ }
70
+ ```
generation_config.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 151643,
3
+ "eos_token_id": 151643,
4
+ "max_length": 32768,
5
+ "max_new_tokens": 2048,
6
+ "pad_token_id": 151654,
7
+ "transformers_version": "4.52.3"
8
+ }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4814d4706e912d08e8ef53091f1664e42d950950a24552809078731bbf445201
3
  size 1192135096
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ddfd193ea1c840c0bf2e9eeb905f5fad55c2a7290b1ce2a06ff94e01e166e05e
3
  size 1192135096