noguchis commited on
Commit
80125a0
1 Parent(s): 429449a

first commit.

Browse files
README.md CHANGED
@@ -1,28 +1,76 @@
1
  ---
2
- language:
3
- - ja
4
- base_model:
5
- - elyza/ELYZA-japanese-Llama-2-13b-instruct
6
  tags:
7
- - medusa
 
 
 
8
  ---
9
 
10
- # outputs
 
 
 
 
 
 
 
 
 
 
11
 
12
  This is a Medusa-2 created using [Medusa](https://github.com/FasterDecoding/Medusa).
13
-
14
 
15
- ## Details
 
 
 
 
 
 
 
 
16
 
17
- ### Base Model
18
 
19
- * [elyza/ELYZA-japanese-Llama-2-7b-instruct](https://huggingface.co/elyza/ELYZA-japanese-Llama-2-7b-instruct)
 
 
 
 
 
 
 
 
 
 
20
 
21
- ### Training dataset
22
 
23
- * [shi3z/ja_conv_wikipedia_orion14B_100K](https://huggingface.co/datasets/shi3z/ja_conv_wikipedia_orion14B_100K)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
 
25
 
26
- # License
27
 
28
- * [【Orion-14B Series】 Models Community License Agreement](https://huggingface.co/OrionStarAI/Orion-14B-Chat/blob/main/ModelsCommunityLicenseAgreement)
 
 
 
 
1
  ---
2
+ base_model: elyza/ELYZA-japanese-Llama-2-7b-instruct
 
 
 
3
  tags:
4
+ - generated_from_trainer
5
+ model-index:
6
+ - name: medusa-ELYZA-japanese-Llama-2-7b-instruct
7
+ results: []
8
  ---
9
 
10
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
11
+ should probably proofread and complete it, then remove this comment. -->
12
+
13
+ [<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)
14
+ # Elyza-japanese-Llama-2-7b-instruct_qlora_ja_conv_stage2
15
+
16
+ This model is a fine-tuned version of [elyza/ELYZA-japanese-Llama-2-7b-instruct](https://huggingface.co/elyza/ELYZA-japanese-Llama-2-7b-instruct) on the None dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - Loss: 2.3897
19
+
20
+ ## Model description
21
 
22
  This is a Medusa-2 created using [Medusa](https://github.com/FasterDecoding/Medusa).
 
23
 
24
+ ## Intended uses & limitations
25
+
26
+ - [$B!Z(BOrion-14B Series$B![(B Models Community License Agreement](https://huggingface.co/OrionStarAI/Orion-14B-Chat/blob/main/ModelsCommunityLicenseAgreement)
27
+
28
+ ## Training and evaluation data
29
+
30
+ - [shi3z/ja_conv_wikipedia_orion14B_100K](https://huggingface.co/datasets/shi3z/ja_conv_wikipedia_orion14B_100K)
31
+
32
+ ## Training procedure
33
 
34
+ ### Training hyperparameters
35
 
36
+ The following hyperparameters were used during training:
37
+ - learning_rate: 0.0005
38
+ - train_batch_size: 4
39
+ - eval_batch_size: 4
40
+ - seed: 42
41
+ - gradient_accumulation_steps: 4
42
+ - total_train_batch_size: 16
43
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
44
+ - lr_scheduler_type: cosine
45
+ - lr_scheduler_warmup_steps: 40
46
+ - num_epochs: 1
47
 
48
+ ### Training results
49
 
50
+ | Training Loss | Epoch | Step | Validation Loss |
51
+ |:-------------:|:-----:|:----:|:---------------:|
52
+ | 2.7245 | 0.06 | 40 | 2.7628 |
53
+ | 2.5599 | 0.11 | 80 | 2.6823 |
54
+ | 2.5001 | 0.17 | 120 | 2.6359 |
55
+ | 2.5642 | 0.23 | 160 | 2.6046 |
56
+ | 2.4892 | 0.28 | 200 | 2.5834 |
57
+ | 2.5232 | 0.34 | 240 | 2.5551 |
58
+ | 2.463 | 0.4 | 280 | 2.5327 |
59
+ | 2.3983 | 0.45 | 320 | 2.5097 |
60
+ | 2.4192 | 0.51 | 360 | 2.4880 |
61
+ | 2.4186 | 0.57 | 400 | 2.4677 |
62
+ | 2.4301 | 0.62 | 440 | 2.4465 |
63
+ | 2.4194 | 0.68 | 480 | 2.4293 |
64
+ | 2.392 | 0.74 | 520 | 2.4144 |
65
+ | 2.4235 | 0.79 | 560 | 2.4014 |
66
+ | 2.4328 | 0.85 | 600 | 2.3939 |
67
+ | 2.456 | 0.91 | 640 | 2.3906 |
68
+ | 2.4135 | 0.96 | 680 | 2.3897 |
69
 
70
 
71
+ ### Framework versions
72
 
73
+ - Transformers 4.34.1
74
+ - Pytorch 2.1.2
75
+ - Datasets 2.16.1
76
+ - Tokenizers 0.14.1
adapter_config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "elyza/ELYZA-japanese-Llama-2-7b-instruct",
5
+ "bias": "none",
6
+ "fan_in_fan_out": null,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layers_pattern": null,
10
+ "layers_to_transform": null,
11
+ "loftq_config": {},
12
+ "lora_alpha": 16,
13
+ "lora_dropout": 0.05,
14
+ "megatron_config": null,
15
+ "megatron_core": "megatron.core",
16
+ "modules_to_save": [
17
+ "medusa_head.0",
18
+ "medusa_head.1",
19
+ "medusa_head.2",
20
+ "medusa_head.3",
21
+ "medusa_head.4"
22
+ ],
23
+ "peft_type": "LORA",
24
+ "r": 32,
25
+ "rank_pattern": {},
26
+ "revision": null,
27
+ "target_modules": [
28
+ "gate_proj",
29
+ "v_proj",
30
+ "o_proj",
31
+ "down_proj",
32
+ "lm_head",
33
+ "k_proj",
34
+ "up_proj",
35
+ "q_proj"
36
+ ],
37
+ "task_type": "CAUSAL_LM",
38
+ "use_rslora": false
39
+ }
adapter_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:499f3ca7e20d11ae3d4718e549f30f444d9fa9e2ad0b4d5a967895b56f6aed2c
3
+ size 2062971154
config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "elyza/ELYZA-japanese-Llama-2-7b-instruct",
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": 4096,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 11008,
13
+ "max_position_embeddings": 4096,
14
+ "medusa_num_heads": 5,
15
+ "medusa_num_layers": 1,
16
+ "model_type": "llama",
17
+ "num_attention_heads": 32,
18
+ "num_hidden_layers": 32,
19
+ "num_key_value_heads": 32,
20
+ "pad_token_id": 0,
21
+ "pretraining_tp": 1,
22
+ "quantization_config": {
23
+ "bnb_4bit_compute_dtype": "bfloat16",
24
+ "bnb_4bit_quant_type": "nf4",
25
+ "bnb_4bit_use_double_quant": true,
26
+ "llm_int8_enable_fp32_cpu_offload": false,
27
+ "llm_int8_has_fp16_weight": false,
28
+ "llm_int8_skip_modules": null,
29
+ "llm_int8_threshold": 6.0,
30
+ "load_in_4bit": true,
31
+ "load_in_8bit": false,
32
+ "quant_method": "bitsandbytes"
33
+ },
34
+ "rms_norm_eps": 1e-06,
35
+ "rope_scaling": null,
36
+ "rope_theta": 10000.0,
37
+ "tie_word_embeddings": false,
38
+ "torch_dtype": "float16",
39
+ "transformers_version": "4.34.1",
40
+ "use_cache": false,
41
+ "vocab_size": 32000
42
+ }
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:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
3
+ size 499723
tokenizer_config.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "added_tokens_decoder": {
5
+ "0": {
6
+ "content": "<unk>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "1": {
14
+ "content": "<s>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ }
29
+ },
30
+ "bos_token": "<s>",
31
+ "clean_up_tokenization_spaces": false,
32
+ "eos_token": "</s>",
33
+ "legacy": false,
34
+ "model_max_length": 1000000000000000019884624838656,
35
+ "pad_token": "</s>",
36
+ "padding_side": "right",
37
+ "sp_model_kwargs": {},
38
+ "spaces_between_special_tokens": false,
39
+ "tokenizer_class": "LlamaTokenizer",
40
+ "trust_remote_code": false,
41
+ "unk_token": "<unk>",
42
+ "use_default_system_prompt": true,
43
+ "use_fast": true
44
+ }