Crystal-31B-RL NVFP4

NVFP4 (W4A4) quantization of hiwaifu-research/Crystal-31B-RL, a dense Gemma 4 31B role-play model. All credit for the model goes to its authors; this repo only changes the precision.

  • Format: NVIDIA ModelOpt 0.47 export, nvfp4_default with kv_fp8_cast (FP8 KV cache, no KV scales). Every Linear of the text stack is NVFP4; embeddings and norms stay bf16. Weight block scales chosen by MSE search (mse).
  • Text only: the vision tower is removed and the config is Gemma4ForCausalLM (text config as in Google's release). About 20 GB on disk instead of 62 GB.
  • Calibration: 256 multi-turn role-play conversations (mostly Russian, up to 16k tokens each) plus short service prompts. The calibration data is not released.
  • Chat template and generation_config.json (temperature 0.8, top-p 0.95, top-k 64) are Crystal's own.

Serving with SGLang

Tested with SGLang 0.5.20 on RTX PRO Blackwell cards. A text-only Gemma 4 checkpoint needs --language-model-only, and SGLang 0.5.20 additionally needs a two-line patch to accept Gemma4ForCausalLM with that flag (allowlist the flag and pick text_config in the text class).

python3 -m sglang.launch_server --model-path <this repo> --language-model-only \
  --context-length 32768 --kv-cache-dtype fp8_e4m3 --swa-full-tokens-ratio 0.15

Use the long role-play system prompt and sampling advice from the original model card.

License

Apache 2.0, as the original model and Gemma 4.

Downloads last month
57
Safetensors
Model size
16B params
Tensor type
BF16
Β·
U8
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for eevqd/Crystal-31B-RL-NVFP4

Quantized
(3)
this model