This is a speedrun, so it’s not super optimized, but it works!
Strategy: Start with a small Llama model to make sure your environment is solid, then move to the heavyweight: MiniMax-2.5.
Credits: All credit to the unsloth.ai team for the optimized model quants: MiniMax-2.5: How to Run Guide | Unsloth Documentation
OK , First Before downloading 100GB+, start small. This verifies your Blackwell GB10 drivers, CUDA paths, and the hf CLI. Build time is only 2–3 minutes with Llama 3.2-1B Instruct.
Paste this in your Spark terminal:
#Bash
cat << ‘EOF’ > spark_test_small.sh && chmod +x spark_test_small.sh
#!/bin/bash
DGX Spark Small Model Smoke Test - Llama-3.2-1B (Standalone CLI Version)
1. Install the standalone ‘hf’ binary
if ! command -v hf &> /dev/null; then
echo “Installing Hugging Face standalone CLI…”
curl -LsSf https://hf.co/cli/install.sh | bash
export PATH=“$HOME/.local/bin:$PATH”
fi
2. Download model
mkdir -p ~/models/small-tests
echo “Downloading model…”
hf download unsloth/Llama-3.2-1B-Instruct-GGUF
–local-dir ~/models/small-tests
–include “Q8_0.gguf”
3. Verification Check
if [ ! -f ~/models/small-tests/Llama-3.2-1B-Instruct-Q8_0.gguf ]; then
echo “Model file not found. Note: Llama 3.2 is ‘gated’.”
echo “Run ‘hf login’ first with your Hugging Face token.”
exit 1
fi
4. Run the Blackwell-optimized test
echo “Loading Llama-3.2-1B on Blackwell GB10…”
~/llama.cpp/build/bin/llama-cli
-m ~/models/small-tests/Llama-3.2-1B-Instruct-Q8_0.gguf
-ngl 999
–flash-attn on
-p “Write a short haiku about a fast computer named Spark.”
EOF
./spark_test_small.sh
Step 2: yolo TIME (MiniMax-2.5 Deployment)
MiniMax-2.5 is a 230B parameter beast. The UD-Q3_K_XL quant is 101GB, split into 4 shards.
The Main Event: (Make sure to add your HF token if its asks !)
#Bash
cat << ‘EOF’ > spark_minimax.sh && chmod +x spark_minimax.sh
#!/bin/bash
DGX Spark - MiniMax-2.5 (101GB Deployment)
1. Path and Token Setup
export PATH=“$HOME/.local/bin:$PATH”
export HF_HUB_ENABLE_HF_TRANSFER=1
ENTER YOUR TOKEN ( Hugging Face – The AI community building the future. )
HF_TOKEN=“your_token_here”
2. Authenticate
if [ “$HF_TOKEN” != “your_token_here” ]; then
hf login --token “$HF_TOKEN”
fi
3. Download the Model
mkdir -p ~/models/MiniMax-2.5-GGUF
hf download unsloth/MiniMax-M2.5-GGUF
–local-dir ~/models/MiniMax-2.5-GGUF
–include “UD-Q3_K_XL”
4. Clear memory (Ensure Ollama is fully stopped , i was running it in parallel for somethign else )
sudo systemctl stop ollama.service 2>/dev/null
5. Run with Blackwell GB10 Optimizations
Points to the first of 4 shards; llama.cpp links the rest automatically.
~/llama.cpp/build/bin/llama-cli
-m ~/models/MiniMax-2.5-GGUF/UD-Q3_K_XL/MiniMax-M2.5-UD-Q3_K_XL-00001-of-00004.gguf
–no-mmap
–jinja
-ngl 999
–flash-attn on
-t 20
-c 16384
-p “Explain the Mixture of Experts (MoE) architecture like I’m five.”
EOF
./spark_minimax.sh


