Training in progress, step 100
Browse files- README.md +58 -0
- adapter_config.json +34 -0
- adapter_model.safetensors +3 -0
- all_results.json +9 -0
- config.json +43 -0
- runs/Nov17_16-17-16_d28f7adca72c/events.out.tfevents.1731860823.d28f7adca72c.1455329.0 +3 -0
- runs/Nov17_16-45-53_d28f7adca72c/events.out.tfevents.1731862042.d28f7adca72c.1466324.0 +3 -0
- runs/Nov17_17-08-29_d28f7adca72c/events.out.tfevents.1731863352.d28f7adca72c.1476963.0 +3 -0
- runs/Nov17_17-26-10_d28f7adca72c/events.out.tfevents.1731864414.d28f7adca72c.1485127.0 +3 -0
- runs/Nov17_17-54-38_d28f7adca72c/events.out.tfevents.1731866140.d28f7adca72c.1493987.0 +3 -0
- runs/Nov17_18-05-42_d28f7adca72c/events.out.tfevents.1731866808.d28f7adca72c.1497789.0 +3 -0
- runs/Nov18_09-06-30_d28f7adca72c/events.out.tfevents.1731920841.d28f7adca72c.1609162.0 +3 -0
- runs/Nov20_07-40-49_d28f7adca72c/events.out.tfevents.1732088488.d28f7adca72c.2261562.0 +3 -0
- runs/Nov20_07-45-35_d28f7adca72c/events.out.tfevents.1732088781.d28f7adca72c.2263555.0 +3 -0
- runs/Nov20_08-00-39_d28f7adca72c/events.out.tfevents.1732089682.d28f7adca72c.2269100.0 +3 -0
- runs/Nov20_08-03-58_d28f7adca72c/events.out.tfevents.1732089882.d28f7adca72c.2270466.0 +3 -0
- runs/Nov20_08-06-30_d28f7adca72c/events.out.tfevents.1732090033.d28f7adca72c.2271569.0 +3 -0
- runs/Nov20_08-08-06_d28f7adca72c/events.out.tfevents.1732090139.d28f7adca72c.2272351.0 +3 -0
- runs/Nov21_18-45-34_d28f7adca72c/events.out.tfevents.1732214764.d28f7adca72c.2391037.0 +3 -0
- special_tokens_map.json +24 -0
- tokenizer.json +0 -0
- tokenizer.model +3 -0
- tokenizer_config.json +44 -0
- train_results.json +9 -0
- trainer_state.json +0 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: mistralai/Mistral-7B-v0.1
|
3 |
+
datasets:
|
4 |
+
- HuggingFaceH4/ultrachat_200k
|
5 |
+
library_name: transformers
|
6 |
+
model_name: mistralai/Mistral-7B-v0.1
|
7 |
+
tags:
|
8 |
+
- generated_from_trainer
|
9 |
+
- alignment-handbook
|
10 |
+
licence: license
|
11 |
+
---
|
12 |
+
|
13 |
+
# Model Card for mistralai/Mistral-7B-v0.1
|
14 |
+
|
15 |
+
This model is a fine-tuned version of [mistralai/Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1) on the [['HuggingFaceH4/ultrachat_200k']](https://huggingface.co/datasets/['HuggingFaceH4/ultrachat_200k']) dataset.
|
16 |
+
It has been trained using [TRL](https://github.com/huggingface/trl).
|
17 |
+
|
18 |
+
## Quick start
|
19 |
+
|
20 |
+
```python
|
21 |
+
from transformers import pipeline
|
22 |
+
|
23 |
+
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?"
|
24 |
+
generator = pipeline("text-generation", model="awsuineg/zephyr-7b-sft-qlora", device="cuda")
|
25 |
+
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
|
26 |
+
print(output["generated_text"])
|
27 |
+
```
|
28 |
+
|
29 |
+
## Training procedure
|
30 |
+
|
31 |
+
|
32 |
+
|
33 |
+
This model was trained with SFT.
|
34 |
+
|
35 |
+
### Framework versions
|
36 |
+
|
37 |
+
- TRL: 0.12.1
|
38 |
+
- Transformers: 4.46.2
|
39 |
+
- Pytorch: 2.5.1
|
40 |
+
- Datasets: 3.1.0
|
41 |
+
- Tokenizers: 0.20.3
|
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
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha_pattern": {},
|
3 |
+
"auto_mapping": null,
|
4 |
+
"base_model_name_or_path": "mistralai/Mistral-7B-v0.1",
|
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": 16,
|
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": 64,
|
20 |
+
"rank_pattern": {},
|
21 |
+
"revision": null,
|
22 |
+
"target_modules": [
|
23 |
+
"v_proj",
|
24 |
+
"q_proj",
|
25 |
+
"down_proj",
|
26 |
+
"up_proj",
|
27 |
+
"gate_proj",
|
28 |
+
"k_proj",
|
29 |
+
"o_proj"
|
30 |
+
],
|
31 |
+
"task_type": "CAUSAL_LM",
|
32 |
+
"use_dora": false,
|
33 |
+
"use_rslora": false
|
34 |
+
}
|
adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:827ec2d540ea378ca61360edf3b0399c4ea7e367b0e4b49680fc2b00dcef513a
|
3 |
+
size 671149168
|
all_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.0,
|
3 |
+
"total_flos": 1.1487027058043781e+19,
|
4 |
+
"train_loss": 0.0,
|
5 |
+
"train_runtime": 0.0143,
|
6 |
+
"train_samples": 207864,
|
7 |
+
"train_samples_per_second": 9715326.166,
|
8 |
+
"train_steps_per_second": 404831.526
|
9 |
+
}
|
config.json
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_attn_implementation_autoset": true,
|
3 |
+
"_name_or_path": "mistralai/Mistral-7B-v0.1",
|
4 |
+
"architectures": [
|
5 |
+
"MistralForCausalLM"
|
6 |
+
],
|
7 |
+
"attention_dropout": 0.0,
|
8 |
+
"bos_token_id": 1,
|
9 |
+
"eos_token_id": 2,
|
10 |
+
"head_dim": 128,
|
11 |
+
"hidden_act": "silu",
|
12 |
+
"hidden_size": 4096,
|
13 |
+
"initializer_range": 0.02,
|
14 |
+
"intermediate_size": 14336,
|
15 |
+
"max_position_embeddings": 32768,
|
16 |
+
"model_type": "mistral",
|
17 |
+
"num_attention_heads": 32,
|
18 |
+
"num_hidden_layers": 32,
|
19 |
+
"num_key_value_heads": 8,
|
20 |
+
"quantization_config": {
|
21 |
+
"_load_in_4bit": true,
|
22 |
+
"_load_in_8bit": false,
|
23 |
+
"bnb_4bit_compute_dtype": "bfloat16",
|
24 |
+
"bnb_4bit_quant_storage": "uint8",
|
25 |
+
"bnb_4bit_quant_type": "nf4",
|
26 |
+
"bnb_4bit_use_double_quant": false,
|
27 |
+
"llm_int8_enable_fp32_cpu_offload": false,
|
28 |
+
"llm_int8_has_fp16_weight": false,
|
29 |
+
"llm_int8_skip_modules": null,
|
30 |
+
"llm_int8_threshold": 6.0,
|
31 |
+
"load_in_4bit": true,
|
32 |
+
"load_in_8bit": false,
|
33 |
+
"quant_method": "bitsandbytes"
|
34 |
+
},
|
35 |
+
"rms_norm_eps": 1e-05,
|
36 |
+
"rope_theta": 10000.0,
|
37 |
+
"sliding_window": 4096,
|
38 |
+
"tie_word_embeddings": false,
|
39 |
+
"torch_dtype": "bfloat16",
|
40 |
+
"transformers_version": "4.46.2",
|
41 |
+
"use_cache": true,
|
42 |
+
"vocab_size": 32000
|
43 |
+
}
|
runs/Nov17_16-17-16_d28f7adca72c/events.out.tfevents.1731860823.d28f7adca72c.1455329.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d327dd3dc7f6f0ec6201ce542062b2886ab83a0a7c86c6cac6f1f856e31ffcc0
|
3 |
+
size 6644
|
runs/Nov17_16-45-53_d28f7adca72c/events.out.tfevents.1731862042.d28f7adca72c.1466324.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:74f931ef15df23c349fad169b9f7462d1db630d2d2a78816699b9c0d8885ee28
|
3 |
+
size 20677
|
runs/Nov17_17-08-29_d28f7adca72c/events.out.tfevents.1731863352.d28f7adca72c.1476963.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:40fe602a887d2e907317a93e28b12437738b4a004f0774e2b3bda2fb5b81b1ca
|
3 |
+
size 17616
|
runs/Nov17_17-26-10_d28f7adca72c/events.out.tfevents.1731864414.d28f7adca72c.1485127.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:992fda2e94e53c29798c0c4351607b4e9c8f8cbbe49f203404f3aaadd94990ac
|
3 |
+
size 6644
|
runs/Nov17_17-54-38_d28f7adca72c/events.out.tfevents.1731866140.d28f7adca72c.1493987.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5aa40fcb0a2f01d5ea8a6cff0f9ce973b0d525f05cad2cabeabef0adde757e4e
|
3 |
+
size 10020
|
runs/Nov17_18-05-42_d28f7adca72c/events.out.tfevents.1731866808.d28f7adca72c.1497789.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:88ee1184685221e6572a692b6e187314310b0b875a2752b07247e0a119d24c24
|
3 |
+
size 229874
|
runs/Nov18_09-06-30_d28f7adca72c/events.out.tfevents.1731920841.d28f7adca72c.1609162.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e8319038ea07c5da8c1ca7771696a58956a792eef296dcd151f6d4fed81baafa
|
3 |
+
size 6998
|
runs/Nov20_07-40-49_d28f7adca72c/events.out.tfevents.1732088488.d28f7adca72c.2261562.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5e2e509964aed74faa557e627c0de135c83923305e7b4690aab75bbb4d9c825f
|
3 |
+
size 6644
|
runs/Nov20_07-45-35_d28f7adca72c/events.out.tfevents.1732088781.d28f7adca72c.2263555.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:43168300e80ab14dedc9681882351d0382d6f044c740e17338fd467d232580d3
|
3 |
+
size 6644
|
runs/Nov20_08-00-39_d28f7adca72c/events.out.tfevents.1732089682.d28f7adca72c.2269100.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8aa39bb29ac4889858038b98286c9be6cd73011a8faad911c09e08f6c816b725
|
3 |
+
size 6644
|
runs/Nov20_08-03-58_d28f7adca72c/events.out.tfevents.1732089882.d28f7adca72c.2270466.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3bb5de9fee45edbfb36d13a6b3f444acc72e9eccaa32c351e7d912a217d403a1
|
3 |
+
size 6644
|
runs/Nov20_08-06-30_d28f7adca72c/events.out.tfevents.1732090033.d28f7adca72c.2271569.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b03023784e0f0a70ff615754a4cc0d83db8fb3f8b44839a46bbaab0c3606eca0
|
3 |
+
size 6644
|
runs/Nov20_08-08-06_d28f7adca72c/events.out.tfevents.1732090139.d28f7adca72c.2272351.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8f4c896a1c2e2918b1b9df3f8fb65cd626a9f4904d66f83c42e8136461d47a2b
|
3 |
+
size 6998
|
runs/Nov21_18-45-34_d28f7adca72c/events.out.tfevents.1732214764.d28f7adca72c.2391037.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6e180aae62d2266c11f93b463fd093e21637029f9bc81b56e65611563a0daece
|
3 |
+
size 10996
|
special_tokens_map.json
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<s>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": false,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"eos_token": {
|
10 |
+
"content": "</s>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"pad_token": "</s>",
|
17 |
+
"unk_token": {
|
18 |
+
"content": "<unk>",
|
19 |
+
"lstrip": false,
|
20 |
+
"normalized": false,
|
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.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
|
3 |
+
size 493443
|
tokenizer_config.json
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": true,
|
3 |
+
"add_eos_token": false,
|
4 |
+
"add_prefix_space": null,
|
5 |
+
"added_tokens_decoder": {
|
6 |
+
"0": {
|
7 |
+
"content": "<unk>",
|
8 |
+
"lstrip": false,
|
9 |
+
"normalized": false,
|
10 |
+
"rstrip": false,
|
11 |
+
"single_word": false,
|
12 |
+
"special": true
|
13 |
+
},
|
14 |
+
"1": {
|
15 |
+
"content": "<s>",
|
16 |
+
"lstrip": false,
|
17 |
+
"normalized": false,
|
18 |
+
"rstrip": false,
|
19 |
+
"single_word": false,
|
20 |
+
"special": true
|
21 |
+
},
|
22 |
+
"2": {
|
23 |
+
"content": "</s>",
|
24 |
+
"lstrip": false,
|
25 |
+
"normalized": false,
|
26 |
+
"rstrip": false,
|
27 |
+
"single_word": false,
|
28 |
+
"special": true
|
29 |
+
}
|
30 |
+
},
|
31 |
+
"additional_special_tokens": [],
|
32 |
+
"bos_token": "<s>",
|
33 |
+
"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 %}",
|
34 |
+
"clean_up_tokenization_spaces": false,
|
35 |
+
"eos_token": "</s>",
|
36 |
+
"legacy": false,
|
37 |
+
"model_max_length": 2048,
|
38 |
+
"pad_token": "</s>",
|
39 |
+
"sp_model_kwargs": {},
|
40 |
+
"spaces_between_special_tokens": false,
|
41 |
+
"tokenizer_class": "LlamaTokenizer",
|
42 |
+
"unk_token": "<unk>",
|
43 |
+
"use_default_system_prompt": false
|
44 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.0,
|
3 |
+
"total_flos": 1.1487027058043781e+19,
|
4 |
+
"train_loss": 0.0,
|
5 |
+
"train_runtime": 0.0143,
|
6 |
+
"train_samples": 207864,
|
7 |
+
"train_samples_per_second": 9715326.166,
|
8 |
+
"train_steps_per_second": 404831.526
|
9 |
+
}
|
trainer_state.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:35b89205840e308ec8a98be86d47c7f58f4520c0bd57a7c95af8f7f45a0bc1dd
|
3 |
+
size 6328
|