Upload folder using huggingface_hub
Browse files- README.md +142 -0
- config.json +36 -0
- generation_config.json +12 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +30 -0
- tokenizer.model +3 -0
- tokenizer_config.json +66 -0
README.md
ADDED
@@ -0,0 +1,142 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: other
|
3 |
+
base_model: IndexTeam/Index-1.9B-Chat
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
model-index:
|
7 |
+
- name: outputs/out
|
8 |
+
results: []
|
9 |
+
---
|
10 |
+
|
11 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
12 |
+
should probably proofread and complete it, then remove this comment. -->
|
13 |
+
|
14 |
+
[<img src="https://raw.githubusercontent.com/axolotl-ai-cloud/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/axolotl-ai-cloud/axolotl)
|
15 |
+
<details><summary>See axolotl config</summary>
|
16 |
+
|
17 |
+
axolotl version: `0.4.1`
|
18 |
+
```yaml
|
19 |
+
base_model: IndexTeam/Index-1.9B-Chat
|
20 |
+
model_type: IndexForCausalLM
|
21 |
+
tokenizer_type: AutoTokenizer
|
22 |
+
|
23 |
+
load_in_8bit: false
|
24 |
+
load_in_4bit: false
|
25 |
+
strict: false
|
26 |
+
|
27 |
+
datasets:
|
28 |
+
- path: gardner/glaive-function-calling-v2-sharegpt
|
29 |
+
type: sharegpt
|
30 |
+
conversation: index_chat
|
31 |
+
dataset_prepared_path: last_run_prepared
|
32 |
+
val_set_size: 0.05
|
33 |
+
output_dir: ./outputs/out
|
34 |
+
|
35 |
+
sequence_len: 4096
|
36 |
+
sample_packing: true
|
37 |
+
pad_to_sequence_len: true
|
38 |
+
trust_remote_code: true
|
39 |
+
|
40 |
+
wandb_project: index-1.9b
|
41 |
+
wandb_entity:
|
42 |
+
wandb_watch:
|
43 |
+
wandb_name: index-1.9b
|
44 |
+
wandb_log_model:
|
45 |
+
|
46 |
+
gradient_accumulation_steps: 8
|
47 |
+
micro_batch_size: 1
|
48 |
+
num_epochs: 4
|
49 |
+
optimizer: paged_adamw_8bit
|
50 |
+
lr_scheduler: cosine
|
51 |
+
learning_rate: 5e-6
|
52 |
+
|
53 |
+
train_on_inputs: false
|
54 |
+
group_by_length: false
|
55 |
+
bf16: auto
|
56 |
+
fp16:
|
57 |
+
tf32: false
|
58 |
+
|
59 |
+
gradient_checkpointing: true
|
60 |
+
gradient_checkpointing_kwargs:
|
61 |
+
use_reentrant: false
|
62 |
+
early_stopping_patience:
|
63 |
+
resume_from_checkpoint:
|
64 |
+
logging_steps: 1
|
65 |
+
xformers_attention:
|
66 |
+
flash_attention: true
|
67 |
+
|
68 |
+
warmup_steps: 100
|
69 |
+
evals_per_epoch: 2
|
70 |
+
eval_table_size:
|
71 |
+
saves_per_epoch: 2
|
72 |
+
debug:
|
73 |
+
deepspeed:
|
74 |
+
weight_decay: 0.0
|
75 |
+
fsdp:
|
76 |
+
fsdp_config:
|
77 |
+
special_tokens:
|
78 |
+
pad_token: </s>
|
79 |
+
|
80 |
+
```
|
81 |
+
|
82 |
+
</details><br>
|
83 |
+
|
84 |
+
[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="200" height="32"/>](https://wandb.ai/intervitens/index-1.9b/runs/a7r2nnwc)
|
85 |
+
# outputs/out
|
86 |
+
|
87 |
+
This model is a fine-tuned version of [IndexTeam/Index-1.9B-Chat](https://huggingface.co/IndexTeam/Index-1.9B-Chat) on the None dataset.
|
88 |
+
It achieves the following results on the evaluation set:
|
89 |
+
- Loss: 0.4745
|
90 |
+
|
91 |
+
## Model description
|
92 |
+
|
93 |
+
More information needed
|
94 |
+
|
95 |
+
## Intended uses & limitations
|
96 |
+
|
97 |
+
More information needed
|
98 |
+
|
99 |
+
## Training and evaluation data
|
100 |
+
|
101 |
+
More information needed
|
102 |
+
|
103 |
+
## Training procedure
|
104 |
+
|
105 |
+
### Training hyperparameters
|
106 |
+
|
107 |
+
The following hyperparameters were used during training:
|
108 |
+
- learning_rate: 5e-06
|
109 |
+
- train_batch_size: 1
|
110 |
+
- eval_batch_size: 1
|
111 |
+
- seed: 42
|
112 |
+
- distributed_type: multi-GPU
|
113 |
+
- num_devices: 4
|
114 |
+
- gradient_accumulation_steps: 8
|
115 |
+
- total_train_batch_size: 32
|
116 |
+
- total_eval_batch_size: 4
|
117 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
118 |
+
- lr_scheduler_type: cosine
|
119 |
+
- lr_scheduler_warmup_steps: 100
|
120 |
+
- num_epochs: 4
|
121 |
+
|
122 |
+
### Training results
|
123 |
+
|
124 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
125 |
+
|:-------------:|:------:|:----:|:---------------:|
|
126 |
+
| 5.3244 | 0.0021 | 1 | 5.2299 |
|
127 |
+
| 0.6569 | 0.4992 | 237 | 0.6106 |
|
128 |
+
| 0.5053 | 0.9984 | 474 | 0.5233 |
|
129 |
+
| 0.472 | 1.4779 | 711 | 0.5007 |
|
130 |
+
| 0.4849 | 1.9771 | 948 | 0.4863 |
|
131 |
+
| 0.4611 | 2.4576 | 1185 | 0.4794 |
|
132 |
+
| 0.3926 | 2.9568 | 1422 | 0.4756 |
|
133 |
+
| 0.4171 | 3.4368 | 1659 | 0.4747 |
|
134 |
+
| 0.4246 | 3.9360 | 1896 | 0.4745 |
|
135 |
+
|
136 |
+
|
137 |
+
### Framework versions
|
138 |
+
|
139 |
+
- Transformers 4.42.3
|
140 |
+
- Pytorch 2.1.2+cu118
|
141 |
+
- Datasets 2.19.1
|
142 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "IndexTeam/Index-1.9B-Chat",
|
3 |
+
"architectures": [
|
4 |
+
"IndexForCausalLM"
|
5 |
+
],
|
6 |
+
"attention_bias": false,
|
7 |
+
"attention_dropout": 0.0,
|
8 |
+
"auto_map": {
|
9 |
+
"AutoConfig": "IndexTeam/Index-1.9B-Chat--configuration_index.IndexConfig",
|
10 |
+
"AutoModelForCausalLM": "IndexTeam/Index-1.9B-Chat--modeling_index.IndexForCausalLM",
|
11 |
+
"AutoModelForSequenceClassification": "IndexTeam/Index-1.9B-Chat--modeling_index.IndexForSequenceClassification"
|
12 |
+
},
|
13 |
+
"bos_token_id": 1,
|
14 |
+
"eos_token_id": 2,
|
15 |
+
"hidden_act": "silu",
|
16 |
+
"hidden_size": 2048,
|
17 |
+
"initializer_range": 0.01,
|
18 |
+
"intermediate_size": 5888,
|
19 |
+
"max_length": 4096,
|
20 |
+
"max_position_embeddings": 4096,
|
21 |
+
"model_type": "index",
|
22 |
+
"norm_head": 1,
|
23 |
+
"num_attention_heads": 16,
|
24 |
+
"num_hidden_layers": 36,
|
25 |
+
"num_key_value_heads": 16,
|
26 |
+
"pad_token_id": 0,
|
27 |
+
"pretraining_tp": 1,
|
28 |
+
"rms_norm_eps": 1e-06,
|
29 |
+
"rope_scaling": null,
|
30 |
+
"rope_theta": 10000.0,
|
31 |
+
"tie_word_embeddings": false,
|
32 |
+
"torch_dtype": "bfloat16",
|
33 |
+
"transformers_version": "4.42.3",
|
34 |
+
"use_cache": false,
|
35 |
+
"vocab_size": 65029
|
36 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 1,
|
4 |
+
"do_sample": true,
|
5 |
+
"eos_token_id": 2,
|
6 |
+
"pad_token_id": 0,
|
7 |
+
"repetition_penalty": 1.1,
|
8 |
+
"temperature": 0.3,
|
9 |
+
"top_k": 5,
|
10 |
+
"top_p": 0.8,
|
11 |
+
"transformers_version": "4.42.3"
|
12 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d1a844a55901a4cacb355b2d53e5465e2814fdec0ad48d516840a6a8c74885d8
|
3 |
+
size 4612043068
|
special_tokens_map.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": {
|
17 |
+
"content": "</s>",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": false,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"unk_token": {
|
24 |
+
"content": "<unk>",
|
25 |
+
"lstrip": false,
|
26 |
+
"normalized": false,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
}
|
30 |
+
}
|
tokenizer.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3a11626b3c80cbfdd5f4b5585fce8938d178f3a0df739c3dd1c708ce944878af
|
3 |
+
size 1010047
|
tokenizer_config.json
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": false,
|
3 |
+
"add_eos_token": false,
|
4 |
+
"add_prefix_space": false,
|
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 |
+
"3": {
|
31 |
+
"content": "reserved_0",
|
32 |
+
"lstrip": false,
|
33 |
+
"normalized": false,
|
34 |
+
"rstrip": false,
|
35 |
+
"single_word": false,
|
36 |
+
"special": true
|
37 |
+
},
|
38 |
+
"4": {
|
39 |
+
"content": "reserved_1",
|
40 |
+
"lstrip": false,
|
41 |
+
"normalized": false,
|
42 |
+
"rstrip": false,
|
43 |
+
"single_word": false,
|
44 |
+
"special": true
|
45 |
+
}
|
46 |
+
},
|
47 |
+
"auto_map": {
|
48 |
+
"AutoTokenizer": [
|
49 |
+
"IndexTeam/Index-1.9B-Chat--tokenization_index.IndexTokenizer",
|
50 |
+
null
|
51 |
+
]
|
52 |
+
},
|
53 |
+
"bos_token": "<s>",
|
54 |
+
"chat_template": "{% if messages[0]['role'] == 'system' %}{% set system_message = messages[0]['content'] %}{% endif %}{% if system_message is defined %}{{ unk_token + system_message }}{% endif %}{% for message in messages %}{% set content = message['content'] %}{% if message['role'] == 'user' %}{{ 'reserved_0' + content.strip() + 'reserved_1' }}{% elif message['role'] == 'assistant' %}{{ content.strip() }}{% endif %}{% endfor %}",
|
55 |
+
"clean_up_tokenization_spaces": false,
|
56 |
+
"decode_with_prefix_space": false,
|
57 |
+
"eos_token": "</s>",
|
58 |
+
"legacy": false,
|
59 |
+
"model_max_length": 1e+30,
|
60 |
+
"pad_token": "</s>",
|
61 |
+
"sp_model_kwargs": {},
|
62 |
+
"spaces_between_special_tokens": false,
|
63 |
+
"tokenizer_class": "IndexTokenizer",
|
64 |
+
"unk_token": "<unk>",
|
65 |
+
"use_default_system_prompt": false
|
66 |
+
}
|