Text Generation
Transformers
Safetensors
minimax_m2
vLLM
AWQ
conversational
custom_code
4-bit precision
awq
Instructions to use QuantTrio/MiniMax-M2.7-AWQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use QuantTrio/MiniMax-M2.7-AWQ with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="QuantTrio/MiniMax-M2.7-AWQ", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("QuantTrio/MiniMax-M2.7-AWQ", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("QuantTrio/MiniMax-M2.7-AWQ", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use QuantTrio/MiniMax-M2.7-AWQ with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "QuantTrio/MiniMax-M2.7-AWQ" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "QuantTrio/MiniMax-M2.7-AWQ", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/QuantTrio/MiniMax-M2.7-AWQ
- SGLang
How to use QuantTrio/MiniMax-M2.7-AWQ 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 "QuantTrio/MiniMax-M2.7-AWQ" \ --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": "QuantTrio/MiniMax-M2.7-AWQ", "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 "QuantTrio/MiniMax-M2.7-AWQ" \ --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": "QuantTrio/MiniMax-M2.7-AWQ", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use QuantTrio/MiniMax-M2.7-AWQ with Docker Model Runner:
docker model run hf.co/QuantTrio/MiniMax-M2.7-AWQ
Add files using upload-large-folder tool
Browse files- .gitattributes +2 -0
- figures/agent_teams.gif +3 -0
- model-00003-of-00044.safetensors +3 -0
- model-00004-of-00044.safetensors +3 -0
- model-00005-of-00044.safetensors +3 -0
- model-00008-of-00044.safetensors +3 -0
- model-00009-of-00044.safetensors +3 -0
- model-00011-of-00044.safetensors +3 -0
- model-00012-of-00044.safetensors +3 -0
- model-00015-of-00044.safetensors +3 -0
- model-00017-of-00044.safetensors +3 -0
- model-00019-of-00044.safetensors +3 -0
- model-00020-of-00044.safetensors +3 -0
- model-00023-of-00044.safetensors +3 -0
- model-00024-of-00044.safetensors +3 -0
- model-00025-of-00044.safetensors +3 -0
- model-00026-of-00044.safetensors +3 -0
- model-00030-of-00044.safetensors +3 -0
- model-00031-of-00044.safetensors +3 -0
- model-00040-of-00044.safetensors +3 -0
- model.safetensors.index.json +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
model.safetensors.index.json filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
figures/agent_teams.gif filter=lfs diff=lfs merge=lfs -text
|
figures/agent_teams.gif
ADDED
|
Git LFS Details
|
model-00003-of-00044.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:53f8334af28b05452b939f6487eaa340499d8086825c3776d70227df7b015fc1
|
| 3 |
+
size 2999518536
|
model-00004-of-00044.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ad1b9b4107cfb11ffd6f808783708d27a5262a99667f2f048ba55d6f780fa35f
|
| 3 |
+
size 2999138776
|
model-00005-of-00044.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cbd5052ee4d6dc20bf8d6ce89de1ce46eba21ae7496a32673163a6115b27abee
|
| 3 |
+
size 2999675136
|
model-00008-of-00044.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:afef2e580e974609d2bc8a607ef7a2c7bbd6047e233418528dbe33a151169d92
|
| 3 |
+
size 2999138592
|
model-00009-of-00044.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f4af5f8ec7b1b25451d33754a0547b78c35392e832dc78077e0747376a7909d7
|
| 3 |
+
size 2999676104
|
model-00011-of-00044.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dc37f1ddbbc1fdc7cf78aa4a406322118d34a38060d15caae5a15718c3eb343d
|
| 3 |
+
size 2999678880
|
model-00012-of-00044.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:736bd5c631b14a204f1bdb0f03739673c57d277d21c6f69a03780739fd2b59bb
|
| 3 |
+
size 2999141976
|
model-00015-of-00044.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b05e4b0ba5cc7e4ba7b43d519a79f203d56d4412f938970aa028b8dcf692fa46
|
| 3 |
+
size 2999679048
|
model-00017-of-00044.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:86e7e4c95fb46f83d8d627ba1fd7d5cdd778f13fb246d9371131da5e81bd9a52
|
| 3 |
+
size 3000034384
|
model-00019-of-00044.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:91c8fafd6d8bb02027dbe70afb01953df6432e0f4ea442a3f624144d8bc9fc21
|
| 3 |
+
size 3000457664
|
model-00020-of-00044.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f0313a81ec18171ad4c84a130af393cb7971961b3a2cc073b36806d828011d5b
|
| 3 |
+
size 2999752272
|
model-00023-of-00044.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:06ce26e69155071d3908e2f423d5811e0ef8ff89143c7156ebb815b78fbedf8e
|
| 3 |
+
size 2999142536
|
model-00024-of-00044.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:527a9112ff1b68f15e2fa79f2964556281a970f430d1f4674d67d0c1640a0480
|
| 3 |
+
size 2999678408
|
model-00025-of-00044.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:25d084c44944f0824f2c614036c5f76622aacfacbe9fc530d9d5b238f8c3b44d
|
| 3 |
+
size 2999142536
|
model-00026-of-00044.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e90c3c3b16363944dc7a6c093b704b7c70cb0a4731943759fd86c622d6ab9a77
|
| 3 |
+
size 2999678408
|
model-00030-of-00044.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bc2bd0d13b29c9e814d304575de69a88f79d3af69826200ead442d9307a1d6a2
|
| 3 |
+
size 2999678544
|
model-00031-of-00044.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:67974573bcb2e3c0f2e58a6b1bd642a7a42d0569a6aa8ae0e359762228eeecdb
|
| 3 |
+
size 2999142312
|
model-00040-of-00044.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:780b677af835af7f9789e92cf91c70e0602349495f8630599c52c5fd98aef95e
|
| 3 |
+
size 2999679000
|
model.safetensors.index.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9887afdebfbbad0dcf5d2bf809a02f6c2df7cdb7205fde02e7f6ff8b22d0bf5e
|
| 3 |
+
size 13866622
|