ericrisco/llme2_sft_model_rlaif
Browse files- README.md +37 -35
- adapter_config.json +3 -0
- adapter_model.safetensors +1 -1
- runs/Jan13_20-23-36_ebfdfb1bba2e/events.out.tfevents.1736799820.ebfdfb1bba2e.879.0 +3 -0
- tokenizer.json +1 -1
- tokenizer_config.json +1 -0
- training_args.bin +2 -2
README.md
CHANGED
@@ -1,56 +1,58 @@
|
|
1 |
---
|
2 |
base_model: HuggingFaceH4/zephyr-7b-alpha
|
3 |
-
library_name:
|
4 |
-
|
5 |
tags:
|
|
|
6 |
- trl
|
7 |
- sft
|
8 |
-
|
9 |
-
model-index:
|
10 |
-
- name: sft_zephyr
|
11 |
-
results: []
|
12 |
---
|
13 |
|
14 |
-
|
15 |
-
should probably proofread and complete it, then remove this comment. -->
|
16 |
-
|
17 |
-
# sft_zephyr
|
18 |
-
|
19 |
-
This model is a fine-tuned version of [HuggingFaceH4/zephyr-7b-alpha](https://huggingface.co/HuggingFaceH4/zephyr-7b-alpha) on an unknown dataset.
|
20 |
|
21 |
-
|
|
|
22 |
|
23 |
-
|
24 |
|
25 |
-
|
|
|
26 |
|
27 |
-
|
|
|
|
|
|
|
|
|
28 |
|
29 |
-
## Training
|
30 |
|
31 |
-
|
32 |
|
33 |
-
## Training procedure
|
34 |
|
35 |
-
|
36 |
|
37 |
-
|
38 |
-
- learning_rate: 0.0002
|
39 |
-
- train_batch_size: 8
|
40 |
-
- eval_batch_size: 8
|
41 |
-
- seed: 42
|
42 |
-
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
43 |
-
- lr_scheduler_type: constant
|
44 |
-
- num_epochs: 5
|
45 |
|
46 |
-
|
|
|
|
|
|
|
|
|
47 |
|
|
|
48 |
|
49 |
|
50 |
-
### Framework versions
|
51 |
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
base_model: HuggingFaceH4/zephyr-7b-alpha
|
3 |
+
library_name: transformers
|
4 |
+
model_name: sft_zephyr
|
5 |
tags:
|
6 |
+
- generated_from_trainer
|
7 |
- trl
|
8 |
- sft
|
9 |
+
licence: license
|
|
|
|
|
|
|
10 |
---
|
11 |
|
12 |
+
# Model Card for sft_zephyr
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
+
This model is a fine-tuned version of [HuggingFaceH4/zephyr-7b-alpha](https://huggingface.co/HuggingFaceH4/zephyr-7b-alpha).
|
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="ericrisco/sft_zephyr", 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/keepcoding/huggingface/runs/auhb327z)
|
31 |
|
|
|
32 |
|
33 |
+
This model was trained with SFT.
|
34 |
|
35 |
+
### Framework versions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
|
37 |
+
- TRL: 0.13.0
|
38 |
+
- Transformers: 4.48.0
|
39 |
+
- Pytorch: 2.5.1+cu121
|
40 |
+
- Datasets: 3.2.0
|
41 |
+
- Tokenizers: 0.21.0
|
42 |
|
43 |
+
## Citations
|
44 |
|
45 |
|
|
|
46 |
|
47 |
+
Cite TRL as:
|
48 |
+
|
49 |
+
```bibtex
|
50 |
+
@misc{vonwerra2022trl,
|
51 |
+
title = {{TRL: Transformer Reinforcement Learning}},
|
52 |
+
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},
|
53 |
+
year = 2020,
|
54 |
+
journal = {GitHub repository},
|
55 |
+
publisher = {GitHub},
|
56 |
+
howpublished = {\url{https://github.com/huggingface/trl}}
|
57 |
+
}
|
58 |
+
```
|
adapter_config.json
CHANGED
@@ -3,6 +3,8 @@
|
|
3 |
"auto_mapping": null,
|
4 |
"base_model_name_or_path": "HuggingFaceH4/zephyr-7b-alpha",
|
5 |
"bias": "none",
|
|
|
|
|
6 |
"fan_in_fan_out": false,
|
7 |
"inference_mode": true,
|
8 |
"init_lora_weights": true,
|
@@ -11,6 +13,7 @@
|
|
11 |
"layers_to_transform": null,
|
12 |
"loftq_config": {},
|
13 |
"lora_alpha": 16,
|
|
|
14 |
"lora_dropout": 0.1,
|
15 |
"megatron_config": null,
|
16 |
"megatron_core": "megatron.core",
|
|
|
3 |
"auto_mapping": null,
|
4 |
"base_model_name_or_path": "HuggingFaceH4/zephyr-7b-alpha",
|
5 |
"bias": "none",
|
6 |
+
"eva_config": null,
|
7 |
+
"exclude_modules": null,
|
8 |
"fan_in_fan_out": false,
|
9 |
"inference_mode": true,
|
10 |
"init_lora_weights": true,
|
|
|
13 |
"layers_to_transform": null,
|
14 |
"loftq_config": {},
|
15 |
"lora_alpha": 16,
|
16 |
+
"lora_bias": false,
|
17 |
"lora_dropout": 0.1,
|
18 |
"megatron_config": null,
|
19 |
"megatron_core": "megatron.core",
|
adapter_model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 109069176
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5a649fcb6b3ab986d9c7689dba6fe26f83535a7dafdc0fef7b64e37d22ac691d
|
3 |
size 109069176
|
runs/Jan13_20-23-36_ebfdfb1bba2e/events.out.tfevents.1736799820.ebfdfb1bba2e.879.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c2acdecb83cb92713377acc177877e94cdbe747654f14791abaa83bdd20a6c80
|
3 |
+
size 6211
|
tokenizer.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
"version": "1.0",
|
3 |
"truncation": {
|
4 |
"direction": "Left",
|
5 |
-
"max_length":
|
6 |
"strategy": "LongestFirst",
|
7 |
"stride": 0
|
8 |
},
|
|
|
2 |
"version": "1.0",
|
3 |
"truncation": {
|
4 |
"direction": "Left",
|
5 |
+
"max_length": 1024,
|
6 |
"strategy": "LongestFirst",
|
7 |
"stride": 0
|
8 |
},
|
tokenizer_config.json
CHANGED
@@ -37,6 +37,7 @@
|
|
37 |
"chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '<|user|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'system' %}\n{{ '<|system|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'assistant' %}\n{{ '<|assistant|>\n' + message['content'] + eos_token }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '<|assistant|>' }}\n{% endif %}\n{% endfor %}",
|
38 |
"clean_up_tokenization_spaces": false,
|
39 |
"eos_token": "</s>",
|
|
|
40 |
"legacy": true,
|
41 |
"model_max_length": 1000000000000000019884624838656,
|
42 |
"pad_token": "</s>",
|
|
|
37 |
"chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '<|user|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'system' %}\n{{ '<|system|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'assistant' %}\n{{ '<|assistant|>\n' + message['content'] + eos_token }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '<|assistant|>' }}\n{% endif %}\n{% endfor %}",
|
38 |
"clean_up_tokenization_spaces": false,
|
39 |
"eos_token": "</s>",
|
40 |
+
"extra_special_tokens": {},
|
41 |
"legacy": true,
|
42 |
"model_max_length": 1000000000000000019884624838656,
|
43 |
"pad_token": "</s>",
|
training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8babcfd6f65eb1ad8faeff60060d21e04e46d247570981b7f3eef740222ecf30
|
3 |
+
size 5560
|