johannhartmann commited on
Commit
cd39e03
1 Parent(s): 6633202

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,153 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: mayflowergmbh/occiglot-10b-de-en-instruct
3
+ tags:
4
+ - generated_from_trainer
5
+ model-index:
6
+ - name: occiglot10b/
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
+ <details><summary>See axolotl config</summary>
15
+
16
+ axolotl version: `0.4.0`
17
+ ```yaml
18
+ base_model: mayflowergmbh/occiglot-10b-de-en-instruct
19
+ model_type: MistralForCausalLM
20
+ tokenizer_type: LlamaTokenizer
21
+ is_mistral_derived_model: true
22
+
23
+ load_in_8bit: false
24
+ load_in_4bit: true
25
+ strict: false
26
+
27
+ rl: dpo
28
+ datasets:
29
+ - path: johannhartmann/mistralorpo
30
+ split: train
31
+ type: chatml.intel
32
+ dataset_prepared_path: last_run_prepared
33
+ val_set_size: 0.0
34
+ output_dir: ./occiglot10b/
35
+ save_total_limit: 3
36
+
37
+ adapter: qlora
38
+ lora_model_dir:
39
+
40
+ sequence_len: 2048
41
+ sample_packing: false
42
+ pad_to_sequence_len: false
43
+
44
+ lora_r: 64
45
+ lora_alpha: 32
46
+ lora_dropout: 0.05
47
+ lora_target_linear: true
48
+ lora_modules_to_save:
49
+ - embed_tokens
50
+ - lm_head
51
+ lora_fan_in_fan_out:
52
+ lora_target_modules:
53
+ - gate_proj
54
+ - down_proj
55
+ - up_proj
56
+ - q_proj
57
+ - v_proj
58
+ - k_proj
59
+ - o_proj
60
+
61
+ wandb_project: occiglot
62
+ wandb_entity: mayflowerteam
63
+ wandb_watch:
64
+ wandb_run_id:
65
+ wandb_log_model:
66
+
67
+ gradient_accumulation_steps: 4
68
+ micro_batch_size: 2
69
+ num_epochs: 1
70
+ optimizer: paged_adamw_8bit
71
+ adam_beta2: 0.95
72
+ adam_epsilion: 0.00001
73
+ lr_scheduler: cosine
74
+ learning_rate: 2e-5
75
+
76
+ train_on_inputs: false
77
+ group_by_length: false
78
+ bf16: true
79
+ fp16: false
80
+ tf32: false
81
+
82
+ gradient_checkpointing: true
83
+ early_stopping_patience:
84
+ resume_from_checkpoint:
85
+ local_rank:
86
+ logging_steps: 1
87
+ xformers_attention:
88
+ flash_attention: true
89
+
90
+ warmup_steps: 100
91
+ eval_steps:
92
+ eval_table_size:
93
+ eval_table_max_new_tokens: 128
94
+ save_steps: 239
95
+ debug:
96
+ deepspeed:
97
+ weight_decay: 0.1
98
+ fsdp:
99
+ fsdp_config:
100
+ special_tokens:
101
+ save_safetensors: true
102
+ special_tokens:
103
+ eos_token: "<|im_end|>"
104
+ tokens: # these are delimiters
105
+ - "<|im_start|>"
106
+ chat_template: chatml
107
+
108
+ ```
109
+
110
+ </details><br>
111
+
112
+ # occiglot10b/
113
+
114
+ This model is a fine-tuned version of [mayflowergmbh/occiglot-10b-de-en-instruct](https://huggingface.co/mayflowergmbh/occiglot-10b-de-en-instruct) on an unknown dataset.
115
+
116
+ ## Model description
117
+
118
+ More information needed
119
+
120
+ ## Intended uses & limitations
121
+
122
+ More information needed
123
+
124
+ ## Training and evaluation data
125
+
126
+ More information needed
127
+
128
+ ## Training procedure
129
+
130
+ ### Training hyperparameters
131
+
132
+ The following hyperparameters were used during training:
133
+ - learning_rate: 2e-05
134
+ - train_batch_size: 2
135
+ - eval_batch_size: 8
136
+ - seed: 42
137
+ - gradient_accumulation_steps: 4
138
+ - total_train_batch_size: 8
139
+ - optimizer: Adam with betas=(0.9,0.95) and epsilon=1e-08
140
+ - lr_scheduler_type: cosine
141
+ - lr_scheduler_warmup_steps: 100
142
+ - training_steps: 2698
143
+
144
+ ### Training results
145
+
146
+
147
+
148
+ ### Framework versions
149
+
150
+ - Transformers 4.40.0.dev0
151
+ - Pytorch 2.1.2+cu118
152
+ - Datasets 2.18.0
153
+ - Tokenizers 0.15.0
adapter_config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "mayflowergmbh/occiglot-10b-de-en-instruct",
5
+ "bias": "none",
6
+ "fan_in_fan_out": null,
7
+ "inference_mode": false,
8
+ "init_lora_weights": true,
9
+ "layers_pattern": null,
10
+ "layers_to_transform": null,
11
+ "loftq_config": {},
12
+ "lora_alpha": 32,
13
+ "lora_dropout": 0.05,
14
+ "megatron_config": null,
15
+ "megatron_core": "megatron.core",
16
+ "modules_to_save": [
17
+ "embed_tokens",
18
+ "lm_head"
19
+ ],
20
+ "peft_type": "LORA",
21
+ "r": 64,
22
+ "rank_pattern": {},
23
+ "revision": null,
24
+ "target_modules": [
25
+ "down_proj",
26
+ "o_proj",
27
+ "v_proj",
28
+ "up_proj",
29
+ "gate_proj",
30
+ "q_proj",
31
+ "k_proj"
32
+ ],
33
+ "task_type": "CAUSAL_LM",
34
+ "use_dora": false,
35
+ "use_rslora": false
36
+ }
added_tokens.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "<|im_end|>": 32001,
3
+ "<|im_start|>": 32000
4
+ }
config.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "mayflowergmbh/occiglot-10b-de-en-instruct",
3
+ "architectures": [
4
+ "MistralForCausalLM"
5
+ ],
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 1,
8
+ "eos_token_id": 32001,
9
+ "hidden_act": "silu",
10
+ "hidden_size": 4096,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 14336,
13
+ "max_position_embeddings": 32768,
14
+ "model_type": "mistral",
15
+ "num_attention_heads": 32,
16
+ "num_hidden_layers": 44,
17
+ "num_key_value_heads": 8,
18
+ "quantization_config": {
19
+ "_load_in_4bit": true,
20
+ "_load_in_8bit": false,
21
+ "bnb_4bit_compute_dtype": "bfloat16",
22
+ "bnb_4bit_quant_storage": "bfloat16",
23
+ "bnb_4bit_quant_type": "nf4",
24
+ "bnb_4bit_use_double_quant": true,
25
+ "llm_int8_enable_fp32_cpu_offload": false,
26
+ "llm_int8_has_fp16_weight": false,
27
+ "llm_int8_skip_modules": null,
28
+ "llm_int8_threshold": 6.0,
29
+ "load_in_4bit": true,
30
+ "load_in_8bit": false,
31
+ "quant_method": "bitsandbytes"
32
+ },
33
+ "rms_norm_eps": 1e-05,
34
+ "rope_theta": 10000.0,
35
+ "sliding_window": 4096,
36
+ "tie_word_embeddings": false,
37
+ "torch_dtype": "bfloat16",
38
+ "transformers_version": "4.40.0.dev0",
39
+ "use_cache": false,
40
+ "vocab_size": 32002
41
+ }
generation_config.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "do_sample": true,
5
+ "eos_token_id": 2,
6
+ "transformers_version": "4.40.0.dev0",
7
+ "use_cache": false
8
+ }
model-00001-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14bb3ef43a38a9e7a2b6a2074350fbffe1fb44f63a051b713140d862df127d86
3
+ size 4979100184
model-00002-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d0acb81772b8826bb34c2c69d6bb7a99f8f9858b25a37989a7d74599fbd5801f
3
+ size 1483666287
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff
 
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": "<|im_end|>",
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:dadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
3
+ size 493443
tokenizer_config.json ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": true,
5
+ "added_tokens_decoder": {
6
+ "0": {
7
+ "content": "<unk>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "1": {
15
+ "content": "<s>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ },
22
+ "2": {
23
+ "content": "</s>",
24
+ "lstrip": false,
25
+ "normalized": false,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": true
29
+ },
30
+ "32000": {
31
+ "content": "<|im_start|>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false,
36
+ "special": false
37
+ },
38
+ "32001": {
39
+ "content": "<|im_end|>",
40
+ "lstrip": false,
41
+ "normalized": false,
42
+ "rstrip": false,
43
+ "single_word": false,
44
+ "special": true
45
+ }
46
+ },
47
+ "additional_special_tokens": [],
48
+ "bos_token": "<s>",
49
+ "chat_template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
50
+ "clean_up_tokenization_spaces": false,
51
+ "eos_token": "<|im_end|>",
52
+ "legacy": true,
53
+ "model_max_length": 1000000000000000019884624838656,
54
+ "pad_token": "</s>",
55
+ "sp_model_kwargs": {},
56
+ "spaces_between_special_tokens": false,
57
+ "tokenizer_class": "LlamaTokenizer",
58
+ "unk_token": "<unk>",
59
+ "use_default_system_prompt": false,
60
+ "use_fast": true
61
+ }