DEV Community

Jovan Chan
Jovan Chan

Posted on • Originally published at runaihome.com

minimax-m3 context window display error Fix 2026

This article was originally published on runaihome.com

Context Window Display Error for minimax-m3 Model

The minimax-m3 model shows an incorrect context window size in Ollama's display, indicating 512K tokens when the model actually supports 1M (1,048,576) tokens. This display error occurs because Ollama's context length configuration does not properly read the model's maximum context window from its configuration files.

Fix 1: Override Context Window via Modelfile

Create a Modelfile that explicitly sets the correct context window size.


bash
# Create a Modelfile for minimax-m3 with correct context
cat > Modelfile << 'EOF'
FROM minimax-m
Enter fullscreen mode Exit fullscreen mode

Top comments (0)