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 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 -
add docs
75b83bd -
add model weight
6b33168 -
add model weight
a257f69 -
add model weight
b5a090c -
update
f45851d
-
Update tokenizer_config.json (#1)
Verified signature- Update tokenizer_config.json (94409e8ef3426ff92b84cf8ad1c99382c770169b) Co-authored-by: Boji Shan <kamuy-shennai@users.noreply.huggingface.co>c1f6b16
-
fix
qingjun1553534
-
fix code
qingjunc0ea1e7 -
update
qingjunb50f3ee -
change text-01 -> M1
qingjun777447b
-
change files
9117507 -
change files
3a77662 -
add files
b620f7e
-
Initial Commit
qingjun4e7757c
-
initial commit
Verified signatured6b8678