mpasila commited on
Commit
6cd4a60
1 Parent(s): 47f4ec4

Upload 6 files

Browse files
README.md ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - fi
4
+ library_name: peft
5
+ base_model: LumiOpen/Viking-7B
6
+ license: apache-2.0
7
+ datasets:
8
+ - mpasila/Alpacazord-V1
9
+ ---
10
+
11
+ # Model Card for Alpacazord-Viking-LoRA-7B
12
+
13
+ LoRA trained with text-generation-webui in 4-bit using [LumiOpen/Viking-7B](https://huggingface.co/LumiOpen/Viking-7B/) as the base model for 1 epoch. Dataset used with the LoRA is [mpasila/Alpacazord-V1](https://huggingface.co/datasets/mpasila/Alpacazord-V1/).
14
+
15
+ It uses Alpaca format like so:
16
+ ```
17
+ {
18
+ "instruction,output": "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%",
19
+ "instruction,input,output": "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%"
20
+ }
21
+
22
+ ```
23
+
24
+ Using the following settings:
25
+ ```json
26
+ {
27
+ "lora_name": "Alpacazord-V4",
28
+ "always_override": false,
29
+ "q_proj_en": true,
30
+ "v_proj_en": true,
31
+ "k_proj_en": false,
32
+ "o_proj_en": false,
33
+ "gate_proj_en": false,
34
+ "down_proj_en": false,
35
+ "up_proj_en": false,
36
+ "save_steps": 500,
37
+ "micro_batch_size": 4,
38
+ "batch_size": 128,
39
+ "epochs": 1,
40
+ "learning_rate": "3e-4",
41
+ "lr_scheduler_type": "linear",
42
+ "lora_rank": 128,
43
+ "lora_alpha": 256,
44
+ "lora_dropout": 0.05,
45
+ "cutoff_len": 512,
46
+ "dataset": "Alpacazord-V1",
47
+ "eval_dataset": "None",
48
+ "format": "alpaca-format",
49
+ "eval_steps": 100,
50
+ "raw_text_file": "None",
51
+ "overlap_len": 128,
52
+ "newline_favor_len": 128,
53
+ "higher_rank_limit": false,
54
+ "warmup_steps": 100,
55
+ "optimizer": "adamw_torch",
56
+ "hard_cut_string": "\\n\\n\\n",
57
+ "train_only_after": "",
58
+ "stop_at_loss": 0,
59
+ "add_eos_token": false,
60
+ "min_chars": 0,
61
+ "report_to": "None"
62
+ }
63
+ ```
64
+
65
+ ### Framework versions
66
+
67
+ - PEFT 0.8.2
adapter_config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "models/LumiOpen_Viking-7B",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layers_pattern": null,
10
+ "layers_to_transform": null,
11
+ "loftq_config": {},
12
+ "lora_alpha": 256,
13
+ "lora_dropout": 0.05,
14
+ "megatron_config": null,
15
+ "megatron_core": "megatron.core",
16
+ "modules_to_save": null,
17
+ "peft_type": "LORA",
18
+ "r": 128,
19
+ "rank_pattern": {},
20
+ "revision": null,
21
+ "target_modules": [
22
+ "v_proj",
23
+ "q_proj"
24
+ ],
25
+ "task_type": "CAUSAL_LM",
26
+ "use_rslora": false
27
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:58e43a2322bb137239b233c00c47691bf81530639642ed2aad0cd3bdc311a837
3
+ size 268453016
training_log.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "base_model_name": "LumiOpen_Viking-7B",
3
+ "base_model_class": "LlamaForCausalLM",
4
+ "base_loaded_in_4bit": true,
5
+ "base_loaded_in_8bit": false,
6
+ "projections": "q, v",
7
+ "loss": 1.1857,
8
+ "grad_norm": 0.2142583131790161,
9
+ "learning_rate": 0.0,
10
+ "epoch": 1.0,
11
+ "current_steps": 45759,
12
+ "train_runtime": 100770.7651,
13
+ "train_samples_per_second": 1.817,
14
+ "train_steps_per_second": 0.014,
15
+ "total_flos": 3.981217427840041e+18,
16
+ "train_loss": 1.2570427094306145
17
+ }
training_parameters.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "lora_name": "Alpacazord-V4",
3
+ "always_override": false,
4
+ "q_proj_en": true,
5
+ "v_proj_en": true,
6
+ "k_proj_en": false,
7
+ "o_proj_en": false,
8
+ "gate_proj_en": false,
9
+ "down_proj_en": false,
10
+ "up_proj_en": false,
11
+ "save_steps": 500,
12
+ "micro_batch_size": 4,
13
+ "batch_size": 128,
14
+ "epochs": 1,
15
+ "learning_rate": "3e-4",
16
+ "lr_scheduler_type": "linear",
17
+ "lora_rank": 128,
18
+ "lora_alpha": 256,
19
+ "lora_dropout": 0.05,
20
+ "cutoff_len": 512,
21
+ "dataset": "Alpacazord-V1",
22
+ "eval_dataset": "None",
23
+ "format": "alpaca-format",
24
+ "eval_steps": 100,
25
+ "raw_text_file": "None",
26
+ "overlap_len": 128,
27
+ "newline_favor_len": 128,
28
+ "higher_rank_limit": false,
29
+ "warmup_steps": 100,
30
+ "optimizer": "adamw_torch",
31
+ "hard_cut_string": "\\n\\n\\n",
32
+ "train_only_after": "",
33
+ "stop_at_loss": 0,
34
+ "add_eos_token": false,
35
+ "min_chars": 0,
36
+ "report_to": "None"
37
+ }
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
+ }