初始化项目,由ModelHub XC社区提供模型

Model: DavidAU/MN-GRAND-23.5B-Gutenberg-UNCENSORED-V2-GLM4.7-Thinking
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-08-29 00:41:23 +08:00
commit 98a1f88ac5
60 changed files with 419036 additions and 0 deletions

38
.gitattributes vendored Normal file
View File

@@ -0,0 +1,38 @@
*.7z filter=lfs diff=lfs merge=lfs -text
*.arrow filter=lfs diff=lfs merge=lfs -text
*.bin filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.ckpt filter=lfs diff=lfs merge=lfs -text
*.ftz filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.h5 filter=lfs diff=lfs merge=lfs -text
*.joblib filter=lfs diff=lfs merge=lfs -text
*.lfs.* filter=lfs diff=lfs merge=lfs -text
*.mlmodel filter=lfs diff=lfs merge=lfs -text
*.model filter=lfs diff=lfs merge=lfs -text
*.msgpack filter=lfs diff=lfs merge=lfs -text
*.npy filter=lfs diff=lfs merge=lfs -text
*.npz filter=lfs diff=lfs merge=lfs -text
*.onnx filter=lfs diff=lfs merge=lfs -text
*.ot filter=lfs diff=lfs merge=lfs -text
*.parquet filter=lfs diff=lfs merge=lfs -text
*.pb filter=lfs diff=lfs merge=lfs -text
*.pickle filter=lfs diff=lfs merge=lfs -text
*.pkl filter=lfs diff=lfs merge=lfs -text
*.pt filter=lfs diff=lfs merge=lfs -text
*.pth filter=lfs diff=lfs merge=lfs -text
*.rar filter=lfs diff=lfs merge=lfs -text
*.safetensors filter=lfs diff=lfs merge=lfs -text
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
*.tar.* filter=lfs diff=lfs merge=lfs -text
*.tar filter=lfs diff=lfs merge=lfs -text
*.tflite filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.wasm filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text
*tfevents* filter=lfs diff=lfs merge=lfs -text
grand-gutenburg.jpg filter=lfs diff=lfs merge=lfs -text
backup/tokenizer.json filter=lfs diff=lfs merge=lfs -text
godinrain.gif filter=lfs diff=lfs merge=lfs -text

1060
README.md Normal file

File diff suppressed because it is too large Load Diff

87
chat_template.jinja Normal file
View File

@@ -0,0 +1,87 @@
{%- if messages[0]["role"] == "system" %}
{%- set system_message = messages[0]["content"] %}
{%- set loop_messages = messages[1:] %}
{%- else %}
{%- set loop_messages = messages %}
{%- endif %}
{%- if not tools is defined %}
{%- set tools = none %}
{%- endif %}
{%- set user_messages = loop_messages | selectattr("role", "equalto", "user") | list %}
{#- This block checks for alternating user/assistant messages, skipping tool calling messages #}
{%- set ns = namespace() %}
{%- set ns.index = 0 %}
{%- for message in loop_messages %}
{%- if not (message.role == "tool" or message.role == "tool_results" or (message.tool_calls is defined and message.tool_calls is not none)) %}
{%- if (message["role"] == "user") != (ns.index % 2 == 0) %}
{{- raise_exception("After the optional system message, conversation roles must alternate user/assistant/user/assistant/...") }}
{%- endif %}
{%- set ns.index = ns.index + 1 %}
{%- endif %}
{%- endfor %}
{{- bos_token }}
{%- for message in loop_messages %}
{%- if message["role"] == "user" %}
{%- if tools is not none and (message == user_messages[-1]) %}
{{- "[AVAILABLE_TOOLS][" }}
{%- for tool in tools %}
{%- set tool = tool.function %}
{{- '{"type": "function", "function": {' }}
{%- for key, val in tool.items() if key != "return" %}
{%- if val is string %}
{{- '"' + key + '": "' + val + '"' }}
{%- else %}
{{- '"' + key + '": ' + val|tojson }}
{%- endif %}
{%- if not loop.last %}
{{- ", " }}
{%- endif %}
{%- endfor %}
{{- "}}" }}
{%- if not loop.last %}
{{- ", " }}
{%- else %}
{{- "]" }}
{%- endif %}
{%- endfor %}
{{- "[/AVAILABLE_TOOLS]" }}
{%- endif %}
{%- if loop.last and system_message is defined %}
{{- "[INST]" + system_message + "\n\n" + message["content"] + "[/INST]" }}
{%- else %}
{{- "[INST]" + message["content"] + "[/INST]" }}
{%- endif %}
{%- elif (message.tool_calls is defined and message.tool_calls is not none) %}
{{- "[TOOL_CALLS][" }}
{%- for tool_call in message.tool_calls %}
{%- set out = tool_call.function|tojson %}
{{- out[:-1] }}
{%- if not tool_call.id is defined or tool_call.id|length != 9 %}
{{- raise_exception("Tool call IDs should be alphanumeric strings with length 9!") }}
{%- endif %}
{{- ', "id": "' + tool_call.id + '"}' }}
{%- if not loop.last %}
{{- ", " }}
{%- else %}
{{- "]" + eos_token }}
{%- endif %}
{%- endfor %}
{%- elif message["role"] == "assistant" %}
{{- message["content"] + eos_token}}
{%- elif message["role"] == "tool_results" or message["role"] == "tool" %}
{%- if message.content is defined and message.content.content is defined %}
{%- set content = message.content.content %}
{%- else %}
{%- set content = message.content %}
{%- endif %}
{{- '[TOOL_RESULTS]{"content": ' + content|string + ", " }}
{%- if not message.tool_call_id is defined or message.tool_call_id|length != 9 %}
{{- raise_exception("Tool call IDs should be alphanumeric strings with length 9!") }}
{%- endif %}
{{- '"call_id": "' + message.tool_call_id + '"}[/TOOL_RESULTS]' }}
{%- else %}
{{- raise_exception("Only user and assistant roles are supported, with the exception of an initial optional system message!") }}
{%- endif %}
{%- endfor %}

27
config.json Normal file
View File

@@ -0,0 +1,27 @@
{
"_name_or_path": "G:/11B/Lyra-Gutenberg-mistral-nemo-12B",
"architectures": [
"MistralForCausalLM"
],
"attention_dropout": 0.0,
"bos_token_id": 1,
"eos_token_id": 2,
"head_dim": 128,
"hidden_act": "silu",
"hidden_size": 5120,
"initializer_range": 0.02,
"intermediate_size": 14336,
"max_position_embeddings": 1024000,
"model_type": "mistral",
"num_attention_heads": 32,
"num_hidden_layers": 81,
"num_key_value_heads": 8,
"rms_norm_eps": 1e-05,
"rope_theta": 1000000.0,
"sliding_window": null,
"tie_word_embeddings": false,
"torch_dtype": "bfloat16",
"transformers_version": "4.43.3",
"use_cache": true,
"vocab_size": 131072
}

9
generation_config.json Normal file
View File

@@ -0,0 +1,9 @@
{
"_from_model_config": true,
"bos_token_id": 1,
"eos_token_id": 2,
"max_length": 1024000,
"pad_token_id": 10,
"transformers_version": "5.8.0",
"use_cache": true
}

3
godinrain.gif Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d43ed9cd68ab8c1da1093b3b5c51c8c68f3d7e40e7bfe2a3cd5dff5c07b96aae
size 598347

3
grand-gutenburg.jpg Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:80585bdc3d97baaaadc49161685814c61abceef3da983db0638dc873e48a7554
size 407099

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7d32564d20e1d64e87dbf552c9044d79bda73e4990c9df125773a33fdcc13c08
size 1342177408

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6189a4107c3ff68913345da4dcc4c5af4d0fddc189f6ef02ee2cf9a5f8fe9f4a
size 1342177424

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:23b173d7f38f428e7da97cf0ec1d3ac6d0d074b49b575e1f01ff633c8263bc28
size 996189888

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:89fb4d1df3f65d3f910703d7180c1de44f7fb682b7e8eb386afd1bddced0fff8
size 933265104

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0f8bf109e174794e0e79742856f850a9aaeb7021536ead0075a78b6036b27ee2
size 985693680

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a762f768b02f1ad8d42e870a8fb48391a86c49a495fdcf796ad6571bcc5fe8e2
size 943761352

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:07e444e94d9b35a1ac1febc446c4b2ea0d5364a9188e46df10b6993de07f94bd
size 943771696

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e6049462e33338d4767122dd577a64b310d3371cd9e54072c359a43b177118c3
size 996179568

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ae657480b2fd9a404f0d8e88a03c44a1c2890091b16bf6bf5bee1b35505c2d1e
size 933265096

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:96b2ffa483b01d963ee3228043a23ba8f518a3aa1567dcae819babf4dec101ff
size 901829016

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:addfd413a0c4759132963aa296ef73f2219658be132dbe755889a844e511d6c4
size 985683336

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0f500bc59e19888ea718afa97e6ba286bad1b91157964629a2886bbbf477133c
size 996189904

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c449032a96291b59c4b907b931795ec448444064c8d6c018d6c71f14d287f055
size 933265104

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:09e05e2d757da4926316f05e2b01ecb51745596ac5005d614cca7121cf3325c9
size 901839368

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f417113367306962f918b2c64b640cc22dfae399e7ccc9e0b1feeb920d53b30e
size 880804560

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6bdcb118cc7a4d0d24ce947c239bed12870c970508add089809fee84ca47dee8
size 901818656

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:37e51931745023fa090d700e5ad2c84a08d280a90d1f900bf0efa1fcb08af1f8
size 985704024

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ebcbcd9864585a77d4140439af162f8556c98082c9db668ce4b96e85803398ae
size 975208288

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f640a69abba14f3ae1cedbe632d9d830c1b184a0e905163cbbfa85071fac2df3
size 954236384

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:53e9da9c01511894a7f692e8cc44bed1169dfdec9dc81f75d07207d2e88cc4ab
size 901839368

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4465bf4be0579b946266c0baec7013fbac4cd0683cbb27925efb083df38d8152
size 880804560

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:60af5e4cd0ef15a9f04e461f388e81fa35058f4465d218fd973ae55fbecbc2c6
size 901839368

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1bd03b81eff6e678cc05bd6095fc0888067d5b1f8ae2ea8cc68c2fceae3f0c28
size 880804552

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:aff93b57b70892273aede5294f601eeef12646fbf0c5a861c840e1476374f6f6
size 901839368

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:96e7f5825e728cd945afa597c07db7b448b5ee2969eac28d7a3d9f39513708d0
size 996179568

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:352af35c36a266d66a8b0726f9fdb5a1fc0846dd2999c342fbe994bed4073021
size 933265096

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:79e0942d9bcaea90cd81f770e3894b0c08e6cbd9bc5d3570632a4ba51c1a572d
size 901839368

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a7aafe3c6a485de5705e520d706bf64cb6cfe98b7f6e67dc34fedd7effc9496a
size 880804560

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1f410e8f42996774a35d5a8a23d1b1cfc76b05c9a49f88088c9050defdf88647
size 901839368

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bdae60e88a92ddd1f89dece25fb6b4cd902bda4a6c170cd24b53efb411f0302f
size 880804560

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f4b0c97953716d1c0dd08fbce17930379ca203a1f6ed85af3070bf6d3c4763d6
size 901829016

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b9f9fb86be4e90453c8c3aa5f19d9e35c7f8a1a4e851806bd3a1f7efdcf3dd6f
size 943761344

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a0204fee79155ed7b47cae4f568c0f06c80e085a28f3ba76492666522cbc7e42
size 943750992

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5f2087722df6027017733e7f56ce5bbc632f8b985e81d0d8995e39fc38a7ff53
size 985704024

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c2b761fb9efd60f9e85262d09d1e1eea99db4c51912b3c1b09e42c2891f1c1a8
size 996179568

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8da4977de855a0a577b753f6d67fcbcabfe4ab18090bec430a62522c5ffa3e20
size 933265096

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:57dfac64b3f1654c6c9654e4c700884b68dee07bc7e206acb87a940d27383c8b
size 901829016

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6b64ccaf80abee30528012e3356b247a23a05263e9c89082563c8dafcd0f3d4b
size 985683336

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ea3386b1ea78f4d57642ddc09718966b38d4c8663056dfdf78b377ef32b1ac6b
size 996189904

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b8d3bc677db668f4ab416dfaf8616399054bf73e78dcba27f7c2284fb750f2bc
size 933254752

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:987309e48f5cc354c8a8d1af8031a555797adfd874d045682aadec66e62539c5
size 943761352

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3640a0ba4490f956e062c24091cb20301f9346e02eae2eb93cee6b389ebc9bc2
size 943761344

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9de8a21eafa9e621e0c9a415d1b6e437a07647a1d1a6bf9b7b1425dd0f36a200
size 943761344

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0785ec2e370b87cbed637c47541183937a72f672b918218e3ae49ae97660bb16
size 943761344

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6b43dc5d5d105c28b9e241c360f0d5af52545e8e72421fe6460e0dccd942f493
size 943751000

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ebdfdd1eddeb71c513ddc6c391930dc8c38bf43a07bbce1ba6430ee617ecd771
size 996179552

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c7c9e4eb25b7e4102274192b4bd8b68760fd1965547c43edb10ab13cb15831fc
size 933265088

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:36bf761a949f5f6ee93b6269e302925e1fbf547aad8a49197b8e017a2d65b296
size 943761328

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:38a10fc4d29cb80a971f53c3271a5f515f0dc8519a7b6d37a72c32e57da78f5b
size 943761312

File diff suppressed because one or more lines are too long

23
special_tokens_map.json Normal file
View File

@@ -0,0 +1,23 @@
{
"bos_token": {
"content": "<s>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false
},
"eos_token": {
"content": "</s>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false
},
"unk_token": {
"content": "<unk>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false
}
}

409625
tokenizer.json Normal file

File diff suppressed because it is too large Load Diff

8013
tokenizer_config.json Normal file

File diff suppressed because it is too large Load Diff