Image-Text-to-Text
Transformers
Safetensors
minimax_m3_vl
multimodal
Mixture of Experts
agent
coding
video
conversational
custom_code
Eval Results
Instructions to use MiniMaxAI/MiniMax-M3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MiniMaxAI/MiniMax-M3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="MiniMaxAI/MiniMax-M3", trust_remote_code=True) messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("MiniMaxAI/MiniMax-M3", trust_remote_code=True) model = AutoModelForMultimodalLM.from_pretrained("MiniMaxAI/MiniMax-M3", trust_remote_code=True, device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- HuggingChat
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MiniMaxAI/MiniMax-M3 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MiniMaxAI/MiniMax-M3" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MiniMaxAI/MiniMax-M3", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/MiniMaxAI/MiniMax-M3
- SGLang
How to use MiniMaxAI/MiniMax-M3 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "MiniMaxAI/MiniMax-M3" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MiniMaxAI/MiniMax-M3", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "MiniMaxAI/MiniMax-M3" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MiniMaxAI/MiniMax-M3", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use MiniMaxAI/MiniMax-M3 with Docker Model Runner:
docker model run hf.co/MiniMaxAI/MiniMax-M3
xuebi commited on
Commit ·
3a41b31
0
Parent(s):
Initial commit
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- .gitattributesAdded+36
- LICENSEAdded+17
- README.mdAdded+87
- added_tokens.jsonAdded+63
- chat_template.jinjaAdded+247
- config.jsonAdded+284
- configuration_minimax_m3_vl.pyAdded+111
- figures/benchmark.jpegAdded
- figures/efficiency_gqa_vs_msa.pngAdded
- figures/logo.svgAdded
- generation_config.jsonAdded+8
- image_processor.pyAdded+223
- merges.txtAdded
- model-00001-of-00059.safetensorsAdded+3
- model-00002-of-00059.safetensorsAdded+3
- model-00003-of-00059.safetensorsAdded+3
- model-00004-of-00059.safetensorsAdded+3
- model-00005-of-00059.safetensorsAdded+3
- model-00006-of-00059.safetensorsAdded+3
- model-00007-of-00059.safetensorsAdded+3
- model-00008-of-00059.safetensorsAdded+3
- model-00009-of-00059.safetensorsAdded+3
- model-00010-of-00059.safetensorsAdded+3
- model-00011-of-00059.safetensorsAdded+3
- model-00012-of-00059.safetensorsAdded+3
- model-00013-of-00059.safetensorsAdded+3
- model-00014-of-00059.safetensorsAdded+3
- model-00015-of-00059.safetensorsAdded+3
- model-00016-of-00059.safetensorsAdded+3
- model-00017-of-00059.safetensorsAdded+3
- model-00018-of-00059.safetensorsAdded+3
- model-00019-of-00059.safetensorsAdded+3
- model-00020-of-00059.safetensorsAdded+3
- model-00021-of-00059.safetensorsAdded+3
- model-00022-of-00059.safetensorsAdded+3
- model-00023-of-00059.safetensorsAdded+3
- model-00024-of-00059.safetensorsAdded+3
- model-00025-of-00059.safetensorsAdded+3
- model-00026-of-00059.safetensorsAdded+3
- model-00027-of-00059.safetensorsAdded+3
- model-00028-of-00059.safetensorsAdded+3
- model-00029-of-00059.safetensorsAdded+3
- model-00030-of-00059.safetensorsAdded+3
- model-00031-of-00059.safetensorsAdded+3
- model-00032-of-00059.safetensorsAdded+3
- model-00033-of-00059.safetensorsAdded+3
- model-00034-of-00059.safetensorsAdded+3
- model-00035-of-00059.safetensorsAdded+3
- model-00036-of-00059.safetensorsAdded+3
- model-00037-of-00059.safetensorsAdded+3
123456789101112131415161718192021222324252627282930313233343536*.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 -textsaved_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 -textfigures/benchmark.jpeg filter=lfs diff=lfs merge=lfs -text1234567891011121314151617MINIMAX COMMUNITY LICENSECopyright (c) 2026 MiniMaxPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software for non-commercial purposes, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or provide copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:1. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.2. If the Software (or any derivative works thereof) is used for any Commercial Use for your products or services: 1. you shall prominently display “Built with MiniMax M3” on a related website, user interface, blogpost, about page or product documentation. 2. you shall obtain a separate, prior written authorization from MiniMax by contacting api@minimax.io with the subject line “M3 licensing - authorization request”, if such products and services generate more than 20 million US dollars (or equivalent in other currencies) in yearly revenue; otherwise, you only need to send a one-time notice to api@minimax.io with the subject “M3 licensing — notice”.3. “Commercial Use” means any use of the Software or any derivative work thereof that is primarily intended for commercial advantage or monetary compensation, which includes, without limitation: (i) offering products or services to third parties for a fee, which utilize, incorporate, or rely on the Software or its derivatives, (ii) the commercial use of APIs provided by or for the Software or its derivatives, including to support or enable commercial products, services, or operations, whether in a cloud-based, hosted, or other similar environment, and (iii) the deployment or provision of the Software or its derivatives that have been subjected to post-training, fine-tuning, instruction-tuning, or any other form of modification, for any commercial purpose.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Appendix: Prohibited Uses You agree you will not use, or allow others to use, the Software or any derivatives of the Software to:1. Generate or disseminate content prohibited by applicable laws or regulations.2. Assist with, engage in or otherwise support any military purpose.3. Exploit, harm, or attempt to exploit or harm minors.4. Generate or disseminate false or misleading information with the intent to cause harm.5. Promote discrimination, hate speech, or harmful behavior against individuals or groups based on race or ethnic origin, religion, disability, age, nationality and national origin, veteran status, sexual orientation, gender or gender identity, caste, immigration status, or any other characteristic that is associated with systemic discrimination or marginalization.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687---pipeline_tag: image-text-to-textlicense: otherlicense_name: minimax-communitylicense_link: LICENSElibrary_name: transformerstags: - multimodal - moe - agent - coding - video---
<div align="center"> <img width="60%" src="figures/logo.svg" alt="MiniMax"></div><hr>
<p align="center"> <a href="https://agent.minimax.io/" target="_blank"><img src="https://img.shields.io/badge/MiniMax%20Agent-FF6C37?style=for-the-badge&logo=minimax&logoColor=white" alt="MiniMax Agent"></a> <a href="https://platform.minimax.io/docs/guides/text-generation" target="_blank"><img src="https://img.shields.io/badge/API-FF6C37?style=for-the-badge&logo=minimax&logoColor=white" alt="API"></a> <a href="https://www.minimax.io" target="_blank"><img src="https://img.shields.io/badge/MiniMax%20Website-FF6C37?style=for-the-badge&logo=minimax&logoColor=white" alt="MiniMax Website"></a> <br> <a href="https://platform.minimaxi.com/docs/faq/contact-us" target="_blank"><img src="https://img.shields.io/badge/WeChat-07C160?style=for-the-badge&logo=wechat&logoColor=white" alt="WeChat"></a> <a href="https://discord.com/invite/DPC4AHFCBw" target="_blank"><img src="https://img.shields.io/badge/Discord-5865F2?style=for-the-badge&logo=discord&logoColor=white" alt="Discord"></a> <a href="https://huggingface.co/MiniMaxAI" target="_blank"><img src="https://img.shields.io/badge/Hugging%20Face-FFD21E?style=for-the-badge&logo=huggingface&logoColor=black" alt="Hugging Face"></a> <a href="https://github.com/MiniMax-AI/MiniMax-M3" target="_blank"><img src="https://img.shields.io/badge/GitHub-181717?style=for-the-badge&logo=github&logoColor=white" alt="GitHub"></a> <a href="https://arxiv.org/abs/2606.13392" target="_blank"><img src="https://img.shields.io/badge/arXiv-2606.13392-B31B1B?style=for-the-badge&logo=arxiv&logoColor=white" alt="arXiv Paper"></a> <a href="https://huggingface.co/MiniMaxAI/MiniMax-M3/blob/main/LICENSE" target="_blank"><img src="https://img.shields.io/badge/LICENSE-4CAF50?style=for-the-badge&logo=creativecommons&logoColor=white" alt="LICENSE"></a></p>
MiniMax-M3 is a native multimodal model with 1M context. It has ~428B parameters and ~23B activated parameters.
**Highlights:**- **Native Multimodality:** M3 undergoes mixed-modality training from the very first step, enabling deeper semantic fusion across text, image, and video.- **Context Scaling via Sparse Attention:** M3 introduces MiniMax Sparse Attention (MSA) to improve long context efficiency. M3 delivers 9× prefill and 15× decode speedups compared to M2 at 1M context, reducing per-token compute to 1/20.- **Coding & Cowork Capability:** M3 achieves frontier-level performance across long-horizon agentic benchmarks, excelling in both coding and cowork.
<p align="center"> <img width="100%" src="figures/benchmark.jpeg"></p>
## MiniMax Sparse Attention (MSA)
M3 is powered by [**MiniMax Sparse Attention (MSA)**](https://github.com/MiniMax-AI/MSA), a high-performance sparse attention operator designed for million-token contexts. Compared with GQA, MSA dramatically reduces the attention compute and memory footprint while preserving model quality.
<p align="center"> <img width="100%" src="figures/efficiency_gqa_vs_msa.png" alt="GQA vs MSA Efficiency Comparison"></p>
> 📄 Read the technical report: [arXiv:2606.13392](https://arxiv.org/abs/2606.13392) · [Hugging Face Papers](https://huggingface.co/papers/2606.13392)
## How to Use
- [MiniMax Agent](https://agent.minimax.io/)- [MiniMax API](https://platform.minimax.io/)
M3 supports two reasoning modes:- **thinking** — for complex reasoning, agentic tasks, and long-horizon collaboration.- **non-thinking** — for latency-sensitive scenarios such as chat and code completion.
## Local Deployment
Download the model:
```bashhf download MiniMaxAI/MiniMax-M3 --local-dir MiniMax-M3```
We recommend the following inference frameworks (listed alphabetically) to serve the model:
- [SGLang](https://docs.sglang.io/) - see [SGLang cookbook](https://docs.sglang.io/cookbook/autoregressive/MiniMax/MiniMax-M3).
- [vLLM](https://github.com/vllm-project/vllm) - see [vLLM recipes](https://recipes.vllm.ai/MiniMaxAI/MiniMax-M3).
- [Transformers](https://github.com/huggingface/transformers) - see [Transformers docs](https://huggingface.co/docs/transformers/model_doc/minimax_m3_vl).
### Inference Parameters
We recommend the following parameters for best performance: `temperature=1.0`, `top_p=0.95`, `top_k=40`.
## Contact Us
Contact us at [model@minimax.io](mailto:model@minimax.io).123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263{ "]!p~[": 200000, "<fim_prefix>": 200001, "<fim_middle>": 200002, "<fim_suffix>": 200003, "<fim_pad>": 200004, "<reponame>": 200005, "<filename>": 200006, "<gh_stars>": 200007, "<issue_start>": 200008, "<issue_comment>": 200009, "<issue_closed>": 200010, "<jupyter_start>": 200011, "<jupyter_text>": 200012, "<jupyter_code>": 200013, "<jupyter_output>": 200014, "<empty_output>": 200015, "<commit_before>": 200016, "<commit_msg>": 200017, "<commit_after>": 200018, "]~b]": 200019, "[e~[": 200020, "]!d~[": 200021, "<function_call>": 200022, "<code_interpreter>": 200023, "]<]speech[>[": 200024, "]<]image[>[": 200025, "]<]video[>[": 200026, "]<]start of speech[>[": 200027, "]<]end of speech[>[": 200028, "]<]start of image[>[": 200029, "]<]end of image[>[": 200030, "]<]start of video[>[": 200031, "]<]end of video[>[": 200032, "]<]vision pad[>[": 200033, "]~!b[": 200034, "<jupyter_error>": 200035, "<add_file>": 200036, "<delete_file>": 200037, "<rename_file>": 200038, "<edit_file>": 200039, "<commit_message>": 200040, "<empty_source_file>": 200041, "<repo_struct>": 200042, "<code_context>": 200043, "<file_content>": 200044, "<source_files>": 200045, "<pr_start>": 200046, "<review_comment>": 200047, "<filepath>": 200048, "<file_sep>": 200049, "<think>": 200050, "</think>": 200051, "<tool_call>": 200052, "</tool_call>": 200053, "]<]frame[>[": 200054, "]<]start of frame[>[": 200055, "]<]end of frame[>[": 200056, "<|content_altered_placeholder|>": 200057, "]<]minimax[>[": 200058, "<mm:think>": 200059, "</mm:think>": 200060}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247{# ---------- special token variables ---------- #}{%- set ns_token = ']<]minimax[>[' -%}{%- set bod_token = ']~!b[' -%}{%- set bos_token = ']~b]' -%}{%- set eos_token = '[e~[' -%}{%- set toolcall_begin_token = ns_token ~ '<tool_call>' -%}{%- set toolcall_end_token = ns_token ~ '</tool_call>' -%}{%- set think_begin_token = '<mm:think>' -%}{%- set think_end_token = '</mm:think>' -%}{%- set image_token = ']<]image[>[' -%}{%- set video_token = ']<]video[>[' -%}{#- Thinking mode: "enabled" / "disabled" / "adaptive" / not defined -#}{#- Recursive XML renderer for tool_call arguments ======================== -#}{#- None values are intentionally skipped in mapping iteration so that `<key>null</key>` (which would round-trip to the literal string "null") never appears in the rendered tool_call. The convention is: omit the field entirely. The top-level `_args` loop applies the same rule. The `val is none` branch below is a safety net only — upstream cleaning (drop_none_in_tool_arguments) should ensure no None ever reaches here. -#}{%- macro to_xml(val, ns) -%}{%- if val is mapping -%}{%- for k, v in val.items() if v is not none -%}{{ ns }}<{{ k }}>{{ to_xml(v, ns) }}{{ ns }}</{{ k }}>{%- endfor -%}{%- elif val is iterable and val is not string -%}{%- for item in val -%}{{ ns }}<item>{{ to_xml(item, ns) }}{{ ns }}</item>{%- endfor -%}{%- elif val is none -%}{#- Should be unreachable when upstream cleaning is applied. -#}{%- elif val is boolean -%}{{ val | tojson }}{%- else -%}{{ val }}{%- endif -%}{%- endmacro -%}{#- Tool Rendering Functions ============================================== -#}{%- macro render_tool_namespace(namespace_name, tool_list) -%}{%- for tool in tool_list -%}<tool>{{ tool.function | tojson(ensure_ascii=False) }}</tool>{% endfor -%}{%- endmacro -%}{%- macro visible_text(content) -%} {%- if content is string -%} {{ content }} {%- elif content is iterable and content is not mapping -%} {%- for item in content -%} {%- if item is mapping and item.type == 'text' -%} {{- item.text }} {%- elif item is mapping and item.type == 'image' -%} {{- image_token }} {%- elif item is mapping and item.type == 'video' -%} {{- video_token}} {%- elif item is string -%} {{- item }} {%- endif -%} {%- endfor -%} {%- elif content is none -%} {{- '' }} {%- else -%} {{- content }} {%- endif -%}{%- endmacro -%}{#- System Message Construction ============================================ -#}{%- macro build_system_message(system_message) -%} {%- if system_message and system_message.content -%} {{- visible_text(system_message.content) }} {%- else -%} {{- 'Your model version is MiniMax-M3, developed by MiniMax. Knowledge cutoff: January 2026. Founded in early 2022, MiniMax is a global AI foundation model company committed to advancing the frontiers of AI towards AGI.' }} {%- endif -%}
{#- Thinking mode instructions -#} {{- '\n\n<thinking_instructions>\n' }} {{- 'You have a thinking capability that allows you to reason step by step before responding. When thinking is enabled, wrap your reasoning in ' ~ think_begin_token ~ think_end_token ~ ' tags before your response. When thinking is disabled, begin your response directly after the ' ~ think_end_token ~ ' prefix. When thinking is adaptive, decide on your own whether to think for the current turn.\n' }} {%- if thinking_mode is defined -%} {%- if thinking_mode == "enabled" -%} {{- 'Current thinking mode: enabled. You MUST think step by step before every response, including after receiving function/tool results.\n' }} {%- elif thinking_mode == "disabled" -%} {{- 'Current thinking mode: disabled. Do not output any thinking process.\n' }} {%- elif thinking_mode == "adaptive" -%} {{- 'Current thinking mode: adaptive. You are encouraged to think for complex decision-making, multi-step reasoning, or when analyzing function/tool results.\n' }} {%- endif -%} {%- else -%} {{- 'Current thinking mode: adaptive. You are encouraged to think for complex decision-making, multi-step reasoning, or when analyzing function/tool results.\n' }} {%- endif -%} {{- '</thinking_instructions>' }}{%- endmacro -%}{%- macro build_developer_message(developer_message) -%} {%- if developer_message and developer_message.content -%} {{- visible_text(developer_message.content) }} {%- else -%} {%- if model_identity is not defined -%} {%- set model_identity = "You are a helpful assistant." -%} {%- endif -%} {{- model_identity }} {%- endif -%}{%- endmacro -%}{#- Main Template Logic ================================================= -#}{#- Role mapping: root -> system sp (high priority), system/developer -> developer sp (low priority) -#}{%- set system_message = none -%}{%- set developer_message = none -%}{%- set conversation_messages = messages -%}{%- if messages and messages[0].role == "root" -%} {%- set system_message = messages[0] -%} {%- set conversation_messages = messages[1:] -%} {%- if conversation_messages and conversation_messages[0].role in ["system", "developer"] -%} {%- set developer_message = conversation_messages[0] -%} {%- set conversation_messages = conversation_messages[1:] -%} {%- endif -%}{%- elif messages and messages[0].role in ["system", "developer"] -%} {%- set developer_message = messages[0] -%} {%- set conversation_messages = messages[1:] -%}{%- endif -%}{#- Render system sp (higher priority, root role only) -#}{{- bod_token ~ bos_token ~ 'system' ~ '\n' }}{{- build_system_message(system_message) }}{{- eos_token ~ '\n' }}
{#- Render developer sp (lower priority: system/developer role + tools) -#}{{- bos_token ~ 'developer' ~ '\n' }}{{- build_developer_message(developer_message) }}{%- if tools -%} {{- '\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' ~ '<tools>' ~ '\n' }} {{- render_tool_namespace("functions", tools) }} {{- '</tools>' ~ '\n\n' }} {{- 'To call tools, wrap all invocations in a single ' ~ toolcall_begin_token ~ toolcall_end_token ~ ' block. Parameter values containing nested objects or arrays are recursively expanded into XML elements. Example:\n' }} {{- '\n' ~ toolcall_begin_token ~ '\n' }} {{- ns_token + '<invoke name="tool-name-1">' }} {{- ns_token + '<param-1>value-1' + ns_token + '</param-1>' }} {{- ns_token + '<param-2>' }} {{- ns_token + '<item>' }} {{- ns_token + '<key-a>val-a' + ns_token + '</key-a>' }} {{- ns_token + '<key-b>val-b' + ns_token + '</key-b>' }} {{- ns_token + '</item>' }} {{- ns_token + '</param-2>' }} {{- ns_token + '</invoke>\n' }} {{- ns_token + '<invoke name="tool-name-2">' }} {{- ns_token + '<param-1>value-1' + ns_token + '</param-1>' }} {{- ns_token + '</invoke>\n' }} {{- toolcall_end_token }}{%- endif -%}{{- eos_token ~ '\n' }}
{#- Render messages -#}{%- set last_tool_call = namespace(name=none) -%}{%- for message in conversation_messages -%} {%- if message.role == 'assistant' -%} {{- bos_token ~ 'ai' ~ '\n' }}
{%- set reasoning_content = '' %} {%- set content = visible_text(message.content) %} {%- if message.reasoning_content is string %} {%- set reasoning_content = message.reasoning_content %} {%- else %} {%- if think_end_token in content %} {%- set reasoning_content = content.split(think_end_token)[0].strip('\n').split(think_begin_token)[-1].strip('\n') %} {%- set content = content.split(think_end_token)[-1].strip('\n') %} {%- endif %} {%- endif %}
{%- if reasoning_content -%} {#- Render thinking for every assistant turn (all-turn visible) -#} {{- think_begin_token ~ reasoning_content ~ think_end_token }} {%- else -%} {#- No thinking rendered → prefix with think_end_token -#} {{- think_end_token }} {%- endif -%}
{%- if content -%} {{- content }} {%- endif -%} {%- if message.tool_calls -%} {{- toolcall_begin_token ~ '\n' }}
{%- for tool_call in message.tool_calls -%} {%- if tool_call.function -%} {%- set tool_call = tool_call.function -%} {%- endif -%}{{- ns_token + '<invoke name="' + tool_call.name + '">' }}{%- set _args = tool_call.arguments -%}{%- for k, v in _args.items() if v is not none %}{{- ns_token + '<' + k + '>' -}}{{- to_xml(v, ns_token) -}}{{- ns_token + '</' + k + '>' }}{%- endfor -%}{{- ns_token + '</invoke>' ~ '\n' }} {%- endfor -%}
{{- toolcall_end_token }} {%- if message.tool_calls[-1].function -%} {%- set last_tool_call.name = message.tool_calls[-1].function.name -%} {%- else -%} {%- set last_tool_call.name = message.tool_calls[-1].name -%} {%- endif -%} {%- else -%} {%- set last_tool_call.name = none -%} {%- endif -%} {{- eos_token ~ '\n' }}
{%- elif message.role == 'tool' -%} {%- if last_tool_call.name is none -%} {{- raise_exception("Message has tool role, but there was no previous assistant message with a tool call!") }} {%- endif -%} {%- if loop.first or (conversation_messages[loop.index0 - 1].role != 'tool') -%} {{- bos_token ~ 'tool' }} {%- endif -%} {{- '\n<response>' }} {%- if message.content is string -%} {{- message.content }} {%- else -%} {%- for tr in message.content -%} {%- if tr is mapping and tr.type is defined and tr.type == 'image' -%} {{- image_token }} {%- elif tr is mapping and tr.type is defined and tr.type == 'video' -%} {{- video_token }} {%- else -%} {{- tr.output if tr.output is defined else (tr.text if tr.type == 'text' and tr.text is defined else tr) }} {%- endif -%} {%- endfor -%} {%- endif -%} {{- '</response>' }} {%- if loop.last or (conversation_messages[loop.index0 + 1].role != 'tool') -%} {{- eos_token ~ '\n' -}} {%- endif -%}
{%- elif message.role == 'user' -%} {{- bos_token ~ 'user' ~ '\n' }} {{- visible_text(message.content) }} {{- eos_token ~ '\n' }} {%- endif -%}{%- endfor -%}
{#- Generation prompt -#}{%- if add_generation_prompt -%}{{- bos_token ~ 'ai' ~ '\n' }}{%- if thinking_mode is defined and thinking_mode == "disabled" -%} {{- think_end_token }}{%- elif thinking_mode is defined and thinking_mode == "adaptive" -%} {#- adaptive: no prefix, let model decide -#}{%- elif thinking_mode is defined and thinking_mode == "enabled" -%} {#- enabled or not defined: default to think -#} {{- think_begin_token }}{%- else -%} {#- adaptive: no prefix, let model decide -#}{%- endif -%}{%- endif -%}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284{ "architectures": [ "MiniMaxM3SparseForConditionalGeneration" ], "auto_map": { "AutoConfig": "configuration_minimax_m3_vl.MiniMaxM3VLConfig" }, "model_type": "minimax_m3_vl", "text_config": { "hidden_size": 6144, "intermediate_size": 3072, "num_hidden_layers": 60, "num_attention_heads": 64, "num_key_value_heads": 4, "head_dim": 128, "vocab_size": 200064, "max_position_embeddings": 1048576, "rms_norm_eps": 1e-06, "use_gemma_norm": true, "attention_output_gate": false, "rope_theta": 5000000, "rotary_dim": 64, "partial_rotary_factor": 0.5, "hidden_act": "swigluoai", "use_qk_norm": true, "tie_word_embeddings": false, "dense_intermediate_size": 12288, "shared_intermediate_size": 3072, "num_local_experts": 128, "num_experts_per_tok": 4, "n_shared_experts": 1, "scoring_func": "sigmoid", "use_routing_bias": true, "moe_layer_freq": [ 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "qk_norm_type": "per_head", "num_mtp_modules": 7, "num_nextn_predict_layers": 1, "swiglu_alpha": 1.702, "swiglu_limit": 7.0, "routed_scaling_factor": 2.0, "sparse_attention_config": { "use_sparse_attention": true, "sparse_index_dim": 128, "sparse_num_index_heads": 4, "sparse_topk_blocks": 16, "sparse_block_size": 128, "sparse_disable_index_value": [ 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "sparse_score_type": "max", "sparse_init_block": 0, "sparse_local_block": 1, "sparse_attention_freq": [ 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ] }, "architectures": [ "MiniMaxM3SparseForCausalLM" ] }, "vision_config": { "hidden_size": 1280, "num_attention_heads": 16, "num_hidden_layers": 32, "intermediate_size": 5120, "patch_size": 14, "image_size": 2016, "projection_dim": 6144, "position_embedding_type": "rope", "rope_mode": "3d", "rope_theta": 10000.0, "attention_dropout": 0.0, "hidden_act": "gelu", "initializer_factor": 1.0, "initializer_range": 0.02, "layer_norm_eps": 1e-05, "model_type": "clip_vision_model", "num_channels": 3, "vocab_size": 32000, "img_token_compression_config": { "image_token_compression_method": "patch_merge", "spatial_merge_size": 2, "temporal_patch_size": 2 }, "vision_segment_max_frames": 4 }, "img_token_compression_config": { "image_token_compression_method": "patch_merge", "spatial_merge_size": 2, "temporal_patch_size": 2 }, "image_grid_pinpoints": "[(336, 336), (336, 672), (336, 1008), (336, 1344), (336, 1680), (336, 2016), (672, 336), (672, 672), (672, 1008), (672, 1344), (672, 1680), (672, 2016), (1008, 336), (1008, 672), (1008, 1008), (1008, 1344), (1008, 1680), (1008, 2016), (1344, 336), (1344, 672), (1344, 1008), (1344, 1344), (1344, 1680), (1344, 2016), (1680, 336), (1680, 672), (1680, 1008), (1680, 1344), (1680, 1680), (1680, 2016), (2016, 336), (2016, 672), (2016, 1008), (2016, 1344), (2016, 1680), (2016, 2016)]", "image_seq_length": 576, "image_token_index": 200025, "video_token_index": 200026, "multimodal_projector_bias": true, "num_reward_heads": 0, "process_image_mode": "dynamic_res", "projector_hidden_act": "gelu", "vision_feature_layer": -1, "vision_feature_select_strategy": "full", "torch_dtype": "bfloat16", "transformers_version": "4.52.4", "projector_hidden_size": 6144}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111"""HuggingFace configs for the MiniMax VL family (M2 VL / M3 VL).
This file is bundled into every converted HF checkpoint so that loading via``AutoConfig.from_pretrained(..., trust_remote_code=True)`` works without anyruntime dependency on sglang or other internal packages — only stock``transformers`` is required.
The class definitions intentionally mirror``sglang.srt.configs.minimax_vl``; if either side changes, keep them in sync.
The file is named ``configuration_minimax_m3_vl.py`` (matching the legacy``model_type="minimax_m3_vl"`` and the converter's ``auto_map`` entry) sothat ckpts produced by this converter remain loadable by older sglang versionsthat only know the ``MiniMaxM3VL*`` names. The canonical class is``MiniMaxM3VLConfig``; ``MiniMaxM3VLConfig`` is a thin BC alias whose onlypurpose is to be referenced from ``auto_map``."""
from typing import Optional
from transformers.configuration_utils import PretrainedConfigfrom transformers.models.auto import CONFIG_MAPPING
def _coerce_sub_config( sub_config: Optional[dict], default_model_type: str) -> Optional[PretrainedConfig]: """Convert a config dict to a ``PretrainedConfig`` instance.
If ``model_type`` is registered in HF ``CONFIG_MAPPING`` the corresponding config class is used; otherwise we fall back to a generic ``PretrainedConfig`` so all dict keys still become real attributes (M3's text backbone uses ``model_type="minimax_m2"`` which is not in ``CONFIG_MAPPING``). """ if not isinstance(sub_config, dict): return sub_config model_type = sub_config.get("model_type", default_model_type) cls = CONFIG_MAPPING.get(model_type, PretrainedConfig) return cls(**sub_config)
class MiniMaxVLBaseConfig(PretrainedConfig): """Base config shared by every MiniMax VL variant.
Handles vision/text sub-config coercion. Concrete subclasses only need to declare a unique ``model_type`` string. """
def __init__( self, vision_config: Optional[dict] = None, text_config: Optional[dict] = None, image_token_index: int = 200025, video_token_index: int = 200026, image_seq_length: int = 576, process_image_mode: str = "dynamic_res", projector_hidden_act: str = "gelu", multimodal_projector_bias: bool = True, vision_feature_layer: int = -1, vision_feature_select_strategy: str = "full", img_token_compression_config: Optional[dict] = None, image_grid_pinpoints: Optional[str] = None, **kwargs, ): self.vision_config = _coerce_sub_config(vision_config, "clip_vision_model") self.text_config = _coerce_sub_config(text_config, "mixtral")
self.image_token_index = image_token_index self.video_token_index = video_token_index self.image_seq_length = image_seq_length self.process_image_mode = process_image_mode self.projector_hidden_act = projector_hidden_act self.multimodal_projector_bias = multimodal_projector_bias self.vision_feature_layer = vision_feature_layer self.vision_feature_select_strategy = vision_feature_select_strategy self.img_token_compression_config = img_token_compression_config or {} self.image_grid_pinpoints = image_grid_pinpoints
super().__init__(**kwargs)
def __post_init__(self, **kwargs): super().__post_init__(**kwargs) if hasattr(self, "vision_config"): self.vision_config = _coerce_sub_config(self.vision_config, "clip_vision_model") if hasattr(self, "text_config"): self.text_config = _coerce_sub_config(self.text_config, "mixtral")
class MiniMaxM2VLConfig(MiniMaxVLBaseConfig): """MiniMax M2 VL: vision tower + M2 (Mixtral-style MoE) text backbone."""
model_type = "minimax_m2_vl"
class MiniMaxM3VLConfig(MiniMaxVLBaseConfig): """MiniMax M3 VL: vision tower + M3 (mixed sparse/dense MoE) text backbone."""
model_type = "minimax_m3_vl"
class MiniMaxM2MiniVLConfig(MiniMaxM2VLConfig): """Legacy alias kept so old ``model_type="minimax_m2_mini_vl"`` ckpts load."""
model_type = "minimax_m2_mini_vl"
class MiniMaxM3VLConfig(MiniMaxM3VLConfig): """Legacy alias kept so old ``model_type="minimax_m3_vl"`` ckpts load."""
model_type = "minimax_m3_vl"12345678{ "bos_token_id": 200019, "do_sample": true, "eos_token_id": 200020, "temperature": 1.0, "top_p": 0.95, "transformers_version": "4.46.1"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223# Copyright 2023-2024 SGLang Team# Licensed under the Apache License, Version 2.0 (the "License");"""MiniMax VL family HuggingFace-compatible Processor, ImageProcessor, VideoProcessor."""import mathfrom typing import List, Tuple
import torchfrom torchvision.transforms import InterpolationModefrom transformers import BatchFeaturefrom transformers.image_processing_utils_fast import ( BaseImageProcessorFast, group_images_by_shape, reorder_images,)from transformers.image_utils import PILImageResampling, SizeDictfrom transformers.processing_utils import ( ImagesKwargs, Unpack,)from transformers.utils import TensorType
MAX_RATIO = 200
def round_by_factor(number: int, factor: int) -> int: return round(number / factor) * factor
def ceil_by_factor(number: int, factor: int) -> int: return math.ceil(number / factor) * factor
def floor_by_factor(number: int, factor: int) -> int: return math.floor(number / factor) * factor
def smart_resize( height: int, width: int, factor: int = 28, min_pixels: int = 4 * 28 * 28, max_pixels: int = 451584,) -> tuple[int, int]: if max(height, width) / min(height, width) > MAX_RATIO: raise ValueError( f"absolute aspect ratio must be smaller than {MAX_RATIO}, " f"got {max(height, width) / min(height, width)}" ) h_bar = max(factor, round_by_factor(height, factor)) w_bar = max(factor, round_by_factor(width, factor)) if h_bar * w_bar > max_pixels: beta = math.sqrt((height * width) / max_pixels) h_bar = floor_by_factor(height / beta, factor) w_bar = floor_by_factor(width / beta, factor) elif h_bar * w_bar < min_pixels: beta = math.sqrt(min_pixels / (height * width)) h_bar = ceil_by_factor(height * beta, factor) w_bar = ceil_by_factor(width * beta, factor) return h_bar, w_bar
# ==============================================================================# MiniMax M3 VL Image Processor Fast (Fast Mode - Torch based)# ==============================================================================
class MiniMaxM3VLImageProcessorKwargs(ImagesKwargs, total=False): patch_size: int temporal_patch_size: int merge_size: int max_pixels: int
class MiniMaxM3VLImageProcessor(BaseImageProcessorFast): do_resize = True resample = PILImageResampling.BICUBIC size = {"height": 672, "width": 672} # required by base class validation, not used as resize bound default_to_square = False do_rescale = True rescale_factor = 1 / 255 do_normalize = True image_mean = [0.48145466, 0.4578275, 0.40821073] image_std = [0.26862954, 0.26130258, 0.27577711] do_convert_rgb = True patch_size = 14 temporal_patch_size = 2 merge_size = 2 max_pixels = 451584 # 672*672 valid_kwargs = MiniMaxM3VLImageProcessorKwargs model_input_names = ["pixel_values", "image_grid_thw"]
def __init__(self, **kwargs: Unpack[MiniMaxM3VLImageProcessorKwargs]): super().__init__(**kwargs)
def preprocess( self, images, **kwargs: Unpack[MiniMaxM3VLImageProcessorKwargs] ) -> BatchFeature: return super().preprocess(images, **kwargs)
def _preprocess( self, images: List[torch.Tensor], do_resize: bool, size: SizeDict, resample: PILImageResampling | InterpolationMode | int | None, do_rescale: bool, rescale_factor: float, do_normalize: bool, image_mean: float | List[float] | None, image_std: float | List[float] | None, patch_size: int, temporal_patch_size: int, merge_size: int, max_pixels: int, disable_grouping: bool | None, return_tensors: str | TensorType | None, **kwargs, ) -> BatchFeature: grouped_images, grouped_images_index = group_images_by_shape( images, disable_grouping=disable_grouping ) resized_images_grouped = {} factor = patch_size * merge_size for shape, stacked_images in grouped_images.items(): height, width = stacked_images.shape[-2:] if do_resize: resized_height, resized_width = smart_resize( height, width, factor=factor, max_pixels=max_pixels, ) stacked_images = self.resize( stacked_images, size=SizeDict(height=resized_height, width=resized_width), resample=resample, ) resized_images_grouped[shape] = stacked_images
resized_images = reorder_images(resized_images_grouped, grouped_images_index)
grouped_images, grouped_images_index = group_images_by_shape( resized_images, disable_grouping=disable_grouping ) processed_images_grouped = {} processed_grids = {}
for shape, stacked_images in grouped_images.items(): resized_height, resized_width = stacked_images.shape[-2:]
patches = self.rescale_and_normalize( stacked_images, do_rescale, rescale_factor, do_normalize, image_mean, image_std, ) if patches.ndim == 4: patches = patches.unsqueeze(1)
if patches.shape[1] % temporal_patch_size != 0: repeats = patches[:, -1:].repeat( 1, temporal_patch_size - (patches.shape[1] % temporal_patch_size), 1, 1, 1, ) patches = torch.cat([patches, repeats], dim=1)
batch_size, grid_t, channel = patches.shape[:3] grid_t = grid_t // temporal_patch_size grid_h, grid_w = resized_height // patch_size, resized_width // patch_size
patches = patches.view( batch_size, grid_t, temporal_patch_size, channel, grid_h // merge_size, merge_size, patch_size, grid_w // merge_size, merge_size, patch_size, ) patches = patches.permute(0, 1, 4, 7, 5, 8, 3, 2, 6, 9)
flatten_patches = patches.reshape( batch_size, grid_t * grid_h * grid_w, channel * temporal_patch_size * patch_size * patch_size, )
processed_images_grouped[shape] = flatten_patches processed_grids[shape] = [[grid_t, grid_h, grid_w]] * batch_size
processed_images = reorder_images( processed_images_grouped, grouped_images_index ) processed_grids = reorder_images(processed_grids, grouped_images_index)
pixel_values = torch.cat(processed_images, dim=0) image_grid_thw = torch.tensor(processed_grids, dtype=torch.long)
return BatchFeature( data={"pixel_values": pixel_values, "image_grid_thw": image_grid_thw}, tensor_type=return_tensors, )
def get_number_of_image_patches(self, height: int, width: int, images_kwargs=None): images_kwargs = images_kwargs or {} patch_size = images_kwargs.get("patch_size", self.patch_size) merge_size = images_kwargs.get("merge_size", self.merge_size) max_pixels = images_kwargs.get("max_pixels", self.max_pixels)
resized_height, resized_width = smart_resize( height, width, factor=patch_size * merge_size, max_pixels=max_pixels, ) grid_h, grid_w = resized_height // patch_size, resized_width // patch_size return grid_h * grid_w123version https://git-lfs.github.com/spec/v1oid sha256:dd43571ea444cb0c966f2b2523d437252f81145f204062aea46521e202c32c9fsize 5583706344123version https://git-lfs.github.com/spec/v1oid sha256:f00337b2ad18c2d7ea3ede488ac40578b6faa4118bb8cfd5767ace9cbdadc26csize 10922058704123version https://git-lfs.github.com/spec/v1oid sha256:db80e5edf8169e3c5cc098e032d556381c1a84b1738f84ac376ed7b39cafffb5size 16079479008123version https://git-lfs.github.com/spec/v1oid sha256:97990b9a6477674a32acbbcb8b9ae5ead5eff93e882e31c8da36c95b3e1c62b8size 16079479000123version https://git-lfs.github.com/spec/v1oid sha256:109c0245ed614bf8502edc1e83ef9575ec4aa210cb99fc34bf2db03245f3c305size 16079479000123version https://git-lfs.github.com/spec/v1oid sha256:d787b2366131f8fb9175aec5bb986d0b3f3fa3a6433b73124b089fe78a765bbbsize 16079479000123version https://git-lfs.github.com/spec/v1oid sha256:c6ec7f70426ab2ee7decd771c1db66f231a57110fd382dc07c8a00d2b28b79a5size 16079479000123version https://git-lfs.github.com/spec/v1oid sha256:6463a6c079529088be571dff7d49714e5ba53e8be91d0365c85861f8e24813c5size 16079479000123version https://git-lfs.github.com/spec/v1oid sha256:b40f0eb7c619e133498a5e7c08cb5dc19e7d7ba410bbec95604af2d7a60560easize 16079479000123version https://git-lfs.github.com/spec/v1oid sha256:dda2800d133243292ddc513c6840965719bf9be56b8e0688f1e0976f9a1f8718size 16079479408123version https://git-lfs.github.com/spec/v1oid sha256:2b9034b9465cc74d7597f772bebb2ab2a11927bccbafe3c945d83fe416b18b31size 16079479408123version https://git-lfs.github.com/spec/v1oid sha256:428bd21d923d485be8f3a9c07c05f11d4cbb17663b116501f7ce70920928e0aesize 16079479408123version https://git-lfs.github.com/spec/v1oid sha256:63e7bccc9bfde81758dbbc8f3c1d489265e5e7b8090cbd3c680f716169238d02size 16079479408123version https://git-lfs.github.com/spec/v1oid sha256:2bb43609c1f96762ff37e1ea96e5de13042e7ca449f456b6f8e8177adf3c7a6esize 16079479408123version https://git-lfs.github.com/spec/v1oid sha256:e8a996b3b76b09d956f38c37ec7a0849068ac4cf42da2b449055d6ab452d422asize 16079479408123version https://git-lfs.github.com/spec/v1oid sha256:468d354425f54ad3f8f4f434d611fa27c1164e5362610acf2e58a491c41157f5size 16079479408123version https://git-lfs.github.com/spec/v1oid sha256:6698280d2df1837e76674b1b93825b397390c80ff4790f5a3cc12fb555e4b86esize 16079479408123version https://git-lfs.github.com/spec/v1oid sha256:52982932f6fb23d4805317bf9785582b9e6db13d034669f45d8b186df7110b6esize 16079479408123version https://git-lfs.github.com/spec/v1oid sha256:999ed59667d5546aa47ed447c63d3a7523e1c011c0406c3db27248fb88789aa8size 16079479408123version https://git-lfs.github.com/spec/v1oid sha256:465b4c6a0b2aa62ee77364d885d25fc05348704fc721baec8a68be99ce96b2a9size 16079479408123version https://git-lfs.github.com/spec/v1oid sha256:10f62f292fe4914b80ba3b1304c88152d25dbb811a89ead2609ce7f831e80fc4size 16079479408123version https://git-lfs.github.com/spec/v1oid sha256:7a2a1e556b9dfe3915ceb28a0a6394372957c63063f692c740349a74b6aa177asize 16079479408123version https://git-lfs.github.com/spec/v1oid sha256:f8294c392c4daff5deca1fd3c0c22de13bbc79078a18986e8865a49527dbe275size 16079479408123version https://git-lfs.github.com/spec/v1oid sha256:5c54a7513a720e7d1a9709be756d5f78fa97d14b0e7ce9877494cebad681852fsize 16079479408123version https://git-lfs.github.com/spec/v1oid sha256:06562ebf1ab9a4ebf1c048dec2de812ca4bec77f1250b868dc90c72d96fe1137size 5245548280123version https://git-lfs.github.com/spec/v1oid sha256:92d4b0199b5bfc57337d15ab057d9056bad11d37788274a1727a69d929d7caacsize 15302516656123version https://git-lfs.github.com/spec/v1oid sha256:3d707b6c6f9240204119bc781fd2d4f0640866c02de75a5b9d504aad73003c18size 14833765536123version https://git-lfs.github.com/spec/v1oid sha256:713c7a51b4dfaef7f36016e5f33fd0af6aa2842a0c424786e9163b2ceeeecb63size 14833765536123version https://git-lfs.github.com/spec/v1oid sha256:1c912118399e767c7eaf5d7096d78a91610df7a67ee1d11de141777d2a5c3797size 14833765536123version https://git-lfs.github.com/spec/v1oid sha256:20553bba3fd11ae151b2160c1b33f6dc5a7da0a6e9c6bd408fb300fcde4727ebsize 14833765536123version https://git-lfs.github.com/spec/v1oid sha256:03d00987b21643b8a5821641dd829473433c9b0b8f98b48732ca25fcf27c5e48size 14833765536123version https://git-lfs.github.com/spec/v1oid sha256:a6bc4b5a14c34d6ddd6b784f2dd5c358d142bb7b50087329ab07b124461899b5size 14833765536123version https://git-lfs.github.com/spec/v1oid sha256:316fe078370010b9d95ff1d9bc7c21c6198610da8ed5d2d84d0415fc24bee642size 14833765536123version https://git-lfs.github.com/spec/v1oid sha256:c7d5bd0cb3e429d2e11ccf040d8c82790ca6c8937b25c0c882f91a56a3ad9edfsize 14833765536123version https://git-lfs.github.com/spec/v1oid sha256:34e3b0020de4f56cdc68d1906ede8ee7948d6089eea4dc32aa753d7d56a49197size 14833765536123version https://git-lfs.github.com/spec/v1oid sha256:e2de321c02ddb663df351366d872e49fdc64a98cd18d5b58c30ab49a12f70b06size 14833765536123version https://git-lfs.github.com/spec/v1oid sha256:42f199fd8def96ccdb7f171d46b88111ccdf65ac9118d681e37f5d85db3e02a4size 13588051672.gitattributesAdded+36
LICENSEAdded+17
README.mdAdded+87
added_tokens.jsonAdded+63
chat_template.jinjaAdded+247
config.jsonAdded+284
configuration_minimax_m3_vl.pyAdded+111
figures/benchmark.jpegAdded

Large File Pointer Details
- SHA256: b4bc02e54f508f540e71a9286905477c780934bb79c0b17cd5892b6338313e57
- Pointer size: 132 Bytes
- Size of remote file: 4.42 MB
figures/efficiency_gqa_vs_msa.pngAdded

figures/logo.svgAdded
generation_config.jsonAdded+8
image_processor.pyAdded+223
merges.txtAdded
model-00001-of-00059.safetensorsAdded+3
model-00002-of-00059.safetensorsAdded+3
model-00003-of-00059.safetensorsAdded+3
model-00004-of-00059.safetensorsAdded+3
model-00005-of-00059.safetensorsAdded+3
model-00006-of-00059.safetensorsAdded+3
model-00007-of-00059.safetensorsAdded+3
model-00008-of-00059.safetensorsAdded+3
model-00009-of-00059.safetensorsAdded+3
model-00010-of-00059.safetensorsAdded+3
model-00011-of-00059.safetensorsAdded+3
model-00012-of-00059.safetensorsAdded+3
model-00013-of-00059.safetensorsAdded+3
model-00014-of-00059.safetensorsAdded+3
model-00015-of-00059.safetensorsAdded+3
model-00016-of-00059.safetensorsAdded+3
model-00017-of-00059.safetensorsAdded+3
model-00018-of-00059.safetensorsAdded+3
model-00019-of-00059.safetensorsAdded+3
model-00020-of-00059.safetensorsAdded+3
model-00021-of-00059.safetensorsAdded+3
model-00022-of-00059.safetensorsAdded+3
model-00023-of-00059.safetensorsAdded+3
model-00024-of-00059.safetensorsAdded+3
model-00025-of-00059.safetensorsAdded+3
model-00026-of-00059.safetensorsAdded+3
model-00027-of-00059.safetensorsAdded+3
model-00028-of-00059.safetensorsAdded+3
model-00029-of-00059.safetensorsAdded+3
model-00030-of-00059.safetensorsAdded+3
model-00031-of-00059.safetensorsAdded+3
model-00032-of-00059.safetensorsAdded+3
model-00033-of-00059.safetensorsAdded+3
model-00034-of-00059.safetensorsAdded+3
model-00035-of-00059.safetensorsAdded+3
model-00036-of-00059.safetensorsAdded+3
model-00037-of-00059.safetensorsAdded+3