Christina Theodoris commited on
Commit ·
e7041eb
1
Parent(s): 1523f7c
add 1B HF model variant and patch contexts for new paths
Browse files
MaxToki-1B-HF/config.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"LlamaForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_bias": false,
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"bos_token_id": 2,
|
| 8 |
+
"eos_token_id": 3,
|
| 9 |
+
"head_dim": 144,
|
| 10 |
+
"hidden_act": "silu",
|
| 11 |
+
"hidden_size": 2304,
|
| 12 |
+
"initializer_range": 0.02,
|
| 13 |
+
"intermediate_size": 4608,
|
| 14 |
+
"max_position_embeddings": 4096,
|
| 15 |
+
"mlp_bias": false,
|
| 16 |
+
"model_type": "llama",
|
| 17 |
+
"num_attention_heads": 16,
|
| 18 |
+
"num_hidden_layers": 20,
|
| 19 |
+
"num_key_value_heads": 8,
|
| 20 |
+
"pretraining_tp": 1,
|
| 21 |
+
"rms_norm_eps": 1e-05,
|
| 22 |
+
"rope_scaling": {
|
| 23 |
+
"factor": 1.0,
|
| 24 |
+
"high_freq_factor": 4.0,
|
| 25 |
+
"low_freq_factor": 1.0,
|
| 26 |
+
"original_max_position_embeddings": 4096,
|
| 27 |
+
"rope_type": "llama3"
|
| 28 |
+
},
|
| 29 |
+
"rope_theta": 500000,
|
| 30 |
+
"tie_word_embeddings": false,
|
| 31 |
+
"torch_dtype": "float32",
|
| 32 |
+
"transformers_version": "4.53.3",
|
| 33 |
+
"use_cache": true,
|
| 34 |
+
"vocab_size": 20275
|
| 35 |
+
}
|
MaxToki-1B-HF/generation_config.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 2,
|
| 4 |
+
"eos_token_id": 3,
|
| 5 |
+
"transformers_version": "4.53.3"
|
| 6 |
+
}
|
MaxToki-1B-HF/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:96c6c8f9d61732c9bedfc37a9cfd937359e6ce0bfa860526646d101815a242e6
|
| 3 |
+
size 4196167128
|
MaxToki-1B-bionemo/context/io.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
MaxToki-1B-bionemo/context/model.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
_target_: bionemo.llm.lightning.BionemoLightningModule
|
| 2 |
config:
|
| 3 |
_cpu_offloading_context: null
|
| 4 |
-
_target_: bionemo.
|
| 5 |
account_for_embedding_in_pipeline_split: false
|
| 6 |
account_for_loss_in_pipeline_split: false
|
| 7 |
activation_func:
|
|
@@ -255,7 +255,7 @@ data_step:
|
|
| 255 |
_target_: nemo.collections.llm.gpt.model.base.gpt_data_step
|
| 256 |
forward_step:
|
| 257 |
_call_: false
|
| 258 |
-
_target_: bionemo.
|
| 259 |
freeze_params_until_key_suffix: null
|
| 260 |
model_context_managers: []
|
| 261 |
model_transform: null
|
|
@@ -329,7 +329,7 @@ predict_loss_reduction_class:
|
|
| 329 |
_target_: bionemo.llm.lightning.PassthroughLossReduction
|
| 330 |
predict_step: null
|
| 331 |
tokenizer:
|
| 332 |
-
_target_: bionemo.
|
| 333 |
pad_token: <pad>
|
| 334 |
token_dictionary:
|
| 335 |
<boq>: 23275
|
|
|
|
| 1 |
_target_: bionemo.llm.lightning.BionemoLightningModule
|
| 2 |
config:
|
| 3 |
_cpu_offloading_context: null
|
| 4 |
+
_target_: bionemo.maxtoki.model.MaxTokiConfig
|
| 5 |
account_for_embedding_in_pipeline_split: false
|
| 6 |
account_for_loss_in_pipeline_split: false
|
| 7 |
activation_func:
|
|
|
|
| 255 |
_target_: nemo.collections.llm.gpt.model.base.gpt_data_step
|
| 256 |
forward_step:
|
| 257 |
_call_: false
|
| 258 |
+
_target_: bionemo.maxtoki.model.maxtoki_forward_step
|
| 259 |
freeze_params_until_key_suffix: null
|
| 260 |
model_context_managers: []
|
| 261 |
model_transform: null
|
|
|
|
| 329 |
_target_: bionemo.llm.lightning.PassthroughLossReduction
|
| 330 |
predict_step: null
|
| 331 |
tokenizer:
|
| 332 |
+
_target_: bionemo.maxtoki.tokenizer.MaxTokiTokenizer
|
| 333 |
pad_token: <pad>
|
| 334 |
token_dictionary:
|
| 335 |
<boq>: 23275
|
MaxToki-217M-bionemo/context/io.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
MaxToki-217M-bionemo/context/model.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
_target_: bionemo.llm.lightning.BionemoLightningModule
|
| 2 |
config:
|
| 3 |
_cpu_offloading_context: null
|
| 4 |
-
_target_: bionemo.
|
| 5 |
account_for_embedding_in_pipeline_split: false
|
| 6 |
account_for_loss_in_pipeline_split: false
|
| 7 |
activation_func:
|
|
@@ -255,7 +255,7 @@ data_step:
|
|
| 255 |
_target_: nemo.collections.llm.gpt.model.base.gpt_data_step
|
| 256 |
forward_step:
|
| 257 |
_call_: false
|
| 258 |
-
_target_: bionemo.
|
| 259 |
freeze_params_until_key_suffix: null
|
| 260 |
model_context_managers: []
|
| 261 |
model_transform: null
|
|
@@ -321,7 +321,7 @@ predict_loss_reduction_class:
|
|
| 321 |
_target_: bionemo.llm.lightning.PassthroughLossReduction
|
| 322 |
predict_step: null
|
| 323 |
tokenizer:
|
| 324 |
-
_target_: bionemo.
|
| 325 |
pad_token: <pad>
|
| 326 |
token_dictionary:
|
| 327 |
'-1': 21774
|
|
|
|
| 1 |
_target_: bionemo.llm.lightning.BionemoLightningModule
|
| 2 |
config:
|
| 3 |
_cpu_offloading_context: null
|
| 4 |
+
_target_: bionemo.maxtoki.model.MaxTokiConfig
|
| 5 |
account_for_embedding_in_pipeline_split: false
|
| 6 |
account_for_loss_in_pipeline_split: false
|
| 7 |
activation_func:
|
|
|
|
| 255 |
_target_: nemo.collections.llm.gpt.model.base.gpt_data_step
|
| 256 |
forward_step:
|
| 257 |
_call_: false
|
| 258 |
+
_target_: bionemo.maxtoki.model.maxtoki_forward_step
|
| 259 |
freeze_params_until_key_suffix: null
|
| 260 |
model_context_managers: []
|
| 261 |
model_transform: null
|
|
|
|
| 321 |
_target_: bionemo.llm.lightning.PassthroughLossReduction
|
| 322 |
predict_step: null
|
| 323 |
tokenizer:
|
| 324 |
+
_target_: bionemo.maxtoki.tokenizer.MaxTokiTokenizer
|
| 325 |
pad_token: <pad>
|
| 326 |
token_dictionary:
|
| 327 |
'-1': 21774
|