Add model files
Browse files- README.md +9 -0
- config.json +29 -0
- generation_config.json +7 -0
- merges.txt +0 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +30 -0
- tokenizer.json +0 -0
- tokenizer_config.json +38 -0
- training_args.bin +3 -0
- training_params.json +47 -0
- vocab.json +0 -0
README.md
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- autotrain
|
4 |
+
- text-generation
|
5 |
+
widget:
|
6 |
+
- text: "I love AutoTrain because "
|
7 |
+
---
|
8 |
+
|
9 |
+
# Model Trained Using AutoTrain
|
config.json
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "ahxt/llama2_xs_460M_experimental",
|
3 |
+
"architectures": [
|
4 |
+
"LlamaForCausalLM"
|
5 |
+
],
|
6 |
+
"attention_bias": false,
|
7 |
+
"bos_token_id": 1,
|
8 |
+
"eos_token_id": 2,
|
9 |
+
"hidden_act": "silu",
|
10 |
+
"hidden_size": 1024,
|
11 |
+
"initializer_range": 0.02,
|
12 |
+
"intermediate_size": 4096,
|
13 |
+
"layernorm_epsilon": 1e-05,
|
14 |
+
"max_position_embeddings": 1024,
|
15 |
+
"model_type": "llama",
|
16 |
+
"num_attention_heads": 16,
|
17 |
+
"num_hidden_layers": 24,
|
18 |
+
"num_key_value_heads": 2,
|
19 |
+
"pad_token_id": 0,
|
20 |
+
"pretraining_tp": 1,
|
21 |
+
"rms_norm_eps": 1e-06,
|
22 |
+
"rope_scaling": null,
|
23 |
+
"rope_theta": 10000.0,
|
24 |
+
"tie_word_embeddings": false,
|
25 |
+
"torch_dtype": "float32",
|
26 |
+
"transformers_version": "4.34.1",
|
27 |
+
"use_cache": false,
|
28 |
+
"vocab_size": 50257
|
29 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 1,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"pad_token_id": 0,
|
6 |
+
"transformers_version": "4.34.1"
|
7 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7096d33a443b7987f80cc809b5826e7a340841500b424fb3d64efa8ccf1bfc8c
|
3 |
+
size 1846428918
|
special_tokens_map.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<|endoftext|>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": true,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"eos_token": {
|
10 |
+
"content": "#",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": true,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"pad_token": {
|
17 |
+
"content": "\"",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": true,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"unk_token": {
|
24 |
+
"content": "<|endoftext|>",
|
25 |
+
"lstrip": false,
|
26 |
+
"normalized": true,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
}
|
30 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": false,
|
3 |
+
"add_prefix_space": false,
|
4 |
+
"added_tokens_decoder": {
|
5 |
+
"1": {
|
6 |
+
"content": "\"",
|
7 |
+
"lstrip": false,
|
8 |
+
"normalized": true,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false,
|
11 |
+
"special": true
|
12 |
+
},
|
13 |
+
"2": {
|
14 |
+
"content": "#",
|
15 |
+
"lstrip": false,
|
16 |
+
"normalized": true,
|
17 |
+
"rstrip": false,
|
18 |
+
"single_word": false,
|
19 |
+
"special": true
|
20 |
+
},
|
21 |
+
"50256": {
|
22 |
+
"content": "<|endoftext|>",
|
23 |
+
"lstrip": false,
|
24 |
+
"normalized": true,
|
25 |
+
"rstrip": false,
|
26 |
+
"single_word": false,
|
27 |
+
"special": true
|
28 |
+
}
|
29 |
+
},
|
30 |
+
"bos_token": "<|endoftext|>",
|
31 |
+
"clean_up_tokenization_spaces": true,
|
32 |
+
"eos_token": "#",
|
33 |
+
"errors": "replace",
|
34 |
+
"model_max_length": 1024,
|
35 |
+
"pad_token": "\"",
|
36 |
+
"tokenizer_class": "GPT2Tokenizer",
|
37 |
+
"unk_token": "<|endoftext|>"
|
38 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7aefbd6d3bb727e076e892ca4f59fca1e1b95f605531ce4d1345aed94d9314db
|
3 |
+
size 4472
|
training_params.json
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"model": "ahxt/llama2_xs_460M_experimental",
|
3 |
+
"data_path": "data/",
|
4 |
+
"project_name": "trained-model-460M",
|
5 |
+
"train_split": "train",
|
6 |
+
"valid_split": null,
|
7 |
+
"text_column": "text",
|
8 |
+
"rejected_text_column": "rejected",
|
9 |
+
"token": null,
|
10 |
+
"lr": 0.0004,
|
11 |
+
"epochs": 1,
|
12 |
+
"batch_size": 2,
|
13 |
+
"warmup_ratio": 0.1,
|
14 |
+
"gradient_accumulation": 4,
|
15 |
+
"optimizer": "adamw_torch",
|
16 |
+
"scheduler": "cosine",
|
17 |
+
"weight_decay": 0.01,
|
18 |
+
"max_grad_norm": 1.0,
|
19 |
+
"seed": 42,
|
20 |
+
"add_eos_token": true,
|
21 |
+
"block_size": 2049,
|
22 |
+
"use_peft": false,
|
23 |
+
"lora_r": 16,
|
24 |
+
"lora_alpha": 16,
|
25 |
+
"lora_dropout": 0.05,
|
26 |
+
"logging_steps": 50,
|
27 |
+
"evaluation_strategy": "epoch",
|
28 |
+
"save_total_limit": 1,
|
29 |
+
"save_strategy": "epoch",
|
30 |
+
"auto_find_batch_size": true,
|
31 |
+
"fp16": false,
|
32 |
+
"push_to_hub": false,
|
33 |
+
"use_int8": true,
|
34 |
+
"model_max_length": 4096,
|
35 |
+
"repo_id": null,
|
36 |
+
"use_int4": false,
|
37 |
+
"trainer": "sft",
|
38 |
+
"target_modules": null,
|
39 |
+
"merge_adapter": true,
|
40 |
+
"username": null,
|
41 |
+
"use_flash_attention_2": false,
|
42 |
+
"log": "none",
|
43 |
+
"disable_gradient_checkpointing": false,
|
44 |
+
"model_ref": null,
|
45 |
+
"dpo_beta": 0.1,
|
46 |
+
"prompt_text_column": "prompt"
|
47 |
+
}
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|