Multi-GPU
Vast.ai runbook · model rank #7

Stand up MiniMax M3
on Vast.ai.

Fits one high-memory node, but needs tensor/expert parallel configuration. Cost-sensitive dedicated containers when you can evaluate marketplace hosts yourself.

Multi-GPU: Fits one high-memory node, but needs tensor/expert parallel configuration.

Vast.ai setup, in the order that matters

A Docker template attached to a matching GPU marketplace offer. Use the provider console for infrastructure and the pinned runtime block for the model server.

  1. 01

    Create a private template

    Use the sglang container in the runtime block below, expose port 8000, and keep HF_TOKEN in the template's secret environment.

  2. 02

    Filter the marketplace

    Find an offer with 8x H100/A100 80GB-class GPUs, at least 600GB of disk, reliable host scores, and enough internet bandwidth for a ~440GB checkpoint.

  3. 03

    Launch and inspect logs

    Launch from the private template, confirm every GPU is visible, and watch the model download and engine initialization before sending traffic.

  4. 04

    Expose only what you need

    Protect the OpenAI-compatible endpoint with your own gateway or tunnel. Stop or destroy the instance when the test is over.

Runtime seedSGLang · latest
docker run --rm --gpus all --ipc=host \
  -p 8000:8000 \
  -e HUGGING_FACE_HUB_TOKEN="$HF_TOKEN" \
  -v "$PWD/.hf-cache:/root/.cache/huggingface" \
  --entrypoint python3 lmsysorg/sglang:latest \
  -m sglang.launch_server \
  --model-path MiniMaxAI/Minimax-M3 \
  --tp-size 8 \
  --context-length 32768 \
  --trust-remote-code \
  --served-model-name minimax-m3

This is a reproducible starting block. Cluster paths still need the model author's distributed recipe and the provider's orchestration layer.

Smoke testOpenAI-compatible request
curl http://127.0.0.1:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "minimax-m3",
    "messages": [{"role": "user", "content": "Reply with: deployment healthy"}],
    "max_tokens": 32
  }'

Run this only after logs show the model loaded. A successful HTTP response is not a latency or quality benchmark.

Quota, license, and storage

  • Confirm 8x H100/A100 80GB-class GPUs is actually available in the selected region.
  • Read the MiniMax Community (commercial notice / authorization conditions) terms and accept any gated-model conditions.
  • Budget at least 600GB for weights, cache, and container layers.
  • Keep HF_TOKEN in the provider secret store—not in scripts or templates.

Memory, format, and shutdown

  • Record idle/free VRAM after the model loads and after a representative prompt.
  • Validate the official chat template, reasoning parser, and tool-call parser.
  • Add authentication and TLS in front of port 8000.
  • Verify the provider's stop/delete action actually ends compute billing.

Hand this runbook to Claude Code or Codex

Open a terminal in the repository where you want the deployment files, start claude or codex, then paste this prompt. It asks the agent to verify sources and stop before it creates billable infrastructure.

Deployment prompt
Deploy MiniMax M3 (MiniMaxAI/Minimax-M3) on Vast.ai. Use this guide as the starting context: https://www.getflops.ai/models/minimax-m3/vast-ai. Use a planning floor of 8x 80GB GPUs, 600GB storage, sglang latest, and an initial context limit of 32768 tokens. Open every linked primary source and flag any mismatch instead of guessing. Create a deployment folder containing README.md, .env.example with no secrets, a pinned start script or infrastructure manifest, and smoke-test.sh. Make the endpoint OpenAI-compatible where the runtime supports it. Run local/static validation, estimate the billable resources, and stop before provisioning paid infrastructure until I approve.
Guardrails included No secrets in files · verify primary docs · approval before spend

The two sources to check first

Checked 2026-07-27. This page separates sourced facts from the planning baseline; verify current runtime support and capacity before spending.

Compare MiniMax M3 elsewhere