Views
No views yet
| Framework | Version | Status |
|---|---|---|
| SGLang | 0.4+ | ✅ Tested |
| vLLM | 0.16+ | ✅ Tested |
| CUDA SM | 100a (B200) | ✅ Tested |
| CUDA SM | 89 (L40S / RTX 4090) | ✅ Tested (15.1) |
1python3 -m sglang.launch_server \
2 --model ahanley22/GLM-4.6-NVFP4 \
3 --trust-remote-code \
4 --tp 8 \
5 --quantization modelopt_fp4 \
6 --attention-backend flashinfer \
7 --moe-runner-backend flashinfer_cutlass \
8 --kv-cache-dtype fp8_e4m3 \
9 --mem-fraction-static 0.88 \
10 --host 0.0.0.0 \
11 --port 80001PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True \
2vllm serve ahanley22/GLM-4.6-NVFP4 \
3 --trust-remote-code \
4 --tensor-parallel-size 8 \
5 --quantization modelopt_fp4 \
6 --dtype bfloat16 \
7 --kv-cache-dtype fp8_e4m3 \
8 --max-model-len 32768 \
9 --gpu-memory-utilization 0.90 \
10 --host 0.0.0.0 \
11 --port 80001from openai import OpenAI
2
3client = OpenAI(base_url="http://localhost:8000/v1", api_key="none")
4
5response = client.chat.completions.create(
6 model="ahanley22/GLM-4.6-NVFP4",
7 messages=[{"role": "user", "content": "Hello!"}],
8 max_tokens=512,
9 temperature=1.0,
10)
11print(response.choices[0].message.content)float8_e4m3fn, shape [out_features, in_features // 16]uint8, shape [out_features, in_features // 2] (two FP4 values per byte)