Update README.md
Browse files
README.md
CHANGED
@@ -1,17 +1,33 @@
|
|
1 |
---
|
2 |
library_name: transformers
|
3 |
-
model_name: Phi-4-Argunaut-1-SPIN
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
tags:
|
|
|
|
|
|
|
|
|
5 |
- generated_from_trainer
|
6 |
- trl
|
7 |
- dpo
|
8 |
-
|
|
|
9 |
---
|
10 |
|
11 |
-
# Model Card for Phi-4-Argunaut-1-SPIN
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 +35,18 @@ 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/
|
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/
|
30 |
|
|
|
31 |
|
32 |
-
|
33 |
|
34 |
### Framework versions
|
35 |
|
@@ -39,18 +56,29 @@ 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
|
45 |
|
46 |
```bibtex
|
47 |
-
@
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
|
|
54 |
}
|
55 |
```
|
56 |
|
@@ -65,4 +93,4 @@ Cite TRL as:
|
|
65 |
publisher = {GitHub},
|
66 |
howpublished = {\url{https://github.com/huggingface/trl}}
|
67 |
}
|
68 |
-
```
|
|
|
1 |
---
|
2 |
library_name: transformers
|
3 |
+
model_name: Phi-4-Argunaut-1-SPIN
|
4 |
+
pipeline_tag: text-generation
|
5 |
+
base_model: DebateLabKIT/Phi-4-Argunaut-1-SFT
|
6 |
+
datasets:
|
7 |
+
- DebateLabKIT/argdown_line-by-line
|
8 |
+
- DebateLabKIT/argument_mapping_dpo_pairs
|
9 |
+
- allenai/llama-3.1-tulu-3-70b-preference-mixture
|
10 |
tags:
|
11 |
+
- logic
|
12 |
+
- argumentation
|
13 |
+
- critical-thinking
|
14 |
+
- argument-mapping
|
15 |
- generated_from_trainer
|
16 |
- trl
|
17 |
- dpo
|
18 |
+
- spin
|
19 |
+
licence: mit
|
20 |
---
|
21 |
|
22 |
+
# Model Card for Phi-4-Argunaut-1-SPIN
|
23 |
+
|
24 |
+
This model is a fine-tuned version of [DebateLabKIT/Phi-4-Argunaut-1-SFT](https://huggingface.co/DebateLabKIT/Phi-4-Argunaut-1-SFT).
|
25 |
+
It has been trained using [TRL](https://github.com/huggingface/trl) and [vLLM](https://docs.vllm.ai/). Checkpoints are tagged.
|
26 |
+
|
27 |
+
📘 [HF Blog Article](https://huggingface.co/blog/ggbetz/argunauts-phase-2)
|
28 |
+
|
29 |
+
|
30 |
|
|
|
|
|
31 |
|
32 |
## Quick start
|
33 |
|
|
|
35 |
from transformers import pipeline
|
36 |
|
37 |
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?"
|
38 |
+
generator = pipeline("text-generation", model="DebateLabKIT/Llama-3.1-Argunaut-1-8B-SPIN", device="cuda")
|
39 |
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
|
40 |
print(output["generated_text"])
|
41 |
```
|
42 |
|
43 |
## Training procedure
|
44 |
|
45 |
+
<!--[<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/s89n820x)-->
|
46 |
|
47 |
+
This model was trained with Self-Play Fine-Tuning (SPIN), a method introduced in [Self-Play Fine-Tuning Converts Weak Language Models to Strong Language Models](https://huggingface.co/papers/2401.01335).
|
48 |
|
49 |
+
More details about the training procedure can be found in the [blog post](https://huggingface.co/blog/ggbetz/argunauts-phase-2).
|
50 |
|
51 |
### Framework versions
|
52 |
|
|
|
56 |
- Datasets: 3.1.0
|
57 |
- Tokenizers: 0.20.3
|
58 |
|
59 |
+
## Evaluation
|
60 |
+
|
61 |
+
### Chat Experience
|
62 |
+
|
63 |
+
_coming soon..._
|
64 |
+
|
65 |
+
### Metrics
|
66 |
+
|
67 |
+
_coming soon..._
|
68 |
+
|
69 |
## Citations
|
70 |
|
71 |
+
Cite SPIN as:
|
72 |
|
73 |
```bibtex
|
74 |
+
@misc{chen2024selfplayfinetuningconvertsweak,
|
75 |
+
title={Self-Play Fine-Tuning Converts Weak Language Models to Strong Language Models},
|
76 |
+
author={Zixiang Chen and Yihe Deng and Huizhuo Yuan and Kaixuan Ji and Quanquan Gu},
|
77 |
+
year={2024},
|
78 |
+
eprint={2401.01335},
|
79 |
+
archivePrefix={arXiv},
|
80 |
+
primaryClass={cs.LG},
|
81 |
+
url={https://arxiv.org/abs/2401.01335},
|
82 |
}
|
83 |
```
|
84 |
|
|
|
93 |
publisher = {GitHub},
|
94 |
howpublished = {\url{https://github.com/huggingface/trl}}
|
95 |
}
|
96 |
+
```
|