{"_id":"698d6da4e7e2097d03e4dbba","id":"MiniMaxAI/MiniMax-M2.5","private":false,"pipeline_tag":"text-generation","library_name":"transformers","tags":["transformers","safetensors","minimax_m2","text-generation","conversational","custom_code","license:other","eval-results","endpoints_compatible","fp8","deploy:sagemaker","deploy:azure","region:us"],"downloads":449360,"likes":1507,"modelId":"MiniMaxAI/MiniMax-M2.5","author":"MiniMaxAI","sha":"f710177d938eff80b684d42c5aa84b382612f21f","lastModified":"2026-03-10T13:42:23.000Z","gated":false,"disabled":false,"widgetData":[{"text":"Hi, what can you help me with?"},{"text":"What is 84 * 3 / 2?"},{"text":"Tell me an interesting fact about the universe!"},{"text":"Explain quantum computing in simple terms."}],"model-index":null,"config":{"architectures":["MiniMaxM2ForCausalLM"],"auto_map":{"AutoConfig":"configuration_minimax_m2.MiniMaxM2Config","AutoModelForCausalLM":"modeling_minimax_m2.MiniMaxM2ForCausalLM"},"model_type":"minimax_m2","num_experts_per_tok":8,"quantization_config":{"quant_method":"fp8","modules_to_not_convert":["gate","e_score_correction_bias","lm_head"]},"tokenizer_config":{"bos_token":"]~!b[","eos_token":"[e~[","unk_token":"]!d~["},"chat_template_jinja":"{# ----------‑‑‑ special token variables ‑‑‑---------- #}\n{%- set toolcall_begin_token   = '<minimax:tool_call>'         -%}\n{%- set toolcall_end_token     = '</minimax:tool_call>'        -%}\n{#- Tool Rendering Functions ============================================== -#}\n{%- macro render_tool_namespace(namespace_name, tool_list) -%}\n{%- for tool in tool_list -%}\n<tool>{{ tool.function | tojson(ensure_ascii=False) }}</tool>\n{% endfor -%}\n{%- endmacro -%}\n{%- macro visible_text(content) -%}\n    {%- if content is string -%}\n        {{ content }}\n    {%- elif content is iterable and content is not mapping -%}\n        {%- for item in content -%}\n            {%- if item is mapping and item.type == 'text' -%}\n                {{- item.text }}\n            {%- elif item is string -%}\n                {{- item }}\n            {%- endif -%}\n        {%- endfor -%}\n    {%- else -%}\n        {{- content }}\n    {%- endif -%}\n{%- endmacro -%}\n{#- System Message Construction ============================================ -#}\n{%- macro build_system_message(system_message) -%}\n    {%- if system_message and system_message.content -%}\n        {{- visible_text(system_message.content) }}\n    {%- else -%}\n        {%- if model_identity is not defined -%}\n            {%- set model_identity = \"You are a helpful assistant. Your name is MiniMax-M2.5 and is built by MiniMax.\" -%}\n        {%- endif -%}\n        {{- model_identity }}\n    {%- endif -%}\n    \n    {#- Handle current_date -#}\n    {%- if system_message and system_message.current_date -%}\n        {{- '\\n' ~ 'Current date: ' + system_message.current_date }}\n    {%- endif -%}\n    {#- Handle current_location -#}\n    {%- if system_message and system_message.current_location -%}\n        {{- '\\n' ~ 'Current location: ' + system_message.current_location }}\n    {%- endif -%}\n{%- endmacro -%}\n{#- Main Template Logic ================================================= -#}\n{#- Extract system message (only first message if it's system) -#}\n{%- set system_message = none -%}\n{%- set conversation_messages = messages -%}\n{%- if messages and messages[0].role == \"system\" -%}\n    {%- set system_message = messages[0] -%}\n    {%- set conversation_messages = messages[1:] -%}\n{%- endif -%}\n{#- Get the last user message turn, for interleved thinking -#}\n{%- set ns = namespace(last_user_index=-1) %}\n{% for m in conversation_messages %}\n    {%- if m.role == 'user' %}\n        {% set ns.last_user_index = loop.index0 -%}\n    {%- endif %}\n{%- endfor %}\n{#- Render system message -#}\n{{- ']~!b[' ~ ']~b]system' ~ '\\n' }}\n{{- build_system_message(system_message) }}\n{#- Render tools if available -#}\n{%- if tools -%}\n    {{- '\\n\\n' ~ '# Tools' ~ '\\n' ~ 'You may call one or more tools to assist with the user query.\\nHere are the tools available in JSONSchema format:' ~ '\\n' }}\n    {{- '\\n' ~ '<tools>' ~ '\\n' }}\n    {{- render_tool_namespace(\"functions\", tools) }}\n    {{- '</tools>' ~ '\\n\\n' }}\n{{- 'When making tool calls, use XML format to invoke tools and pass parameters:' ~ '\\n' }}\n{{- '\\n' ~ toolcall_begin_token }}\n<invoke name=\"tool-name-1\">\n<parameter name=\"param-key-1\">param-value-1</parameter>\n<parameter name=\"param-key-2\">param-value-2</parameter>\n...\n</invoke>\n{{- '\\n' ~ toolcall_end_token }}\n{%- endif -%}\n{{- '[e~[\\n' }}\n\n{#- Render messages -#}\n{%- set last_tool_call = namespace(name=none) -%}\n{%- for message in conversation_messages -%}\n    {%- if message.role == 'assistant' -%}\n        {#- Only render reasoning_content if no user message follows -#}\n        {{- ']~b]ai' ~ '\\n' }}\n\n        {%- set reasoning_content = '' %}\n        {%- set content = visible_text(message.content) %}\n        {%- if message.reasoning_content is string %}\n            {%- set reasoning_content = message.reasoning_content %}\n        {%- else %}\n            {%- if '</think>' in content %}\n                {%- set reasoning_content = content.split('</think>')[0].strip('\\n').split('<think>')[-1].strip('\\n') %}\n                {%- set content = content.split('</think>')[-1].strip('\\n') %}\n            {%- endif %}\n        {%- endif %}\n        {%- if reasoning_content and loop.index0 > ns.last_user_index -%}\n            {{- '<think>' ~ '\\n' ~ reasoning_content ~ '\\n' ~ '</think>' ~ '\\n\\n' }}\n        {%- endif -%}\n        {%- if content -%}\n            {{- content }}\n        {%- endif -%}\n        {%- if message.tool_calls -%}\n            {{- '\\n' ~ toolcall_begin_token ~ '\\n' }}\n\n            {%- for tool_call in message.tool_calls -%}\n                {%- if tool_call.function %}\n                    {%- set tool_call = tool_call.function %}\n                {%- endif %}\n                {{- '<invoke name=\"' + tool_call.name + '\">' }}\n                {% set _args = tool_call.arguments %}\n                {%- for k, v in _args.items() %}\n                {{- '<parameter name=\"' + k + '\">' }}\n                {{- v | tojson(ensure_ascii=False) if v is not string else v }}\n                {{- '</parameter>' }}\n                {% endfor %}\n                {{- '</invoke>' ~ '\\n' }}\n            {%- endfor -%}\n            \n            {{- toolcall_end_token}}\n            {%- set last_tool_call.name = message.tool_calls[-1].name -%}\n        {%- else -%}\n            {%- set last_tool_call.name = none -%}\n        {%- endif -%}\n        {{- '[e~[' ~ '\\n' }}\n        \n    {%- elif message.role == 'tool' -%}\n    {%- if last_tool_call.name is none -%}\n        {{- raise_exception(\"Message has tool role, but there was no previous assistant message with a tool call!\") }}\n    {%- endif -%}\n    {%- if loop.first or (conversation_messages[loop.index0 - 1].role != 'tool') -%}\n        {{- ']~b]tool' }}\n    {%- endif -%}\n    {%- if message.content is string -%}\n        {{- '\\n<response>' }}\n        {{- message.content }}\n        {{- '</response>' }}\n    {%- else -%}\n        {%- for tr in message.content -%}\n            {{- '\\n<response>' }}\n            {{- tr.output if tr.output is defined else (tr.text if tr.type == 'text' and tr.text is defined else tr) }}\n            {{- '\\n</response>' }}\n        {%- endfor -%}\n    {%- endif -%}\n    {%- if loop.last or (conversation_messages[loop.index0 + 1].role != 'tool') -%}\n        {{- '[e~[\\n' -}}\n    {%- endif -%}\n        \n    {%- elif message.role == 'user' -%}\n        {{- ']~b]user' ~ '\\n' }}\n        {{- visible_text(message.content) }}\n        {{- '[e~[' ~ '\\n' }}\n    {%- endif -%}\n{%- endfor -%}\n\n{#- Generation prompt -#}\n{%- if add_generation_prompt -%}\n{{- ']~b]ai' ~ '\\n' ~ '<think>' ~ '\\n' }}\n{%- endif -%}\n"},"cardData":{"pipeline_tag":"text-generation","license":"other","license_name":"modified-mit","license_link":"https://github.com/MiniMax-AI/MiniMax-M2.5/blob/main/LICENSE","library_name":"transformers"},"transformersInfo":{"auto_model":"AutoModelForCausalLM","pipeline_tag":"text-generation","processor":"AutoTokenizer"},"siblings":[{"rfilename":".eval_results/gpqa.yaml"},{"rfilename":".eval_results/hle.yaml"},{"rfilename":".eval_results/swe_bench_verified.yaml"},{"rfilename":".gitattributes"},{"rfilename":"LICENSE-MODEL"},{"rfilename":"README.md"},{"rfilename":"chat_template.jinja"},{"rfilename":"config.json"},{"rfilename":"configuration_minimax_m2.py"},{"rfilename":"docs/sglang_deploy_guide.md"},{"rfilename":"docs/sglang_deploy_guide_cn.md"},{"rfilename":"docs/tool_calling_guide.md"},{"rfilename":"docs/tool_calling_guide_cn.md"},{"rfilename":"docs/transformers_deploy_guide.md"},{"rfilename":"docs/transformers_deploy_guide_cn.md"},{"rfilename":"docs/vllm_deploy_guide.md"},{"rfilename":"docs/vllm_deploy_guide_cn.md"},{"rfilename":"figures/bench_1.png"},{"rfilename":"figures/bench_10.png"},{"rfilename":"figures/bench_11.png"},{"rfilename":"figures/bench_12.png"},{"rfilename":"figures/bench_2.png"},{"rfilename":"figures/bench_3.png"},{"rfilename":"figures/bench_4.png"},{"rfilename":"figures/bench_5.png"},{"rfilename":"figures/bench_6.png"},{"rfilename":"figures/bench_7.png"},{"rfilename":"figures/bench_8.png"},{"rfilename":"figures/bench_9.png"},{"rfilename":"figures/rl_1.png"},{"rfilename":"figures/rl_2.png"},{"rfilename":"generation_config.json"},{"rfilename":"merges.txt"},{"rfilename":"model-00000-of-00126.safetensors"},{"rfilename":"model-00001-of-00126.safetensors"},{"rfilename":"model-00002-of-00126.safetensors"},{"rfilename":"model-00003-of-00126.safetensors"},{"rfilename":"model-00004-of-00126.safetensors"},{"rfilename":"model-00005-of-00126.safetensors"},{"rfilename":"model-00006-of-00126.safetensors"},{"rfilename":"model-00007-of-00126.safetensors"},{"rfilename":"model-00008-of-00126.safetensors"},{"rfilename":"model-00009-of-00126.safetensors"},{"rfilename":"model-00010-of-00126.safetensors"},{"rfilename":"model-00011-of-00126.safetensors"},{"rfilename":"model-00012-of-00126.safetensors"},{"rfilename":"model-00013-of-00126.safetensors"},{"rfilename":"model-00014-of-00126.safetensors"},{"rfilename":"model-00015-of-00126.safetensors"},{"rfilename":"model-00016-of-00126.safetensors"},{"rfilename":"model-00017-of-00126.safetensors"},{"rfilename":"model-00018-of-00126.safetensors"},{"rfilename":"model-00019-of-00126.safetensors"},{"rfilename":"model-00020-of-00126.safetensors"},{"rfilename":"model-00021-of-00126.safetensors"},{"rfilename":"model-00022-of-00126.safetensors"},{"rfilename":"model-00023-of-00126.safetensors"},{"rfilename":"model-00024-of-00126.safetensors"},{"rfilename":"model-00025-of-00126.safetensors"},{"rfilename":"model-00026-of-00126.safetensors"},{"rfilename":"model-00027-of-00126.safetensors"},{"rfilename":"model-00028-of-00126.safetensors"},{"rfilename":"model-00029-of-00126.safetensors"},{"rfilename":"model-00030-of-00126.safetensors"},{"rfilename":"model-00031-of-00126.safetensors"},{"rfilename":"model-00032-of-00126.safetensors"},{"rfilename":"model-00033-of-00126.safetensors"},{"rfilename":"model-00034-of-00126.safetensors"},{"rfilename":"model-00035-of-00126.safetensors"},{"rfilename":"model-00036-of-00126.safetensors"},{"rfilename":"model-00037-of-00126.safetensors"},{"rfilename":"model-00038-of-00126.safetensors"},{"rfilename":"model-00039-of-00126.safetensors"},{"rfilename":"model-00040-of-00126.safetensors"},{"rfilename":"model-00041-of-00126.safetensors"},{"rfilename":"model-00042-of-00126.safetensors"},{"rfilename":"model-00043-of-00126.safetensors"},{"rfilename":"model-00044-of-00126.safetensors"},{"rfilename":"model-00045-of-00126.safetensors"},{"rfilename":"model-00046-of-00126.safetensors"},{"rfilename":"model-00047-of-00126.safetensors"},{"rfilename":"model-00048-of-00126.safetensors"},{"rfilename":"model-00049-of-00126.safetensors"},{"rfilename":"model-00050-of-00126.safetensors"},{"rfilename":"model-00051-of-00126.safetensors"},{"rfilename":"model-00052-of-00126.safetensors"},{"rfilename":"model-00053-of-00126.safetensors"},{"rfilename":"model-00054-of-00126.safetensors"},{"rfilename":"model-00055-of-00126.safetensors"},{"rfilename":"model-00056-of-00126.safetensors"},{"rfilename":"model-00057-of-00126.safetensors"},{"rfilename":"model-00058-of-00126.safetensors"},{"rfilename":"model-00059-of-00126.safetensors"},{"rfilename":"model-00060-of-00126.safetensors"},{"rfilename":"model-00061-of-00126.safetensors"},{"rfilename":"model-00062-of-00126.safetensors"},{"rfilename":"model-00063-of-00126.safetensors"},{"rfilename":"model-00064-of-00126.safetensors"},{"rfilename":"model-00065-of-00126.safetensors"},{"rfilename":"model-00066-of-00126.safetensors"},{"rfilename":"model-00067-of-00126.safetensors"},{"rfilename":"model-00068-of-00126.safetensors"},{"rfilename":"model-00069-of-00126.safetensors"},{"rfilename":"model-00070-of-00126.safetensors"},{"rfilename":"model-00071-of-00126.safetensors"},{"rfilename":"model-00072-of-00126.safetensors"},{"rfilename":"model-00073-of-00126.safetensors"},{"rfilename":"model-00074-of-00126.safetensors"},{"rfilename":"model-00075-of-00126.safetensors"},{"rfilename":"model-00076-of-00126.safetensors"},{"rfilename":"model-00077-of-00126.safetensors"},{"rfilename":"model-00078-of-00126.safetensors"},{"rfilename":"model-00079-of-00126.safetensors"},{"rfilename":"model-00080-of-00126.safetensors"},{"rfilename":"model-00081-of-00126.safetensors"},{"rfilename":"model-00082-of-00126.safetensors"},{"rfilename":"model-00083-of-00126.safetensors"},{"rfilename":"model-00084-of-00126.safetensors"},{"rfilename":"model-00085-of-00126.safetensors"},{"rfilename":"model-00086-of-00126.safetensors"},{"rfilename":"model-00087-of-00126.safetensors"},{"rfilename":"model-00088-of-00126.safetensors"},{"rfilename":"model-00089-of-00126.safetensors"},{"rfilename":"model-00090-of-00126.safetensors"},{"rfilename":"model-00091-of-00126.safetensors"},{"rfilename":"model-00092-of-00126.safetensors"},{"rfilename":"model-00093-of-00126.safetensors"},{"rfilename":"model-00094-of-00126.safetensors"},{"rfilename":"model-00095-of-00126.safetensors"},{"rfilename":"model-00096-of-00126.safetensors"},{"rfilename":"model-00097-of-00126.safetensors"},{"rfilename":"model-00098-of-00126.safetensors"},{"rfilename":"model-00099-of-00126.safetensors"},{"rfilename":"model-00100-of-00126.safetensors"},{"rfilename":"model-00101-of-00126.safetensors"},{"rfilename":"model-00102-of-00126.safetensors"},{"rfilename":"model-00103-of-00126.safetensors"},{"rfilename":"model-00104-of-00126.safetensors"},{"rfilename":"model-00105-of-00126.safetensors"},{"rfilename":"model-00106-of-00126.safetensors"},{"rfilename":"model-00107-of-00126.safetensors"},{"rfilename":"model-00108-of-00126.safetensors"},{"rfilename":"model-00109-of-00126.safetensors"},{"rfilename":"model-00110-of-00126.safetensors"},{"rfilename":"model-00111-of-00126.safetensors"},{"rfilename":"model-00112-of-00126.safetensors"},{"rfilename":"model-00113-of-00126.safetensors"},{"rfilename":"model-00114-of-00126.safetensors"},{"rfilename":"model-00115-of-00126.safetensors"},{"rfilename":"model-00116-of-00126.safetensors"},{"rfilename":"model-00117-of-00126.safetensors"},{"rfilename":"model-00118-of-00126.safetensors"},{"rfilename":"model-00119-of-00126.safetensors"},{"rfilename":"model-00120-of-00126.safetensors"},{"rfilename":"model-00121-of-00126.safetensors"},{"rfilename":"model-00122-of-00126.safetensors"},{"rfilename":"model-00123-of-00126.safetensors"},{"rfilename":"model-00124-of-00126.safetensors"},{"rfilename":"model.safetensors.index.json"},{"rfilename":"modeling_minimax_m2.py"},{"rfilename":"tokenizer.json"},{"rfilename":"tokenizer_config.json"},{"rfilename":"vocab.json"}],"spaces":["VIDraft/global-llm-leaderboard","pliny-the-prompter/obliteratus","akhaliq/anycoder","hadadxyz/ai","FINAL-Bench/all-bench-leaderboard","FINAL-Bench/Leaderboard","GenAISecurityProject/OWASP-AIBOM-Generator","hfmlsoc/different-flops","aiqtech/final-bench-Proprietary","arudradey/all-bench-leaderboard","mortimerme/pyvideotrans","ai-coscientist/ablation-bench","kazmirr/MiniMaxAI-MiniMax-M2.5","Kodacoda/obliteratus","dumbordumber/obliteratus","ostarling/MiniMax-M2.5-Chat","YuZijie123/myyy-woof","ausntmarzi/final-bench-Proprietary","dromero14521/obliteratus","kicfk/obliteratus","aaahmet/obliteratus","rbinrs/obliteratus","Ngixdev/obliteratus","Deadmon/obliteratus","Trkaga/anycoder","ZENLLC/anycoder","DarrenDsa/NvideaAgent","PARZ2344/PNGTECH","Rikishini/anycoder","chddddq/any","Superwolff/anycoder","build-small-hackathon/letxinet-lat","RavichandranJ/obliteratus","S-Dreamer/obliteratus","AlanaSky/asgaard","marchkamal51/obliteratus","anujkumar4/chatbot","VikVib/ai","Nouinhalegau/MiniMaxAI-MiniMax-M2.5","LOOFYYLO/Boofa-skiler","MadhavRupala/anycoder","LOOFYYLO/MiniMaxAI-MiniMax-M2.5","Nabeel377/MiniMaxAI-MiniMax-M2.5","haode2023/MiniMaxAI-MiniMax-M2.5","Georgeschrishallak/MiniMaxAI-MiniMax-M2.5","secutorpro/ai-novelist-engine-3awwi","Linacre/anycoder","KaydoAI/MiniMaxAI-MiniMax-M2.5","Adrianstanca1/MiniMaxAI-MiniMax-M2.5","uv21/my-ai-app","Rashmi252/MiniMaxAI-MiniMax-M2.5","ginipick/Leaderboard","openfree/Leaderboard","fantos/Leaderboard","ChoruYt/MiniMaxAI-MiniMax-M2.5","leixwang/MiniMaxAI-MiniMax-M2.5","marcusfgfhj/MiniMaxAI-MiniMax-M2.5","BikoRiko/anycoder","radin00981/MiniMaxAI-MiniMax-M2.5","mohammadbest1990/MiniMaxAI-MiniMax-M2.5","zehnebartar/MiniMaxAI-MiniMax-M2.5","z4iXsECHS6ND-heighTSAI-INSEGCSyX6T-SYS-ROD/anycoder","arunachalam0606/nvidia-proxy-hf-nvm-google","Ganesh1411/nvidia-proxy-hf-nvm-google","Kamal9597/nvidia-proxy-hf-nvm-google","Keoso/MiniMaxAI-MiniMax-M2.5","vishutheegale01/MiniMaxAI-MiniMax-M2.5","vishutheegale01/MiniMax-M2.5","Vikku94/MiniMaxAI-MiniMax-M2.5","hfgghfg/MiniMaxAI-MiniMax-M2.5","asafaa/MiniMaxAI-MiniMax-M2.5","crabander/anycoder","Galaxydude2/anycoder","sub314xxl/obliteratus","cw4444/obliteratus","Saksak65/ai","Saksak65/Chat","kalmuahlaunda/obliteratus","mastodonitis/obliteratus","sirrvetohere/MiniMaxAI-MiniMax-M2.5","GrozniMilitq/obliteratus","dookcss/MiniMaxAI-MiniMax-M2.5","liminal4423/obliteratus","bassetone/anycoder","kirikir13/obliteratus","Jsdndn/MiniMaxAI-MiniMax-M2.5","RaccoonStampede/obliteratus","Dhiru09/MiniMaxAI-MiniMax-M2.5","ssanjay22/anycoder","aiclass2026/anycoder","ankur030685/coder1","ashlarch100/anycoder","ankur030685/anycoder","ashlarch100/anycoder2","AIMLAtul/anycoder","binsmat/anycoder","eubottura/deepsite-project-1hmn1","Echooff3/suno-style","secutorpro/vtc-vip-paris-ia-cognitive-cqy17","bdaibyazad/BDAi-By-Azad"],"createdAt":"2026-02-12T06:05:24.000Z","safetensors":{"parameters":{"F32":62654720,"BF16":1230021632,"F8_E4M3":227410968576},"total":228703644928},"inference":"warm","usedStorage":230136082747}