Fizzarolli commited on
Commit
24ba94d
·
verified ·
1 Parent(s): 74a7771

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: ByteDance-Seed/academic-ds-9B
5
+ tags:
6
+ - generated_from_trainer
7
+ datasets:
8
+ - allura-forge/inkmix-v3.1
9
+ model-index:
10
+ - name: mnt/persistent/ckpts
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ [<img src="https://raw.githubusercontent.com/axolotl-ai-cloud/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/axolotl-ai-cloud/axolotl)
18
+ <details><summary>See axolotl config</summary>
19
+
20
+ axolotl version: `0.10.0.dev0`
21
+ ```yaml
22
+ # === Model Configuration ===
23
+ base_model: ByteDance-Seed/academic-ds-9B
24
+ load_in_8bit: false
25
+ load_in_4bit: false
26
+
27
+ # === Training Setup ===
28
+ num_epochs: 2
29
+ micro_batch_size: 2
30
+ gradient_accumulation_steps: 8
31
+ sequence_len: 8192
32
+ sample_packing: true
33
+ pad_to_sequence_len: true
34
+
35
+ # === Hyperparameter Configuration ===
36
+ optimizer: apollo_adamw
37
+ # Apollo-mini configuration:
38
+ optim_args: "proj=random,rank=1,scale=128.0,scale_type=tensor,update_proj_gap=200"
39
+ # Regular Apollo configuration:
40
+ # optim_args:
41
+ optim_target_modules: all_linear
42
+ learning_rate: 1e-5
43
+ lr_scheduler: rex
44
+ weight_decay: 0.01
45
+ warmup_ratio: 0
46
+ max_grad_norm: 0.1
47
+
48
+ # === Data Configuration ===
49
+ datasets:
50
+ - path: allura-forge/inkmix-v3.1
51
+ type: chat_template
52
+ split: train
53
+ field_messages: conversations
54
+ message_field_role: from
55
+ message_field_content: value
56
+
57
+ dataset_prepared_path: last_run_prepared
58
+ chat_template_jinja: |
59
+ {% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}
60
+ {{bos_token}}{% for message in messages %}
61
+ {{'<|im_start|>' + message['role'] + '
62
+ ' + message['content'] + '<|im_end|>' + '
63
+ '}}
64
+ {% endfor %}
65
+
66
+ # === Plugins ===
67
+ plugins:
68
+ - axolotl.integrations.liger.LigerPlugin
69
+ # - axolotl.integrations.cut_cross_entropy.CutCrossEntropyPlugin
70
+
71
+ # === Hardware Optimization ===
72
+ gradient_checkpointing: unsloth
73
+ gradient_checkpointing_kwargs:
74
+ use_reentrant: false
75
+ liger_rope: true
76
+ liger_rms_norm: true
77
+ liger_glu_activation: true
78
+ #cut_cross_entropy: true
79
+
80
+ # === Wandb Tracking ===
81
+ wandb_project: bytedance-ds-9b-inkmix-v3
82
+
83
+ # === Checkpointing ===
84
+ saves_per_epoch: 2
85
+ save_total_limit: 3
86
+
87
+ # === Advanced Settings ===
88
+ output_dir: /mnt/persistent/ckpts
89
+ bf16: auto
90
+ flash_attention: true
91
+ train_on_inputs: false
92
+ group_by_length: false
93
+ logging_steps: 1
94
+ trust_remote_code: true
95
+ tokens:
96
+ - '<|im_start|>'
97
+ special_tokens:
98
+ eos_token: '<|im_end|>'
99
+
100
+ ```
101
+
102
+ </details><br>
103
+
104
+ # mnt/persistent/ckpts
105
+
106
+ This model is a fine-tuned version of [ByteDance-Seed/academic-ds-9B](https://huggingface.co/ByteDance-Seed/academic-ds-9B) on the allura-forge/inkmix-v3.1 dataset.
107
+
108
+ ## Model description
109
+
110
+ More information needed
111
+
112
+ ## Intended uses & limitations
113
+
114
+ More information needed
115
+
116
+ ## Training and evaluation data
117
+
118
+ More information needed
119
+
120
+ ## Training procedure
121
+
122
+ ### Training hyperparameters
123
+
124
+ The following hyperparameters were used during training:
125
+ - learning_rate: 1e-05
126
+ - train_batch_size: 2
127
+ - eval_batch_size: 2
128
+ - seed: 42
129
+ - gradient_accumulation_steps: 8
130
+ - total_train_batch_size: 16
131
+ - optimizer: Use OptimizerNames.APOLLO_ADAMW with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=proj=random,rank=1,scale=128.0,scale_type=tensor,update_proj_gap=200
132
+ - lr_scheduler_type: cosine
133
+ - num_epochs: 2.0
134
+
135
+ ### Training results
136
+
137
+
138
+
139
+ ### Framework versions
140
+
141
+ - Transformers 4.51.3
142
+ - Pytorch 2.6.0+cu124
143
+ - Datasets 3.5.1
144
+ - Tokenizers 0.21.1
config.json ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "DeepseekV3ForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "auto_map": {
8
+ "AutoConfig": "ByteDance-Seed/academic-ds-9B--configuration_deepseek.DeepseekV3Config",
9
+ "AutoModel": "ByteDance-Seed/academic-ds-9B--modeling_deepseek.DeepseekV3Model",
10
+ "AutoModelForCausalLM": "ByteDance-Seed/academic-ds-9B--modeling_deepseek.DeepseekV3ForCausalLM"
11
+ },
12
+ "aux_loss_alpha": 0.001,
13
+ "bos_token_id": 0,
14
+ "eos_token_id": 128815,
15
+ "ep_size": 1,
16
+ "first_k_dense_replace": 1,
17
+ "hidden_act": "silu",
18
+ "hidden_size": 2048,
19
+ "initializer_range": 0.0125,
20
+ "intermediate_size": 10944,
21
+ "kv_lora_rank": 512,
22
+ "max_position_embeddings": 8192,
23
+ "model_type": "deepseek_v3",
24
+ "moe_intermediate_size": 1408,
25
+ "moe_layer_freq": 1,
26
+ "n_group": 8,
27
+ "n_routed_experts": 64,
28
+ "n_shared_experts": 2,
29
+ "norm_topk_prob": true,
30
+ "num_attention_heads": 16,
31
+ "num_experts_per_tok": 8,
32
+ "num_hidden_layers": 16,
33
+ "num_key_value_heads": 16,
34
+ "num_nextn_predict_layers": 1,
35
+ "pretraining_tp": 1,
36
+ "q_lora_rank": 1024,
37
+ "qk_nope_head_dim": 128,
38
+ "qk_rope_head_dim": 64,
39
+ "rms_norm_eps": 1e-06,
40
+ "rope_scaling": {
41
+ "beta_fast": 32,
42
+ "beta_slow": 1,
43
+ "factor": 40,
44
+ "mscale": 1.0,
45
+ "mscale_all_dim": 1.0,
46
+ "original_max_position_embeddings": 4096,
47
+ "type": "yarn"
48
+ },
49
+ "rope_theta": 10000,
50
+ "routed_scaling_factor": 1.0,
51
+ "scoring_func": "sigmoid",
52
+ "seq_aux": true,
53
+ "tie_word_embeddings": false,
54
+ "topk_group": 4,
55
+ "topk_method": "noaux_tc",
56
+ "torch_dtype": "bfloat16",
57
+ "transformers_version": "4.51.3",
58
+ "use_cache": false,
59
+ "v_head_dim": 128,
60
+ "vocab_size": 129280
61
+ }
generation_config.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 0,
4
+ "do_sample": true,
5
+ "eos_token_id": 1,
6
+ "transformers_version": "4.51.3",
7
+ "use_cache": false
8
+ }
model-00001-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:415c70456e4e4edd0133a1ba15284ebfdd9b0e0cb541ec75db101d251e40fe07
3
+ size 4997133360
model-00002-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7e10b6f7a2db21cdb4fe91b3caf461bc89431233a1328cd617f40e61fc199853
3
+ size 4994522208
model-00003-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c683f7ce09160109b0d5df5e55d69839ad9a6ee0bacd2b5f6f09a64260f83851
3
+ size 4997418376
model-00004-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2d1c6895ff31b766cc1be06b99f5329e736697f1de0ce2297ea2a83b90d199f3
3
+ size 3748241232
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,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<|begin▁of▁sentence|>",
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": "<|end▁of▁sentence|>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ }
23
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff