ggbetz commited on
Commit
aee975b
·
verified ·
1 Parent(s): f05f27e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +160 -19
README.md CHANGED
@@ -1,17 +1,32 @@
1
  ---
2
  library_name: transformers
3
- model_name: Llama-3.1-Argunaut-1-8B-HIRPO-dev4
 
 
 
 
4
  tags:
 
 
 
 
5
  - generated_from_trainer
6
  - trl
7
- - dpo
8
- licence: license
 
9
  ---
10
 
11
- # Model Card for Llama-3.1-Argunaut-1-8B-HIRPO-dev4
 
 
 
 
 
 
 
 
12
 
13
- This model is a fine-tuned version of [None](https://huggingface.co/None).
14
- It has been trained using [TRL](https://github.com/huggingface/trl).
15
 
16
  ## Quick start
17
 
@@ -19,17 +34,17 @@ It has been trained using [TRL](https://github.com/huggingface/trl).
19
  from transformers import pipeline
20
 
21
  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?"
22
- generator = pipeline("text-generation", model="DebateLabKIT/Llama-3.1-Argunaut-1-8B-HIRPO-dev4", device="cuda")
23
  output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
24
  print(output["generated_text"])
25
  ```
26
 
27
  ## Training procedure
28
 
29
- [<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/ggbetz/argunauts-training/runs/8afyfsbz)
30
 
 
31
 
32
- 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).
33
 
34
  ### Framework versions
35
 
@@ -39,20 +54,146 @@ This model was trained with DPO, a method introduced in [Direct Preference Optim
39
  - Datasets: 3.1.0
40
  - Tokenizers: 0.20.3
41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  ## Citations
43
 
44
- Cite DPO as:
45
 
46
  ```bibtex
47
- @inproceedings{rafailov2023direct,
48
- title = {{Direct Preference Optimization: Your Language Model is Secretly a Reward Model}},
49
- author = {Rafael Rafailov and Archit Sharma and Eric Mitchell and Christopher D. Manning and Stefano Ermon and Chelsea Finn},
50
- year = 2023,
51
- 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},
52
- url = {http://papers.nips.cc/paper_files/paper/2023/hash/a85b405ed65c6477a4fe8302b5e06ce7-Abstract-Conference.html},
53
- editor = {Alice Oh and Tristan Naumann and Amir Globerson and Kate Saenko and Moritz Hardt and Sergey Levine},
54
- }
55
- ```
56
 
57
  Cite TRL as:
58
 
 
1
  ---
2
  library_name: transformers
3
+ model_name: Llama-3.1-Argunaut-1-8B-HIRPO
4
+ pipeline_tag: text-generation
5
+ base_model: DebateLabKIT/Llama-3.1-Argunaut-1-8B-SPIN
6
+ datasets:
7
+ - DebateLabKIT/arguments-and-debates
8
  tags:
9
+ - logic
10
+ - argumentation
11
+ - critical-thinking
12
+ - argument-mapping
13
  - generated_from_trainer
14
  - trl
15
+ - rlvr
16
+ - hirpo
17
+ licence: llama3.1
18
  ---
19
 
20
+ # Model Card for Llama-3.1-Argunaut-1-8B-HIRPO
21
+
22
+ This model is a fine-tuned version of [DebateLabKIT/Llama-3.1-Argunaut-1-8B-SPIN](https://huggingface.co/DebateLabKIT/Llama-3.1-Argunaut-1-8B-SPIN).
23
+ It has been trained using [TRL](https://github.com/huggingface/trl) and [vLLM](https://docs.vllm.ai/). Checkpoints are tagged.
24
+
25
+ 📘 [HF Blog Article](https://huggingface.co/blog/ggbetz/argunauts-phase-3)
26
+
27
+ [<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://api.wandb.ai/links/ggbetz/47t0e7i8)
28
+
29
 
 
 
30
 
31
  ## Quick start
32
 
 
34
  from transformers import pipeline
35
 
36
  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?"
37
+ generator = pipeline("text-generation", model="DebateLabKIT/Llama-3.1-Argunaut-1-8B-HIRPO", device="cuda")
38
  output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
39
  print(output["generated_text"])
40
  ```
41
 
42
  ## Training procedure
43
 
 
44
 
45
+ This model was trained with Hindsight Instruction Relabeling Preference Optimization (HIRPO), an Online DPO version derived from [The Wisdom of Hindsight Makes Language Models Better Instruction Followers](https://huggingface.co/papers/2302.05206).
46
 
47
+ More details about the training procedure can be found in the [blog post](https://huggingface.co/blog/ggbetz/argunauts-phase-3).
48
 
49
  ### Framework versions
50
 
 
54
  - Datasets: 3.1.0
55
  - Tokenizers: 0.20.3
56
 
57
+ ## Evaluation
58
+
59
+ ### Chat Experience
60
+
61
+ <details>
62
+
63
+
64
+ <code>
65
+
66
+
67
+ 👤 **You**
68
+ Hi, are you familiar with Argdown?
69
+
70
+
71
+ 🤖 **Assistant**
72
+ Yes, I'm familiar with Argdown, a markup language for logical and critical thinking, particularly suited for representing and analyzing arguments. It allows for the clear and structured representation of arguments, including claims and arguments, as well as inference trees. If you have an argument you'd like me to analyze or need assistance with a critical thinking problem, feel free to provide the details!
73
+
74
+
75
+ 👤 **You**
76
+ Can you please Argdown argument map that visualizes the argumentative macro structure of the following text?
77
+
78
+ :::
79
+ School uniforms deter crime and increase student safety.
80
+ In Long Beach, California, after two years of a district-wide K-8 mandatory uniform policy, reports of assault and battery in the district’s schools decreased by 34%, assault with a deadly weapon dropped by 50%, fighting incidents went down by 51%, sex offenses were cut by 74%, robbery dropped by 65%, possession of weapons (or weapon “look-alikes”) decreased by 52%, possession of drugs went down by 69%, and vandalism was lowered by 18%. [64]
81
+
82
+ One year after Sparks Middle School in Nevada instituted a uniform policy, school police data showed a 63% drop in police log reports, and decreases were also noted in gang activity, student fights, graffiti, property damage, and battery. A peer-reviewed study found that schools with uniform policies had 12% fewer firearm-related incidents and 15% fewer drug-related incidents than schools without uniforms. [25][69]
83
+
84
+ School uniforms also prevent students from concealing weapons under baggy clothing, make it easier to keep track of students on field trips, and make intruders on campus more visible. Frank Quatrone, superintendent in the Lodi school district of New Jersey, states, “When you have students dressed alike, you make them safer. If someone were to come into a building, the intruder could easily be recognized.” [6][38]
85
+
86
+ Further, school uniforms create a level playing field among students, reducing peer pressure and bullying. When all students are dressed alike, competition between students over clothing choices and the teasing of those who are dressed in less expensive or less fashionable outfits can be eliminated. Research by the Schoolwear Association found that 83% of teachers thought “a good school uniform…could prevent bullying based on appearance or economic background.” Arminta Jacobson, founder and director of the Center for Parent Education at the University of North Texas, states that uniforms put “all kids on the same playing field in terms of their appearance. I think it probably gives them a sense of belonging and a feeling of being socially accepted.” [5][91]
87
+ :::
88
+
89
+
90
+ 🤖 **Assistant**
91
+ The provided text does not contain an argument with clearly defined premises and a conclusion. It presents some claims and supports them with evidence, but it does not explicitly state an argument with a clear structure of premises and a conclusion. Therefore, there is no argument to map.
92
+
93
+ If you provide the full argument, including the premises and the conclusion, I can assist you in creating an Argdown argument map. Please share the complete argument.
94
+
95
+
96
+ 👤 **You**
97
+ That is correct. But I'm asking you to map these support and attack relations using Argdown Syntax in an argdown snippet.
98
+
99
+
100
+ 🤖 **Assistant**
101
+ Given the information provided, it appears there's an implicit argument structure. However, without explicit premises and a conclusion, it's challenging to create a clear Argdown map. Nonetheless, let's represent the support and attack relations as described:
102
+
103
+ ```argdown
104
+ [Conclusion~1]: School uniforms deter crime and increase student safety.
105
+ <+ <Subargument 1>:
106
+ <+ [Conclusion~2]: Implementing school uniforms reduces bullying based on appearance or economic background.
107
+ <+ <Subargument 2>:
108
+ <+ [Premise]: 83% of teachers think that a good school uniform can prevent bullying based on appearance or economic background.
109
+ <+ [Premise]: Reducing bullying based on appearance or economic background contributes to a sense of belonging and social acceptance among students.
110
+ <+ [Premise]: A sense of belonging and social acceptance among students is a desirable outcome.
111
+ ```
112
+
113
+
114
+ 👤 **You**
115
+ Please summarize, in your own words, the main argument presented in the text. No more than 2-3 sentemces, please.
116
+
117
+
118
+ 🤖 **Assistant**
119
+ The argument's key point is: School uniforms deter crime and increase student safety.
120
+
121
+
122
+ 👤 **You**
123
+ Let's focus on this argument. Just for the protocol, what's the conclusion?
124
+
125
+
126
+ 🤖 **Assistant**
127
+ The text doesn't explicitly state a conclusion. It provides supporting evidence and quotes from various sources. If I had to infer a conclusion based on the text, it would be:
128
+
129
+ School uniforms deter crime and increase student safety.
130
+
131
+
132
+ 👤 **You**
133
+ Now, can you please reconstruct this argument as premise conclusion structure (standard form), using argdown syntax? Please give the argument a succinct title before starting with the premise conclusion structure.
134
+
135
+
136
+ 🤖 **Assistant**
137
+ The argument can be reconstructed as follows:
138
+
139
+ * The argument does not explicitly state that the conclusion follows from the premises, so I will not add an inference figure.
140
+
141
+ ```argdown
142
+ (1) 83% of teachers think that a good school uniform can prevent bullying based on appearance or economic background.
143
+ (2) Reducing bullying based on appearance or economic background contributes to a sense of belonging and social acceptance among students.
144
+ (3) A sense of belonging and social acceptance among students is a desirable outcome.
145
+ --
146
+ School uniforms deter crime and increase student safety.
147
+ ```
148
+
149
+
150
+ 👤 **You**
151
+ Hm, please explain: How do the three premises collectively justify the conclusion?
152
+
153
+
154
+ 🤖 **Assistant**
155
+ The premises collectively justify the conclusion by establishing a connection between school uniforms, bullying, and student well-being. Specifically, the first premise indicates that a significant majority of teachers support the idea that school uniforms can reduce bullying, thereby creating a safer and more harmonious school environment. The second premise suggests that reducing bullying leads to a positive social dynamic among students, where they feel a sense of belonging and acceptance. The third premise reinforces the value of this social dynamic by affirming that it is a desirable outcome. Putting these premises together, one can infer that school uniforms, which can reduce bullying, contribute to creating a more positive and safer school environment, thereby supporting the conclusion that school uniforms deter crime and increase student safety.
156
+
157
+
158
+
159
+ 👤 **You**
160
+ Can you add a connecting premise that makes the link between a positive environment on the one side and safety / crime deterrence on the other explicit?
161
+
162
+
163
+ 🤖 **Assistant**
164
+ Let me adjust the argdown code accordingly.
165
+
166
+ ```argdown
167
+ (1) 83% of teachers think that a good school uniform can prevent bullying based on appearance or economic background.
168
+ (2) Reducing bullying based on appearance or economic background contributes to a sense of belonging and social acceptance among students.
169
+ (3) A sense of belonging and social acceptance among students is a desirable outcome.
170
+ (4) A positive school environment contributes to a safer school environment.
171
+ --------------------------
172
+ (5) School uniforms deter crime and increase student safety.
173
+ ```
174
+
175
+ </code>
176
+
177
+ </details>
178
+
179
+ ### Metrics
180
+
181
+ *coming soon*
182
+
183
  ## Citations
184
 
185
+ Cite HIR as:
186
 
187
  ```bibtex
188
+ @misc{zhang2023wisdomhindsightmakeslanguage,
189
+ title={The Wisdom of Hindsight Makes Language Models Better Instruction Followers},
190
+ author={Tianjun Zhang and Fangchen Liu and Justin Wong and Pieter Abbeel and Joseph E. Gonzalez},
191
+ year={2023},
192
+ eprint={2302.05206},
193
+ archivePrefix={arXiv},
194
+ primaryClass={cs.CL},
195
+ url={https://arxiv.org/abs/2302.05206},
196
+ }```
197
 
198
  Cite TRL as:
199