Initial commit
Browse files- .gitattributes +2 -0
- adapter_config.json +19 -0
- adapter_model.bin +3 -0
- generation_config.json +13 -0
- special_tokens_map.json +7 -0
- tokenizer.model +3 -0
- tokenizer_config.json +34 -0
- training_config.json +35 -0
.gitattributes
CHANGED
@@ -32,3 +32,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
35 |
+
adapter_model.bin filter=lfs diff=lfs merge=lfs -text
|
36 |
+
tokenizer.model filter=lfs diff=lfs merge=lfs -text
|
adapter_config.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"base_model_name_or_path": "huggyllama/llama-7b",
|
3 |
+
"bias": "none",
|
4 |
+
"fan_in_fan_out": false,
|
5 |
+
"inference_mode": true,
|
6 |
+
"init_lora_weights": true,
|
7 |
+
"lora_alpha": 16,
|
8 |
+
"lora_dropout": 0.05,
|
9 |
+
"modules_to_save": null,
|
10 |
+
"peft_type": "LORA",
|
11 |
+
"r": 16,
|
12 |
+
"target_modules": [
|
13 |
+
"q_proj",
|
14 |
+
"v_proj",
|
15 |
+
"k_proj",
|
16 |
+
"o_proj"
|
17 |
+
],
|
18 |
+
"task_type": "CAUSAL_LM"
|
19 |
+
}
|
adapter_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:495d243370899edd9bea25e0dd0b03beb23fb58efc4e9c11a8a32b2bfc16b6bd
|
3 |
+
size 67201357
|
generation_config.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"pad_token_id": 0,
|
3 |
+
"bos_token_id": 1,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"temperature": 0.2,
|
6 |
+
"top_p": 0.9,
|
7 |
+
"top_k": 40,
|
8 |
+
"do_sample": true,
|
9 |
+
"num_beams": 1,
|
10 |
+
"max_new_tokens": 1536,
|
11 |
+
"repetition_penalty": 1.1,
|
12 |
+
"no_repeat_ngram_size": 15
|
13 |
+
}
|
special_tokens_map.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"eos_token": "</s>",
|
4 |
+
"pad_token": "<unk>",
|
5 |
+
"sep_token": "<s>",
|
6 |
+
"unk_token": "<unk>"
|
7 |
+
}
|
tokenizer.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
|
3 |
+
size 499723
|
tokenizer_config.json
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": true,
|
3 |
+
"add_eos_token": false,
|
4 |
+
"bos_token": {
|
5 |
+
"__type": "AddedToken",
|
6 |
+
"content": "<s>",
|
7 |
+
"lstrip": false,
|
8 |
+
"normalized": true,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false
|
11 |
+
},
|
12 |
+
"clean_up_tokenization_spaces": false,
|
13 |
+
"eos_token": {
|
14 |
+
"__type": "AddedToken",
|
15 |
+
"content": "</s>",
|
16 |
+
"lstrip": false,
|
17 |
+
"normalized": true,
|
18 |
+
"rstrip": false,
|
19 |
+
"single_word": false
|
20 |
+
},
|
21 |
+
"model_max_length": 2048,
|
22 |
+
"pad_token": null,
|
23 |
+
"padding_side": "left",
|
24 |
+
"sp_model_kwargs": {},
|
25 |
+
"tokenizer_class": "LlamaTokenizer",
|
26 |
+
"unk_token": {
|
27 |
+
"__type": "AddedToken",
|
28 |
+
"content": "<unk>",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": true,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false
|
33 |
+
}
|
34 |
+
}
|
training_config.json
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"trainer": {
|
3 |
+
"evaluation_strategy": "steps",
|
4 |
+
"per_device_train_batch_size": 4,
|
5 |
+
"per_device_eval_batch_size": 4,
|
6 |
+
"gradient_accumulation_steps": 32,
|
7 |
+
"eval_steps": 20,
|
8 |
+
"save_steps": 20,
|
9 |
+
"logging_steps": 2,
|
10 |
+
"learning_rate": 0.0003,
|
11 |
+
"num_train_epochs": 5,
|
12 |
+
"lr_scheduler_type": "cosine",
|
13 |
+
"warmup_steps": 30,
|
14 |
+
"fp16": true,
|
15 |
+
"bf16": false,
|
16 |
+
"torch_compile": false,
|
17 |
+
"optim": "adamw_torch"
|
18 |
+
},
|
19 |
+
"lora": {
|
20 |
+
"r": 16,
|
21 |
+
"lora_alpha": 16,
|
22 |
+
"lora_dropout": 0.05,
|
23 |
+
"bias": "none",
|
24 |
+
"target_modules": ["q_proj", "v_proj", "k_proj", "o_proj"],
|
25 |
+
"task_type": "CAUSAL_LM"
|
26 |
+
},
|
27 |
+
"load_in_8bit": true,
|
28 |
+
"only_target_loss": true,
|
29 |
+
"mode": "chat",
|
30 |
+
"templates_path": "internal_prompts/rpr.json",
|
31 |
+
"model_name": "models/llama-7b",
|
32 |
+
"model_type": "causal",
|
33 |
+
"max_tokens_count": 2000
|
34 |
+
}
|
35 |
+
|