Image-Text-to-Text
Transformers
Safetensors
minimax_m3_vl
multimodal
Mixture of Experts
agent
coding
video
conversational
custom_code
4-bit precision
auto-round
Instructions to use bullerwins/MiniMax-M3-4bit-W4A16-v0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bullerwins/MiniMax-M3-4bit-W4A16-v0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="bullerwins/MiniMax-M3-4bit-W4A16-v0", 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("bullerwins/MiniMax-M3-4bit-W4A16-v0", trust_remote_code=True) model = AutoModelForMultimodalLM.from_pretrained("bullerwins/MiniMax-M3-4bit-W4A16-v0", 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use bullerwins/MiniMax-M3-4bit-W4A16-v0 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bullerwins/MiniMax-M3-4bit-W4A16-v0" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bullerwins/MiniMax-M3-4bit-W4A16-v0", "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/bullerwins/MiniMax-M3-4bit-W4A16-v0
- SGLang
How to use bullerwins/MiniMax-M3-4bit-W4A16-v0 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 "bullerwins/MiniMax-M3-4bit-W4A16-v0" \ --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": "bullerwins/MiniMax-M3-4bit-W4A16-v0", "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 "bullerwins/MiniMax-M3-4bit-W4A16-v0" \ --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": "bullerwins/MiniMax-M3-4bit-W4A16-v0", "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 bullerwins/MiniMax-M3-4bit-W4A16-v0 with Docker Model Runner:
docker model run hf.co/bullerwins/MiniMax-M3-4bit-W4A16-v0
Add files using upload-large-folder tool
Browse files- figures/benchmark.jpeg +3 -0
- model-00001-of-00059.safetensors +3 -0
- model-00006-of-00059.safetensors +3 -0
- model-00007-of-00059.safetensors +3 -0
- model-00011-of-00059.safetensors +3 -0
- model-00016-of-00059.safetensors +3 -0
- model-00017-of-00059.safetensors +3 -0
- model-00022-of-00059.safetensors +3 -0
- model-00023-of-00059.safetensors +3 -0
- model-00024-of-00059.safetensors +3 -0
- model-00025-of-00059.safetensors +3 -0
- model-00028-of-00059.safetensors +3 -0
- model-00029-of-00059.safetensors +3 -0
- model-00032-of-00059.safetensors +3 -0
- model-00033-of-00059.safetensors +3 -0
- model-00034-of-00059.safetensors +3 -0
- model-00035-of-00059.safetensors +3 -0
- model-00038-of-00059.safetensors +3 -0
- model-00039-of-00059.safetensors +3 -0
- model-00042-of-00059.safetensors +3 -0
- model-00043-of-00059.safetensors +3 -0
- model-00044-of-00059.safetensors +3 -0
- model-00045-of-00059.safetensors +3 -0
- model-00048-of-00059.safetensors +3 -0
- model-00049-of-00059.safetensors +3 -0
- model-00052-of-00059.safetensors +3 -0
- model-00053-of-00059.safetensors +3 -0
- model-00054-of-00059.safetensors +3 -0
- model-00055-of-00059.safetensors +3 -0
- model-00058-of-00059.safetensors +3 -0
- model-00059-of-00059.safetensors +3 -0
figures/benchmark.jpeg
ADDED
|
Git LFS Details
|
model-00001-of-00059.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1242dd36e6f4afba08d4b99e529d86a193ea9cbeb9478f6b45a8684385938b43
|
| 3 |
+
size 5090049968
|
model-00006-of-00059.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1bf09fa0769fe2877314129e33937bd78d0292e3f5f9dcbc14fa331dc0ecc55f
|
| 3 |
+
size 4179411720
|
model-00007-of-00059.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6e1d4e60bb7c4347cd20c8a79258eb48600f6cf43cec18e1d00df0458a12a036
|
| 3 |
+
size 4179411720
|
model-00011-of-00059.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a77d74c00c3954446854b32c2903f2556cf3fb1d081d412524f14abcc057666a
|
| 3 |
+
size 4179412912
|
model-00016-of-00059.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0648d1c64fd58d3836de36da8e2b60dc0ce2707a04dbe856d015baaaf680b388
|
| 3 |
+
size 4179412912
|
model-00017-of-00059.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5804f385b48a141bc1d43d5b5077b84f1c95769808f37cacba334bc97c024be9
|
| 3 |
+
size 4179412912
|
model-00022-of-00059.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a17fcea9878ba746e770d686a3df987ffe04b3190bc6f841c5551cb3ee1b1896
|
| 3 |
+
size 4179412912
|
model-00023-of-00059.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9393bb351d575734bdc3936513b95a7dae92eb5e4c5e88d90236e4f4cd7a856d
|
| 3 |
+
size 4179412912
|
model-00024-of-00059.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:888bd828811be7004498dfe47371f9db653a2acc3146933b7d50158280180e77
|
| 3 |
+
size 4179412912
|
model-00025-of-00059.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:58d248d26a34dda7183d710ff2f30f23d6eaee8db5f1110b9482c1c98f65074a
|
| 3 |
+
size 1365015624
|
model-00028-of-00059.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a4ab1c0f8170a9ad9ee78c66f2b8211fe71cfb37f8e722833ff928a3dcc8825a
|
| 3 |
+
size 3855805728
|
model-00029-of-00059.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ba46f0aeeac111ef9288cd8bf83c885be5fe2186fac39113cac6262c204d3756
|
| 3 |
+
size 3855805728
|
model-00032-of-00059.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0c041d4f283fdba2ef03ae9eab5d3f0e762ad705dff9d920cec81fbf59b88bc0
|
| 3 |
+
size 3855805728
|
model-00033-of-00059.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:142308ce600d59b4b9d24bab113bf06a2a24227c132e903a8bf0fcc711d0b4b4
|
| 3 |
+
size 3855805728
|
model-00034-of-00059.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:20c0bbdcb36bb173caf73f8dc34b84002e154796caecd8caf0efed8e6e24eab7
|
| 3 |
+
size 3855805728
|
model-00035-of-00059.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8948c3ad5c1460057618d4ac743b46c9af5602ee5350b8bcae4c7ec3d7c143fa
|
| 3 |
+
size 3855805728
|
model-00038-of-00059.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:22dd1d19c34c9f349fc3cd5e567f99f907e9f82391bf38f3f4c6220f5f5f62cd
|
| 3 |
+
size 3532198552
|
model-00039-of-00059.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ae52dc1ce733981838753a523613b3a34cd8fb43c1c4765efeb35f2022da6288
|
| 3 |
+
size 3532198552
|
model-00042-of-00059.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0d3098d2ed04a3f8dae57d859e188d52acc700c59827e7a00647fecc5789c195
|
| 3 |
+
size 3532198552
|
model-00043-of-00059.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a78ea9495362375eb6247d375aca057c98434624bd74d0a0b48c3dfb7272649d
|
| 3 |
+
size 3532198552
|
model-00044-of-00059.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:490412701e5962557ce86681f10e0eeacec2103458a94f83e3fe2ef31bd7ea6d
|
| 3 |
+
size 3532198552
|
model-00045-of-00059.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b0c7d6588fdb9fc2adb7f2d2eabec614ed3be436dde9b3885b45d5494078b61d
|
| 3 |
+
size 3532198552
|
model-00048-of-00059.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4b71df72ff22f500e3a2fed11af76fb6dc6ad42ca376f5e3d7dd62e51092142e
|
| 3 |
+
size 3532198552
|
model-00049-of-00059.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b56f8ca0a2b8a2624cc181cec67063cc190dce935fe2ded2994e97bc8c087ce9
|
| 3 |
+
size 3532198552
|
model-00052-of-00059.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:960e1938d3c97275bdc208d373e4191aa6232d5222c5a62828f96b10a07c8521
|
| 3 |
+
size 3532198552
|
model-00053-of-00059.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:664b7da8b35e4ad08daa92da03acfc08372b8cd66b4d57e6715f3985a16cc988
|
| 3 |
+
size 3532198552
|
model-00054-of-00059.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2a4ccd4af4ae88da7fd0dea5957ab7de091b4fadd57e2e07d6c4c870d7661402
|
| 3 |
+
size 3532198552
|
model-00055-of-00059.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b7c3499b3dd525c1c5aa1333fde9e9fcfeedeb568cd7cf986a42dcca455ccecd
|
| 3 |
+
size 3532198552
|
model-00058-of-00059.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:410c036e5ec4872cd5b2f1b221029438a418f09e5ea4a006830aee272221f467
|
| 3 |
+
size 3532198552
|
model-00059-of-00059.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7f8afbdb9bb4f419a08d7680ab41dd4ec290b85068dfdd274e763312e66aeecf
|
| 3 |
+
size 5121271720
|