(Trained with Unsloth)
Browse files- config.json +73 -73
- tokenizer_config.json +3 -8
config.json
CHANGED
|
@@ -1,74 +1,74 @@
|
|
| 1 |
{
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Lfm2ForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"block_auto_adjust_ff_dim": false,
|
| 6 |
+
"block_dim": 2048,
|
| 7 |
+
"block_ff_dim": 10752,
|
| 8 |
+
"block_ffn_dim_multiplier": 1.0,
|
| 9 |
+
"block_mlp_init_scale": 1.0,
|
| 10 |
+
"block_multiple_of": 256,
|
| 11 |
+
"block_norm_eps": 1e-05,
|
| 12 |
+
"block_out_init_scale": 1.0,
|
| 13 |
+
"block_use_swiglu": true,
|
| 14 |
+
"block_use_xavier_init": true,
|
| 15 |
+
"bos_token_id": 1,
|
| 16 |
+
"conv_L_cache": 3,
|
| 17 |
+
"conv_bias": false,
|
| 18 |
+
"conv_dim": 2048,
|
| 19 |
+
"conv_dim_out": 2048,
|
| 20 |
+
"conv_use_xavier_init": true,
|
| 21 |
+
"eos_token_id": 7,
|
| 22 |
+
"hidden_size": 2048,
|
| 23 |
+
"initializer_range": 0.02,
|
| 24 |
+
"intermediate_size": 10752,
|
| 25 |
+
"layer_types": [
|
| 26 |
+
"conv",
|
| 27 |
+
"conv",
|
| 28 |
+
"full_attention",
|
| 29 |
+
"conv",
|
| 30 |
+
"conv",
|
| 31 |
+
"full_attention",
|
| 32 |
+
"conv",
|
| 33 |
+
"conv",
|
| 34 |
+
"conv",
|
| 35 |
+
"full_attention",
|
| 36 |
+
"conv",
|
| 37 |
+
"conv",
|
| 38 |
+
"conv",
|
| 39 |
+
"full_attention",
|
| 40 |
+
"conv",
|
| 41 |
+
"conv",
|
| 42 |
+
"conv",
|
| 43 |
+
"full_attention",
|
| 44 |
+
"conv",
|
| 45 |
+
"conv",
|
| 46 |
+
"conv",
|
| 47 |
+
"full_attention",
|
| 48 |
+
"conv",
|
| 49 |
+
"conv",
|
| 50 |
+
"full_attention",
|
| 51 |
+
"conv",
|
| 52 |
+
"conv",
|
| 53 |
+
"full_attention",
|
| 54 |
+
"conv",
|
| 55 |
+
"conv"
|
| 56 |
+
],
|
| 57 |
+
"max_position_embeddings": 128000,
|
| 58 |
+
"model_type": "lfm2",
|
| 59 |
+
"norm_eps": 1e-05,
|
| 60 |
+
"num_attention_heads": 32,
|
| 61 |
+
"num_heads": 32,
|
| 62 |
+
"num_hidden_layers": 30,
|
| 63 |
+
"num_key_value_heads": 8,
|
| 64 |
+
"pad_token_id": 0,
|
| 65 |
+
"rope_theta": 1000000.0,
|
| 66 |
+
"theta": 1000000.0,
|
| 67 |
+
"tie_embedding": true,
|
| 68 |
+
"torch_dtype": "bfloat16",
|
| 69 |
+
"transformers_version": "4.55.4",
|
| 70 |
+
"unsloth_version": "2025.10.7",
|
| 71 |
+
"use_cache": true,
|
| 72 |
+
"use_pos_enc": true,
|
| 73 |
+
"vocab_size": 65536
|
| 74 |
+
}
|
tokenizer_config.json
CHANGED
|
@@ -4064,22 +4064,17 @@
|
|
| 4064 |
"eos_token": "<|im_end|>",
|
| 4065 |
"extra_special_tokens": {},
|
| 4066 |
"legacy": true,
|
| 4067 |
-
"max_length": 128,
|
| 4068 |
"model_input_names": [
|
| 4069 |
"input_ids",
|
| 4070 |
"attention_mask"
|
| 4071 |
],
|
| 4072 |
"model_max_length": 1000000000000000019884624838656,
|
| 4073 |
-
"pad_to_multiple_of": null,
|
| 4074 |
"pad_token": "<|pad|>",
|
| 4075 |
-
"pad_token_type_id": 0,
|
| 4076 |
"padding_side": "right",
|
| 4077 |
"sp_model_kwargs": {},
|
| 4078 |
"spaces_between_special_tokens": false,
|
| 4079 |
-
"stride": 0,
|
| 4080 |
"tokenizer_class": "PreTrainedTokenizerFast",
|
| 4081 |
-
"truncation_side": "right",
|
| 4082 |
-
"truncation_strategy": "longest_first",
|
| 4083 |
"use_default_system_prompt": false,
|
| 4084 |
-
"use_fast": true
|
| 4085 |
-
}
|
|
|
|
|
|
| 4064 |
"eos_token": "<|im_end|>",
|
| 4065 |
"extra_special_tokens": {},
|
| 4066 |
"legacy": true,
|
|
|
|
| 4067 |
"model_input_names": [
|
| 4068 |
"input_ids",
|
| 4069 |
"attention_mask"
|
| 4070 |
],
|
| 4071 |
"model_max_length": 1000000000000000019884624838656,
|
|
|
|
| 4072 |
"pad_token": "<|pad|>",
|
|
|
|
| 4073 |
"padding_side": "right",
|
| 4074 |
"sp_model_kwargs": {},
|
| 4075 |
"spaces_between_special_tokens": false,
|
|
|
|
| 4076 |
"tokenizer_class": "PreTrainedTokenizerFast",
|
|
|
|
|
|
|
| 4077 |
"use_default_system_prompt": false,
|
| 4078 |
+
"use_fast": true,
|
| 4079 |
+
"chat_template": "{{- bos_token -}}{%- set system_prompt = \"\" -%}{%- set ns = namespace(system_prompt=\"\") -%}{%- if messages[0][\"role\"] == \"system\" -%} {%- set ns.system_prompt = messages[0][\"content\"] -%} {%- set messages = messages[1:] -%}{%- endif -%}{%- if tools -%} {%- set ns.system_prompt = ns.system_prompt + (\"\n\" if ns.system_prompt else \"\") + \"List of tools: <|tool_list_start|>[\" -%} {%- for tool in tools -%} {%- if tool is not string -%} {%- set tool = tool | tojson -%} {%- endif -%} {%- set ns.system_prompt = ns.system_prompt + tool -%} {%- if not loop.last -%} {%- set ns.system_prompt = ns.system_prompt + \", \" -%} {%- endif -%} {%- endfor -%} {%- set ns.system_prompt = ns.system_prompt + \"]<|tool_list_end|>\" -%}{%- endif -%}{%- if ns.system_prompt -%} {{- \"<|im_start|>system\n\" + ns.system_prompt + \"<|im_end|>\n\" -}}{%- endif -%}{%- for message in messages -%} {{- \"<|im_start|>\" + message[\"role\"] + \"\n\" -}} {%- set content = message[\"content\"] -%} {%- if content is not string -%} {%- set content = content | tojson -%} {%- endif -%} {%- if message[\"role\"] == \"tool\" -%} {%- set content = \"<|tool_response_start|>\" + content + \"<|tool_response_end|>\" -%} {%- endif -%} {{- content + \"<|im_end|>\n\" -}}{%- endfor -%}{%- if add_generation_prompt -%} {{- \"<|im_start|>assistant\n\" -}}{%- endif -%}"
|
| 4080 |
+
}
|