obiwit commited on
Commit
86a7838
·
verified ·
1 Parent(s): 25583c3

Model save

Browse files
README.md ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: meta-llama/Llama-3.2-3B
3
+ library_name: transformers
4
+ model_name: llama3.2-3b-orpo-finegrained
5
+ tags:
6
+ - generated_from_trainer
7
+ - trl
8
+ - orpo
9
+ licence: license
10
+ ---
11
+
12
+ # Model Card for llama3.2-3b-orpo-finegrained
13
+
14
+ This model is a fine-tuned version of [meta-llama/Llama-3.2-3B](https://huggingface.co/meta-llama/Llama-3.2-3B).
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="CriteriaPO/llama3.2-3b-orpo-finegrained", 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
+ [<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/bborges/CriteriaPreferences/runs/q3omw6ho)
31
+
32
+ This model was trained with ORPO, a method introduced in [ORPO: Monolithic Preference Optimization without Reference Model](https://huggingface.co/papers/2403.07691).
33
+
34
+ ### Framework versions
35
+
36
+ - TRL: 0.12.2
37
+ - Transformers: 4.46.3
38
+ - Pytorch: 2.1.2+cu121
39
+ - Datasets: 3.1.0
40
+ - Tokenizers: 0.20.3
41
+
42
+ ## Citations
43
+
44
+ Cite ORPO as:
45
+
46
+ ```bibtex
47
+ @article{hong2024orpo,
48
+ title = {{ORPO: Monolithic Preference Optimization without Reference Model}},
49
+ author = {Jiwoo Hong and Noah Lee and James Thorne},
50
+ year = 2024,
51
+ eprint = {arXiv:2403.07691}
52
+ }
53
+ ```
54
+
55
+ Cite TRL as:
56
+
57
+ ```bibtex
58
+ @misc{vonwerra2022trl,
59
+ title = {{TRL: Transformer Reinforcement Learning}},
60
+ 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},
61
+ year = 2020,
62
+ journal = {GitHub repository},
63
+ publisher = {GitHub},
64
+ howpublished = {\url{https://github.com/huggingface/trl}}
65
+ }
66
+ ```
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.9999635926748461,
3
+ "total_flos": 0.0,
4
+ "train_loss": 0.824514170289517,
5
+ "train_runtime": 95775.3447,
6
+ "train_samples": 1757879,
7
+ "train_samples_per_second": 18.354,
8
+ "train_steps_per_second": 0.143
9
+ }
generation_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 128000,
4
+ "do_sample": true,
5
+ "eos_token_id": 128001,
6
+ "temperature": 0.6,
7
+ "top_p": 0.9,
8
+ "transformers_version": "4.46.3"
9
+ }
model-00001-of-00002.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5ffb64ba8efcbca01071ced69d84a0b8f0adf6e95c42425e0de2654b4818125d
3
  size 4965799096
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4719f522b43d4e280c32ff5835d1e17987fa939843d99b56488a41b37565ae54
3
  size 4965799096
model-00002-of-00002.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2e2d9c9b7bbceabfef615f52f6ef722fea1132a3dc248459fb365df425cbcc3a
3
  size 1459729952
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2efe6e17f0b24e1297fec3746df243df90a344092d15b36639a518c327730914
3
  size 1459729952
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.9999635926748461,
3
+ "total_flos": 0.0,
4
+ "train_loss": 0.824514170289517,
5
+ "train_runtime": 95775.3447,
6
+ "train_samples": 1757879,
7
+ "train_samples_per_second": 18.354,
8
+ "train_steps_per_second": 0.143
9
+ }
trainer_state.json ADDED
The diff for this file is too large to render. See raw diff