Goal
Deploy Qwen3.8-27B-FP8 model as a new LiftWing inference service, following the same setup as the current llm-qwen36-27b isvc.
Background
Qwen3.8-27B is a 27B multimodal (vision and language) model built on the Qwen3.5 architecture (Qwen3_5ForConditionalGeneration, 64 layers, 16 full attention plus 48 linear attention, MTP head, FP8 block quantization). It is architecturally similar to the Qwen3.6-27B-FP8 model already running on production.
Compatibility verification
For config comparison between Qwen3.6-27B-FP8 and Qwen3.8-27B-FP8 I ran the following:
s3cmd -c /etc/s3cmd/cfg.d/ml-team.cfg get --force s3://wmf-ml-models/llm/Qwen3.6-27B-FP8/config.json qwen36-raw.json s3cmd -c /etc/s3cmd/cfg.d/ml-team.cfg get --force s3://wmf-ml-models/llm/Qwen3.8-27B-FP8/config.json qwen38-raw.json python3 -m json.tool qwen36-raw.json > qwen36.json python3 -m json.tool qwen38-raw.json > qwen38.json diff qwen36.json qwen38.json < "transformers_version": "4.57.1", --- > "transformers_version": "5.8.0.dev0",
Result: configs are identical except the transformers_version metadata field (4.57.1 vs 5.8.0.dev0). All architectural fields match (attn_output_gate, full_attention_interval, layer layout, quantization, MTP, vision config). The existing image seems to load the exact config structure which is on production, so no image change is required.
Tokenizer comparison:
s3cmd -c /etc/s3cmd/cfg.d/ml-team.cfg get --force s3://wmf-ml-models/llm/Qwen3.6-27B-FP8/tokenizer_config.json t36.json s3cmd -c /etc/s3cmd/cfg.d/ml-team.cfg get --force s3://wmf-ml-models/llm/Qwen3.8-27B-FP8/tokenizer_config.json t38.json diff <(python3 -m json.tool t36.json) <(python3 -m json.tool t38.json)
Results of the diff can be found in this paste.
Identical except of the chat template. Notable changes in 3.8:
- New reasoning_effort template kwarg with values xhigh (default), medium, low. Invalid values raise a template exception.
- Thinking content in past assistant turns is now preserved by default (preserve_thinking defaults to true). This increases prompt token usage in multi turn conversations.
- The template reads reasoning only from message.reasoning_content. A reasoning parser (qwen3) should be verified/enabled in the model server.
Placement
The model needs a full MI300X partition (about 30 GB weights plus KV cache). ml-serve1013/14/15 partitions are 24 GB, we can use multiple partitions with Tensor parallelism. The ml-serve1012 has 8 full partitions, 4 in use by gpt-oss-safeguard-20b, cope-b-a4b and llm-qwen36-27b as it can be seen in the current //values-ml-serve-eqiad.yaml// file.
Since Qwen3.8-27B-FP8 is similar with llm-qwen36-27b, it will probably replace it, if it works, so we can follow the same isvc schema as we used for llm-qwen36-27b (see values-ml-serve-eqiad.yaml).
Steps for deployment
- Downloaded the model on stat1010 from hugging face
- Uploaded to S3: s3://wmf-ml-models/llm/Qwen3.8-27B-FP8/
- Verified compatibility with the current qwen36 image (vllm 0.22.1, ROCm 7.2.0, PyTorch 2.10.0)
- Smoke tests on experimental
