bhuvana-ak7 commited on
Commit
18371a9
1 Parent(s): 4f58add

orpo_trained_gpt_neo

Browse files
README.md ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: EleutherAI/gpt-neo-1.3B
3
+ library_name: transformers
4
+ model_name: orpo_output
5
+ tags:
6
+ - generated_from_trainer
7
+ - trl
8
+ - orpo
9
+ licence: license
10
+ ---
11
+
12
+ # Model Card for orpo_output
13
+
14
+ This model is a fine-tuned version of [EleutherAI/gpt-neo-1.3B](https://huggingface.co/EleutherAI/gpt-neo-1.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="bhuvana-ak7/orpo_output", 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/kbhuvi-uplimit/huggingface/runs/3fc4177s)
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.0.dev0
37
+ - Transformers: 4.47.0.dev0
38
+ - Pytorch: 2.5.0+cu121
39
+ - Datasets: 3.0.2
40
+ - Tokenizers: 0.20.1
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
+ ```
adapter_config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "EleutherAI/gpt-neo-1.3B",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layer_replication": null,
10
+ "layers_pattern": null,
11
+ "layers_to_transform": null,
12
+ "loftq_config": {},
13
+ "lora_alpha": 32,
14
+ "lora_dropout": 0.05,
15
+ "megatron_config": null,
16
+ "megatron_core": "megatron.core",
17
+ "modules_to_save": null,
18
+ "peft_type": "LORA",
19
+ "r": 16,
20
+ "rank_pattern": {},
21
+ "revision": null,
22
+ "target_modules": [
23
+ "q_proj",
24
+ "v_proj"
25
+ ],
26
+ "task_type": "CAUSAL_LM",
27
+ "use_dora": false,
28
+ "use_rslora": false
29
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:29acf2213c36ea4b9af5f2f569e2f989f9bac2983ec0c16905d6640e3a8b2b2e
3
+ size 12596280
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
runs/Oct25_14-30-34_81f944140d94/events.out.tfevents.1729866768.81f944140d94.1537.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:df68479b223191949d468ebb1db73cabdffe86e42a3ac260a4ad0db11c42ab9f
3
+ size 29289
runs/Oct25_14-57-33_81f944140d94/events.out.tfevents.1729868377.81f944140d94.1537.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bbdd2035c5549a22b8eaca23848b0728da98c2e3d18bef6ff33fd24136998699
3
+ size 61109
runs/Oct25_15-52-46_81f944140d94/events.out.tfevents.1729871699.81f944140d94.1537.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c0c63a2408b4a8f1b1177dcccb2ca9f78ae7138a1e9d183a559c2d0c44c0ca68
3
+ size 92315
special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<|endoftext|>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "<|endoftext|>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "<|endoftext|>",
17
+ "unk_token": {
18
+ "content": "<|endoftext|>",
19
+ "lstrip": false,
20
+ "normalized": true,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "50256": {
6
+ "content": "<|endoftext|>",
7
+ "lstrip": false,
8
+ "normalized": true,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ }
13
+ },
14
+ "bos_token": "<|endoftext|>",
15
+ "clean_up_tokenization_spaces": false,
16
+ "eos_token": "<|endoftext|>",
17
+ "errors": "replace",
18
+ "model_max_length": 2048,
19
+ "pad_token": "<|endoftext|>",
20
+ "tokenizer_class": "GPT2Tokenizer",
21
+ "unk_token": "<|endoftext|>"
22
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb61c2b8f7eaabf041b28f9e5b97f7425278bd5ee84c41f19ea0acdfa3652c6a
3
+ size 5560
vocab.json ADDED
The diff for this file is too large to render. See raw diff