Instructions to use MiniMaxAI/MiniMax-M1-40k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MiniMaxAI/MiniMax-M1-40k with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MiniMaxAI/MiniMax-M1-40k", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("MiniMaxAI/MiniMax-M1-40k", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MiniMaxAI/MiniMax-M1-40k with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MiniMaxAI/MiniMax-M1-40k" # 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-M1-40k", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/MiniMaxAI/MiniMax-M1-40k
- SGLang
How to use MiniMaxAI/MiniMax-M1-40k 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-M1-40k" \ --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-M1-40k", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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-M1-40k" \ --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-M1-40k", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use MiniMaxAI/MiniMax-M1-40k with Docker Model Runner:
docker model run hf.co/MiniMaxAI/MiniMax-M1-40k
Commit History
-
Update docs/function_call_guide_cn.md
Verified signature2d1d1c2 -
Update docs/function_call_guide.md
Verified signature9461f6b
-
Update docs/vllm_deployment_guide_cn.md
Verified signature351fa9f -
Update docs/vllm_deployment_guide.md
Verified signaturef866115
-
update README
6ed96c8
-
Update docs/function_call_guide_cn.md (#7)
Verified signature- Update docs/function_call_guide_cn.md (5c218ff08e68db962142794f3d9b30a192de72fa) Co-authored-by: Boji Shan <kamuy-shennai@users.noreply.huggingface.co>a84b565 -
Update tokenizer_config.json (#6)
Verified signature- Update tokenizer_config.json (dcfde563a893363b5465ccd7b8a846aeb4381fc3) Co-authored-by: Boji Shan <kamuy-shennai@users.noreply.huggingface.co>ea60f8b
-
Updated library_name and tags (#4)
Verified signature- Updated library_name and tags (d29fedd31f97a22dc843608c46aeff66edd33ab5) Co-authored-by: Sergio Paniego <sergiopaniego@users.noreply.huggingface.co>5ea45df
-
add usage recommendation
a899c48
-
Update docs/transformers_deployment_guide_cn.md
Verified signature82f49cc -
Update docs/transformers_deployment_guide.md
Verified signature3df927f -
update arxiv paper link
32c7cd7
-
update README
5aa771a -
update vllm guide
bb49ad0 -
feat: update README
f6a6fd2 -
Update README.md
Verified signature11bb21e -
Update README.md
Verified signaturee283307 -
update README.md
5eeb47c -
Upload MiniMax_M1_tech_report.pdf
Verified signaturebb90a6b -
Update README.md
Verified signature0bb2c85 -
Update README.md
Verified signaturea9c823a -
Update README.md
Verified signature7248a14 -
Update README.md
Verified signature32c3b05 -
Update README.md
Verified signature363f471 -
Update README.md
Verified signature1485b2d -
Update README.md
Verified signature2d768f9 -
update docs and README.md
759c8f4 -
update README.md
3e13426 -
update TextBench
c7a3b80 -
Update README.md
Verified signatureb9f66f2 -
update evaluation table
aab6551 -
add evaluation table
c876128 -
update README and vllm guide
b2a1137 -
Update vllm_deployment_guide_cn.md
Verified signature0bb6dac -
Update vllm_deployment_guide.md
Verified signaturef6f543f
-
update vllm guides
c28f1af -
update function call guide
13eb978 -
fix docs
3b20a9c -
fix code
5fe30d5 -
Merge branch 'main' of https://huggingface.co/MiniMaxAI/MiniMax-M1-40k into main
b1645e4 -
upload LICENSE
9b89b84 -
Merge branch 'main' of https://huggingface.co/MiniMaxAI/MiniMax-M1-40k into main
7014b9f -
Update function_call_guide_cn.md
Verified signature17002c5 -
Update function_call_guide.md
Verified signaturea7365d6 -
Delete LICENSE-CODE
Verified signaturee02c7f7 -
fix code
f0dd085 -
Delete LICENSE-MODEL
Verified signature0b21985 -
fix docs
9385f59 -
fix docs
fdf6c12 -
fix docs
eb3e70f