Instructions to use stuchapin/Maxwell-V1-Flash-W4A16-AutoRound with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use stuchapin/Maxwell-V1-Flash-W4A16-AutoRound with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="stuchapin/Maxwell-V1-Flash-W4A16-AutoRound", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("stuchapin/Maxwell-V1-Flash-W4A16-AutoRound", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use stuchapin/Maxwell-V1-Flash-W4A16-AutoRound with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "stuchapin/Maxwell-V1-Flash-W4A16-AutoRound" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "stuchapin/Maxwell-V1-Flash-W4A16-AutoRound", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/stuchapin/Maxwell-V1-Flash-W4A16-AutoRound
- SGLang
How to use stuchapin/Maxwell-V1-Flash-W4A16-AutoRound 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 "stuchapin/Maxwell-V1-Flash-W4A16-AutoRound" \ --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": "stuchapin/Maxwell-V1-Flash-W4A16-AutoRound", "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 "stuchapin/Maxwell-V1-Flash-W4A16-AutoRound" \ --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": "stuchapin/Maxwell-V1-Flash-W4A16-AutoRound", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use stuchapin/Maxwell-V1-Flash-W4A16-AutoRound with Docker Model Runner:
docker model run hf.co/stuchapin/Maxwell-V1-Flash-W4A16-AutoRound
Maxwell-V1-Flash W4A16 (AutoRound)
4-bit weight / 16-bit activation (W4A16) quantization of maxwell-model/Maxwell-V1-Flash (35B total / 3B active parameters, MoE with block-sparse attention), produced with Intel AutoRound v0.16.1.
- Quantized layers: 32,571 / 33,574. Kept at higher precision:
lm_head, the block-sparse attention indexers, routing gates, and MTP draft layers. - Weight footprint: 20.24 GiB loaded (5 safetensors shards).
- License: Apache 2.0 (inherited from the base model).
Results
| Check | Result |
|---|---|
| Canary suite (7 functional prompts) | 7/7 passed |
| Weight VRAM (loaded) | 20.24 GiB |
| WikiText-2 PPL vs BF16 baseline | pending |
| Fleet benchmark (30 tasks, gate 0.9) | pending |
| vLLM serve check | pending (see serving notes) |
Scores marked pending have not been measured at publication time; this section will be updated as runs complete.
Usage (vLLM)
Maxwell requires the Maxwell team's vLLM fork. As of 2026-11-17 it is distributed only as a container:
docker run --rm --init \
--name vllm-maxwell \
--gpus all \
--shm-size 8g \
--network host \
-v "$PWD":/models/Maxwell-V1-Flash-W4A16:ro \
--entrypoint vllm \
maxwellmodel/vllm-openai:v0.30.0 \
serve /models/Maxwell-V1-Flash-W4A16 \
--trust-remote-code \
--block-size 128 \
--served-model-name Maxwell-V1.0-Flash \
--port 8000 \
--tensor-parallel-size 1
The repo ships modeling_maxwell_moe.py and configuration_maxwell_moe.py
(remote code, same as the base model); trust_remote_code is required.
Serving notes (known issues found during testing)
- Loader patch needed for AutoRound exports.
maxwellmodel/vllm-openai:v0.30.0has a bug loading AutoRound-packed checkpoints: when q/k/v are packed as separate tensors, its fused-qkv loader applies row-unit shard offsets to packedqzerostensors (which store 8 values per int), causingIndexErrorat the first non-zero shard. Fix: invllm/models/maxwell_v1_flash/common/linear.py,MaxwellV1FlashQKVParallelLinear.weight_loader, scaleshard_offsetandshard_sizeby the pack factor whenparam.data.shape[output_dim] * 8 == sum(self.output_sizes). - GPU support. The container's sparse-attention prefill path documents
SM90/SM100/SM103 for its fast kernels (Hopper/Blackwell). On consumer
Ampere (RTX 3090, SM86) we hit
CUDA error: no kernel image is availableduring the profiling run; this build has not been verified end-to-end on SM86.VLLM_ENABLE_CUDA_COMPATIBILITY=1does not help (it targets driver version, not GPU architecture).
Quantization recipe
- Tool: AutoRound 0.16.1 (
autoround), W4A16, symmetric (sym: true), group size 128, 100 tuning iterations, packingauto_round:auto_gptq(full recipe embedded inconfig.json→quantization_config). - Calibration: quant-lab standard corpus; unquantized:
lm_head, indexers, gates, MTP layers. - Peak VRAM during quantization: 17.86 GiB (fits a 24 GB RTX 3090).
Acknowledgements
Base model by the Maxwell team (maxwell-model, Apache 2.0). Quantization with Intel AutoRound.
- Downloads last month
- 182
Model tree for stuchapin/Maxwell-V1-Flash-W4A16-AutoRound
Base model
maxwell-model/Maxwell-V1-Flash