First upload
Browse files- README.md +32 -1
- adapter_config.json +21 -0
- adapter_model.bin +3 -0
- training_log.json +16 -0
- training_parameters.json +30 -0
- training_prompt.json +5 -0
README.md
CHANGED
@@ -1,3 +1,34 @@
|
|
1 |
---
|
2 |
-
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
library_name: peft
|
3 |
---
|
4 |
+
## Training procedure
|
5 |
+
|
6 |
+
|
7 |
+
The following `bitsandbytes` quantization config was used during training:
|
8 |
+
- quant_method: bitsandbytes
|
9 |
+
- load_in_8bit: False
|
10 |
+
- load_in_4bit: True
|
11 |
+
- llm_int8_threshold: 6.0
|
12 |
+
- llm_int8_skip_modules: None
|
13 |
+
- llm_int8_enable_fp32_cpu_offload: False
|
14 |
+
- llm_int8_has_fp16_weight: False
|
15 |
+
- bnb_4bit_quant_type: nf4
|
16 |
+
- bnb_4bit_use_double_quant: False
|
17 |
+
- bnb_4bit_compute_dtype: float16
|
18 |
+
|
19 |
+
The following `bitsandbytes` quantization config was used during training:
|
20 |
+
- quant_method: bitsandbytes
|
21 |
+
- load_in_8bit: False
|
22 |
+
- load_in_4bit: True
|
23 |
+
- llm_int8_threshold: 6.0
|
24 |
+
- llm_int8_skip_modules: None
|
25 |
+
- llm_int8_enable_fp32_cpu_offload: False
|
26 |
+
- llm_int8_has_fp16_weight: False
|
27 |
+
- bnb_4bit_quant_type: nf4
|
28 |
+
- bnb_4bit_use_double_quant: False
|
29 |
+
- bnb_4bit_compute_dtype: float16
|
30 |
+
### Framework versions
|
31 |
+
|
32 |
+
- PEFT 0.5.0
|
33 |
+
|
34 |
+
- PEFT 0.5.0
|
adapter_config.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"auto_mapping": null,
|
3 |
+
"base_model_name_or_path": "models/meta-llama_Llama-2-7b-chat-hf",
|
4 |
+
"bias": "none",
|
5 |
+
"fan_in_fan_out": false,
|
6 |
+
"inference_mode": true,
|
7 |
+
"init_lora_weights": true,
|
8 |
+
"layers_pattern": null,
|
9 |
+
"layers_to_transform": null,
|
10 |
+
"lora_alpha": 64,
|
11 |
+
"lora_dropout": 0.05,
|
12 |
+
"modules_to_save": null,
|
13 |
+
"peft_type": "LORA",
|
14 |
+
"r": 32,
|
15 |
+
"revision": null,
|
16 |
+
"target_modules": [
|
17 |
+
"q_proj",
|
18 |
+
"v_proj"
|
19 |
+
],
|
20 |
+
"task_type": "CAUSAL_LM"
|
21 |
+
}
|
adapter_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:19d8cd3514120eefa6b351ddd0ed837bc6f349aae28c485500380ac36e2ce2c7
|
3 |
+
size 67154893
|
training_log.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"base_model_name": "meta-llama_Llama-2-7b-chat-hf",
|
3 |
+
"base_model_class": "LlamaForCausalLM",
|
4 |
+
"base_loaded_in_4bit": true,
|
5 |
+
"base_loaded_in_8bit": false,
|
6 |
+
"projections": "q, v",
|
7 |
+
"loss": 0.491,
|
8 |
+
"learning_rate": 5.487804878048779e-06,
|
9 |
+
"epoch": 2.99,
|
10 |
+
"current_steps": 5357,
|
11 |
+
"train_runtime": 6028.1864,
|
12 |
+
"train_samples_per_second": 3.584,
|
13 |
+
"train_steps_per_second": 0.028,
|
14 |
+
"total_flos": 1.11823165587456e+17,
|
15 |
+
"train_loss": 0.7142976650169918
|
16 |
+
}
|
training_parameters.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"lora_name": "hant_roleplay_chat_v5",
|
3 |
+
"always_override": false,
|
4 |
+
"save_steps": 0.0,
|
5 |
+
"micro_batch_size": 4,
|
6 |
+
"batch_size": 128,
|
7 |
+
"epochs": 3.0,
|
8 |
+
"learning_rate": "3e-4",
|
9 |
+
"lr_scheduler_type": "linear",
|
10 |
+
"lora_rank": 32,
|
11 |
+
"lora_alpha": 64,
|
12 |
+
"lora_dropout": 0.05,
|
13 |
+
"cutoff_len": 256,
|
14 |
+
"dataset": "hants_rp_chat",
|
15 |
+
"eval_dataset": "None",
|
16 |
+
"format": "alpaca-format",
|
17 |
+
"eval_steps": 100.0,
|
18 |
+
"raw_text_file": "None",
|
19 |
+
"overlap_len": 128,
|
20 |
+
"newline_favor_len": 128,
|
21 |
+
"higher_rank_limit": false,
|
22 |
+
"warmup_steps": 100.0,
|
23 |
+
"optimizer": "adamw_torch",
|
24 |
+
"hard_cut_string": "\\n\\n\\n",
|
25 |
+
"train_only_after": "",
|
26 |
+
"stop_at_loss": 0,
|
27 |
+
"add_eos_token": false,
|
28 |
+
"min_chars": 0.0,
|
29 |
+
"report_to": "None"
|
30 |
+
}
|
training_prompt.json
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"template_type": "dataset",
|
3 |
+
"template_1": "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n### Instruction:\n%instruction%\n\n### Response:\n%output%",
|
4 |
+
"template_2": "Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.\n\n### Instruction:\n%instruction%\n\n### Input:\n%input%\n\n### Response:\n%output%"
|
5 |
+
}
|