Model save
Browse files
README.md
CHANGED
@@ -1,70 +1,57 @@
|
|
1 |
---
|
2 |
base_model: mistralai/Mistral-7B-Instruct-v0.2
|
3 |
-
library_name:
|
4 |
-
|
5 |
tags:
|
|
|
6 |
- trl
|
7 |
- sft
|
8 |
-
|
9 |
-
model-index:
|
10 |
-
- name: results
|
11 |
-
results: []
|
12 |
---
|
13 |
|
14 |
-
|
15 |
-
should probably proofread and complete it, then remove this comment. -->
|
16 |
-
|
17 |
-
# results
|
18 |
-
|
19 |
-
This model is a fine-tuned version of [mistralai/Mistral-7B-Instruct-v0.2](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2) on an unknown dataset.
|
20 |
-
It achieves the following results on the evaluation set:
|
21 |
-
- Loss: 1.2677
|
22 |
|
23 |
-
|
|
|
24 |
|
25 |
-
|
26 |
|
27 |
-
|
|
|
28 |
|
29 |
-
|
|
|
|
|
|
|
|
|
30 |
|
31 |
-
## Training
|
32 |
|
33 |
-
More information needed
|
34 |
|
35 |
-
## Training procedure
|
36 |
|
37 |
-
|
38 |
|
39 |
-
|
40 |
-
- learning_rate: 0.0002
|
41 |
-
- train_batch_size: 1
|
42 |
-
- eval_batch_size: 8
|
43 |
-
- seed: 42
|
44 |
-
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
45 |
-
- lr_scheduler_type: linear
|
46 |
-
- num_epochs: 7
|
47 |
-
- mixed_precision_training: Native AMP
|
48 |
|
49 |
-
|
|
|
|
|
|
|
|
|
50 |
|
51 |
-
|
52 |
-
|:-------------:|:------:|:----:|:---------------:|
|
53 |
-
| 1.4001 | 0.7143 | 5 | 1.2847 |
|
54 |
-
| 0.9774 | 1.4286 | 10 | 1.1217 |
|
55 |
-
| 0.9041 | 2.1429 | 15 | 1.0523 |
|
56 |
-
| 0.7161 | 2.8571 | 20 | 1.1212 |
|
57 |
-
| 0.5792 | 3.5714 | 25 | 1.1257 |
|
58 |
-
| 0.5536 | 4.2857 | 30 | 1.1142 |
|
59 |
-
| 0.5333 | 5.0 | 35 | 1.2031 |
|
60 |
-
| 0.3973 | 5.7143 | 40 | 1.2709 |
|
61 |
-
| 0.4453 | 6.4286 | 45 | 1.2677 |
|
62 |
|
63 |
|
64 |
-
### Framework versions
|
65 |
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
base_model: mistralai/Mistral-7B-Instruct-v0.2
|
3 |
+
library_name: transformers
|
4 |
+
model_name: results
|
5 |
tags:
|
6 |
+
- generated_from_trainer
|
7 |
- trl
|
8 |
- sft
|
9 |
+
licence: license
|
|
|
|
|
|
|
10 |
---
|
11 |
|
12 |
+
# Model Card for results
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
+
This model is a fine-tuned version of [mistralai/Mistral-7B-Instruct-v0.2](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2).
|
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="magniolia/results", 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 |
|
|
|
31 |
|
32 |
+
This model was trained with SFT.
|
33 |
|
34 |
+
### Framework versions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
+
- TRL: 0.12.0.dev0
|
37 |
+
- Transformers: 4.46.0.dev0
|
38 |
+
- Pytorch: 2.4.1+cu121
|
39 |
+
- Datasets: 3.0.1
|
40 |
+
- Tokenizers: 0.20.1
|
41 |
|
42 |
+
## Citations
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
|
44 |
|
|
|
45 |
|
46 |
+
Cite TRL as:
|
47 |
+
|
48 |
+
```bibtex
|
49 |
+
@misc{vonwerra2022trl,
|
50 |
+
title = {{TRL: Transformer Reinforcement Learning}},
|
51 |
+
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},
|
52 |
+
year = 2020,
|
53 |
+
journal = {GitHub repository},
|
54 |
+
publisher = {GitHub},
|
55 |
+
howpublished = {\url{https://github.com/huggingface/trl}}
|
56 |
+
}
|
57 |
+
```
|