Page MenuHomePhabricator

Host Qwen3.8-27B-FP8 on LiftWing
Closed, ResolvedPublic

Description

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:

  1. New reasoning_effort template kwarg with values xhigh (default), medium, low. Invalid values raise a template exception.
  2. 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.
  3. 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

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change #1333204 had a related patch set uploaded (by Gkyziridis; author: Gkyziridis):

[operations/deployment-charts@master] ml-services: Initial deployment of Qwen3.8-27B-FP8 model on experimental ns.

https://gerrit.wikimedia.org/r/1333204

Change #1333204 merged by jenkins-bot:

[operations/deployment-charts@master] ml-services: Initial deployment of Qwen3.8-27B-FP8 model on experimental ns.

https://gerrit.wikimedia.org/r/1333204

Update

The Qwen3.8-27B-FP8 model is deployed under experimental namespace in ml-serve-eqiad.
The isvc we used was the same as in the llm-qwen36-27b.
Some of the initial smoke tests can be found in this paste

1curl -s -X POST \
2 "https://inference.svc.eqiad.wmnet:30443/v1/models/llm-qwen38-27b:predict" \
3 -H "Host: llm-qwen38-27b.experimental.wikimedia.org" \
4 -H "Content-Type: application/json" \
5 -d '{"prompt": "What is the capital of France?"}' | jq
6
7{
8 "model_name": "llm-qwen38-27b",
9 "response": "The user is asking a simple factual question: What is the capital of France? The answer is Paris.\n</think>\n\nThe capital of France is **Paris**.",
10 "prompt_tokens": 17,
11 "completion_tokens": 33
12}
13
14=================================
15
16~$ curl -s -X POST \
17 "https://inference.svc.eqiad.wmnet:30443/openai/v1/chat/completions" \
18 -H "Host: llm-qwen38-27b.experimental.wikimedia.org" \
19 -H "Content-Type: application/json" \
20 -d '{"model":"llm-qwen38-27b","messages":[{"role":"user","content":"What is the capital of France?"}],"max_tokens":1000}' \
21 | jq '.choices[0].message'
22
23{
24 "role": "assistant",
25 "content": "The capital of France is **Paris**.\n\nIt is also the largest city in the country and serves as its political, economic, and cultural center.",
26 "refusal": null,
27 "annotations": null,
28 "audio": null,
29 "function_call": null,
30 "tool_calls": [],
31 "reasoning": null
32}
33
34======================
35
36# Token accounting / harder question:
37~$ curl -s -X POST \
38 "https://inference.svc.eqiad.wmnet:30443/openai/v1/chat/completions" \
39 -H "Host: llm-qwen38-27b.experimental.wikimedia.org" \
40 -H "Content-Type: application/json" \
41 -d '{"model":"llm-qwen38-27b","messages":[{"role":"user","content":"A farmer has chickens and rabbits, 35 heads and 94 legs. How many of each?"}],"max_tokens":2000}' \
42 | jq '.choices[0].message'
43
44{
45 "role": "assistant",
46 "content": "To solve this problem, we can use a system of linear equations.\n\n### Step 1: Define Variables\nLet $c$ be the number of chickens.\nLet $r$ be the number of rabbits.\n\n### Step 2: Set Up Equations\nWe know two facts:\n1. **Heads:** Each animal has 1 head.\n $$c + r = 35$$\n2. **Legs:** Chickens have 2 legs, and rabbits have 4 legs.\n $$2c + 4r = 94$$\n\n### Step 3: Solve the System of Equations\n\n**Method: Substitution**\n\nFrom the first equation, we can express $c$ in terms of $r$:\n$$c = 35 - r$$\n\nSubstitute this expression for $c$ into the second equation:\n$$2(35 - r) + 4r = 94$$\n\nExpand and simplify:\n$$70 - 2r + 4r = 94$$\n$$70 + 2r = 94$$\n\nSubtract 70 from both sides:\n$$2r = 24$$\n\nDivide by 2:\n$$r = 12$$\n\nSo, there are **12 rabbits**.\n\nNow, substitute $r = 12$ back into the first equation to find $c$:\n$$c + 12 = 35$$\n$$c = 35 - 12$$\n$$c = 23$$\n\nSo, there are **23 chickens**.\n\n### Step 4: Verification\n* **Heads:** $23 \\text{ (chickens)} + 12 \\text{ (rabbits)} = 35$ heads. (Correct)\n* **Legs:** $(23 \\times 2) + (12 \\times 4) = 46 + 48 = 94$ legs. (Correct)\n\n### Final Conclusion\nThe farmer has **23 chickens** and **12 rabbits**.",
47 "refusal": null,
48 "annotations": null,
49 "audio": null,
50 "function_call": null,
51 "tool_calls": [],
52 "reasoning": null
53}
54
55======================
56
57# Tool call (qwen3_coder parser):
58~$ curl -s -X POST \
59 "https://inference.svc.eqiad.wmnet:30443/openai/v1/chat/completions" \
60 -H "Host: llm-qwen38-27b.experimental.wikimedia.org" \
61 -H "Content-Type: application/json" \
62 -d '{"model":"llm-qwen38-27b","messages":[{"role":"user","content":"What is the weather in Athens right now?"}],"tools":[{"type":"function","function":{"name":"get_weather","description":"Get current weather for a city","parameters":{"type":"object","properties":{"city":{"type":"string"}},"required":["city"]}}}],"max_tokens":1000}' \
63 | jq '.choices[0].message.tool_calls'
64
65[
66 {
67 "id": "chatcmpl-tool-bd4c8329f512c0a0",
68 "type": "function",
69 "function": {
70 "name": "get_weather",
71 "arguments": "{\"city\": \"Athens\"}"
72 }
73 }
74]
75
76==========================================
77
78~$ curl -s -N -X POST \
79 "https://inference.svc.eqiad.wmnet:30443/openai/v1/chat/completions" \
80 -H "Host: llm-qwen38-27b.experimental.wikimedia.org" \
81 -H "Content-Type: application/json" \
82 -d '{"model":"llm-qwen38-27b","messages":[{"role":"user","content":"Count from 1 to 10 slowly."}],"max_tokens":200,"stream":true}'
83
84data: {"id":"88ac35ac33c62d9a","object":"chat.completion.chunk","created":1788435669,"model":"llm-qwen38-27b","choices":[{"index":0,"delta":{"role":"assistant","content":"1","reasoning":null,"tool_calls":[]},"logprobs":null,"finish_reason":null,"stop_reason":null,"token_ids":null}],"usage":null,"system_fingerprint":null,"prompt_token_ids":null,"prompt_text":null}
85
86data: {"id":"88ac35ac33c62d9a","object":"chat.completion.chunk","created":1788435669,"model":"llm-qwen38-27b","choices":[{"index":0,"delta":{"role":"assistant","content":"\n","reasoning":null,"tool_calls":[]},"logprobs":null,"finish_reason":null,"stop_reason":null,"token_ids":null}],"usage":null,"system_fingerprint":null,"prompt_token_ids":null,"prompt_text":null}
87
88...
89
90data: {"id":"88ac35ac33c62d9a","object":"chat.completion.chunk","created":1788435669,"model":"llm-qwen38-27b","choices":[{"index":0,"delta":{"role":null,"content":null,"reasoning":null,"tool_calls":[]},"logprobs":null,"finish_reason":"stop","stop_reason":null,"token_ids":null}],"usage":{"prompt_tokens":22,"total_tokens":43,"completion_tokens":21,"prompt_tokens_details":null},"system_fingerprint":null,"prompt_token_ids":null,"prompt_text":null}
91
92data: [DONE]

CheckResult
Plain completion✅ Clean content, no think leakage
Streaming option✅ Streaming works as expected
Reasoning behavior✅ Matches llm-qwen36-27b (thinking disabled, no token drain)
Hard question✅ Correct answer, sane token usage (455/489 completion tokens)
Tool calling (tools provided)✅ Structured tool_calls via qwen3_coder parser
Tool calling (no tools)✅ Honest text answer, no phantom tool calls
Weights loading✅ 28.5 GiB loaded, 66/66 shards
Initial Benchmarking

Some latency tests/metrics can be found in the following paste, I created this python_script for the benchmark.

1curl -s -o /dev/null -w "DNS: %{time_namelookup}s | Connect: %{time_connect}s | TTFB: %{time_starttransfer}s | Total: %{time_total}s\n" \
2 -X POST "https://inference.svc.eqiad.wmnet:30443/openai/v1/chat/completions" \
3 -H "Host: llm-qwen38-27b.experimental.wikimedia.org" \
4 -H "Content-Type: application/json" \
5 -d '{"model":"llm-qwen38-27b","messages":[{"role":"user","content":"Write a 200 word story about a lighthouse."}],"max_tokens":300}'
6
7DNS: 0.001601s | Connect: 0.001931s | TTFB: 0.039445s | Total: 7.978690s
8
9==================================
10
11**Setup**
12* Method: 5 sequential streaming requests (stream=true) to /openai/v1/chat/completions, single stream, no concurrent load
13* Prompt: "Write a 300 word story about a lighthouse keeper.", max_tokens=256
14* Metrics measured client side from SSE chunk arrival times: TTFT (request sent to first content chunk), inter token latency (gap between chunks), decode speed (tokens / time after first token)
15
16**Results**
17~$ python3 bench.py
18run 1: TTFT=55ms tokens=256 total=6.78s decode=38.1 tok/s
19run 2: TTFT=52ms tokens=256 total=6.78s decode=38.1 tok/s
20run 3: TTFT=54ms tokens=256 total=6.78s decode=38.1 tok/s
21run 4: TTFT=55ms tokens=256 total=6.79s decode=38.0 tok/s
22run 5: TTFT=54ms tokens=256 total=6.79s decode=38.0 tok/s
23
24=== Summary ===
25TTFT p50=54ms max=55ms
26Inter-token p50=26.4ms p95=26.7ms
27Decode speed ~37.9 tok/s single-stream

Great work!
Instead of this custom script could you run vllm-bench like we did for the other models in https://wikitech.wikimedia.org/wiki/Machine_Learning/LiftWing/Large_Language_Models#Benchmarking?
T431851: Establish a benchmarking baseline for LiftWing LLM serving has more details. I'll open up a follow up task to make sure we consistently measure and document performance.

I created a subtask for the benchmark: https://phabricator.wikimedia.org/T437034 adding my findings there.

Nexts steps:

  1. Review and merge the patch results are on the related task stated above.
  2. Move the deployment from experimental ns to llm ns values-ml-serve-eqiad
  3. The rest-gateway is already configured by llm-* regex so I think there is no need for further configuration.
  4. Configure it in liftwing-studio.

Change #1342199 had a related patch set uploaded (by Gkyziridis; author: Gkyziridis):

[operations/deployment-charts@master] ml-services: Deployment of Qwen3.8-27B-FP8 model under llm namespace.

https://gerrit.wikimedia.org/r/1342199

Change #1342199 merged by jenkins-bot:

[operations/deployment-charts@master] ml-services: Deployment of Qwen3.8-27B-FP8 model under llm namespace.

https://gerrit.wikimedia.org/r/1342199

Qwen3.8-27B deployed to llm namespace.

It is serving, but the isvc route is blocked by namespace CPU quotas

llm-qwen38-27b is deployed and generating correctly on ml-serve1012, but the parent InferenceService never published its route. The model is reachable only on its -predictor hostname the public API path throws 404s.

$ kube_env llm ml-serve-eqiad
$ kubectl get pods

NAME                                                              READY   STATUS    RESTARTS   AGE
cope-b-a4b-predictor-00003-deployment-7c8bd68bb5-sdqhq            3/3     Running   0          49d
embeddings-predictor-00004-deployment-dbbf479bb-767sv             3/3     Running   0          49d
embeddings-staging-predictor-00003-deployment-59c78d858c-tv9pv    3/3     Running   0          49d
gpt-oss-safeguard-20b-predictor-00005-deployment-55d46b899dlkh8   3/3     Running   0          49d
jina-embeddings-predictor-00004-deployment-645f6fb57d-jggf9       3/3     Running   0          43d
jina-embeddings-staging-predictor-00020-deployment-567cd65h7pf8   3/3     Running   0          43d
langid-predictor-00003-deployment-76d5df85f7-kb95f                3/3     Running   0          22d
llm-qwen3-14b-predictor-00009-deployment-58db55fbf5-sb9gn         3/3     Running   0          22d
llm-qwen36-27b-predictor-00006-deployment-6cb5f76cfb-j5jz9        3/3     Running   0          22d
llm-qwen38-27b-predictor-00001-deployment-5d77fdc4b5-lw5vn        3/3     Running   0          42m
semantic-highlighting-staging-predictor-00002-deployment-dpjsfw   3/3     Running   0          25h
tts-predictor-00003-deployment-9b886cb55-qcw8q   

What works

Pod 3/3 Running, revision Ready=True, ksvc llm-qwen38-27b-predictor Ready=True.

curl -i -X POST "https://inference.svc.eqiad.wmnet:30443/openai/v1/chat/completions" \
-H "Host: llm-qwen38-27b-predictor.llm.wikimedia.org" \
-H "Content-Type: application/json" \
-d '{"model":"llm-qwen38-27b","messages":[{"role":"user","content":"hi"}],"max_tokens":20}'

HTTP/2 200 
content-length: 633
content-type: application/json
date: Thu, 17 Sep 2026 11:13:16 GMT
server: istio-envoy
x-envoy-upstream-service-time: 285

{"id":"909562e6563cc9b0","object":"chat.completion","created":1789643596,"model":"llm-qwen38-27b","choices":[{"index":0,"message":{"role":"assistant","content":"Hello! How can I help you today?","refusal":null,"annotations":null,"audio":null,"function_call":null,"tool_calls":[],"reasoning":null},"logprobs":null,"finish_reason":"stop","stop_reason":null,"token_ids":null,"routed_experts":null}],"service_tier":null,"system_fingerprint":null,"usage":{"prompt_tokens":13,"total_tokens":23,"completion_tokens":10,"prompt_tokens_details":null},"prompt_logprobs":null,"prompt_token_ids":null,"prompt_text":null,"kv_transfer_params":null}

What doesn't work

The isvc has no URL as it can be observed in the following paste:

1$ kubectl get isvc llm-qwen38-27b
2NAME URL READY PREV LATEST PREVROLLEDOUTREVISION LATESTREADYREVISION AGE
3llm-qwen38-27b False 27m
4
5
6$ kubectl get ksvc llm-qwen38-27b-predictor
7NAME URL LATESTCREATED LATESTREADY READY REASON
8llm-qwen38-27b-predictor http://llm-qwen38-27b-predictor.llm.wikimedia.org llm-qwen38-27b-predictor-00001 llm-qwen38-27b-predictor-00001 True
9
10
11$ kubectl get revision | grep qwen38
12llm-qwen38-27b-predictor-00001 llm-qwen38-27b-predictor 1 True 1 1
13
14
15$ kubectl logs llm-qwen38-27b-predictor-00001-deployment-5d77fdc4b5-lw5vn -c kserve-container --tail=5
16INFO:kserve.trace:kserve.io.metrics: 0.004782199859619141 ['http_status:200', 'http_method:GET', 'time:wall']
17INFO:kserve.trace:kserve.io.metrics: 0.004768999999999579 ['http_status:200', 'http_method:GET', 'time:cpu']
18INFO:uvicorn.access:127.0.0.6:53513 - "GET /metrics HTTP/1.1" 200
19INFO:kserve.trace:kserve.io.metrics: 0.004786491394042969 ['http_status:200', 'http_method:GET', 'time:wall']
20INFO:kserve.trace:kserve.io.metrics: 0.0047739999999976135 ['http_status:200', 'http_method:GET', 'time:cpu']
21
22
23
24$ kubectl describe isvc llm-qwen38-27b | tail -40
25 Severity: Info
26 Status: Unknown
27 Type: PredictorRouteReady
28 Last Transition Time: 2026-09-17T10:50:55Z
29 Message: fails to reconcile predictor: fails to reconcile knative service: admission webhook "validation.webhook.serving.knative.dev" denied the request: validation callback failed: dry run failed with pods "dry-run-validationkbx84" is forbidden: exceeded quota: quota-compute-resources, requested: limits.cpu=18, used: limits.cpu=145, limited: limits.cpu=150: spec.template
30 Reason: ReconcileFailed
31 Status: False
32 Type: Ready
33 Last Transition Time: 2026-09-17T10:29:00Z
34 Reason: PredictorRouteReady not ready
35 Severity: Info
36 Status: Unknown
37 Type: RoutesReady
38 Last Transition Time: 2026-09-17T10:29:00Z
39 Severity: Info
40 Status: False
41 Type: Stopped
42 Deployment Mode: Knative
43 Model Status:
44 Copies:
45 Failed Copies: 0
46 States:
47 Active Model State:
48 Target Model State: Pending
49 Transition Status: InProgress
50 Observed Generation: 1
51Events:
52 Type Reason Age From Message
53 ---- ------ ---- ---- -------
54 Warning InternalError 21m v1beta1Controllers fails to reconcile predictor: fails to reconcile knative service: admission webhook "validation.webhook.serving.knative.dev" denied the request: validation callback failed: dry run failed with pods "dry-run-validationzbsds" is forbidden: exceeded quota: quota-compute-resources, requested: limits.cpu=18, used: limits.cpu=145, limited: limits.cpu=150: spec.template
55 Warning InternalError 21m v1beta1Controllers fails to reconcile predictor: fails to reconcile knative service: admission webhook "validation.webhook.serving.knative.dev" denied the request: validation callback failed: dry run failed with pods "dry-run-validation8scrg" is forbidden: exceeded quota: quota-compute-resources, requested: limits.cpu=18, used: limits.cpu=145, limited: limits.cpu=150: spec.template
56 Warning InternalError 21m v1beta1Controllers fails to reconcile predictor: fails to reconcile knative service: admission webhook "validation.webhook.serving.knative.dev" denied the request: validation callback failed: dry run failed with pods "dry-run-validationm5vpt" is forbidden: exceeded quota: quota-compute-resources, requested: limits.cpu=18, used: limits.cpu=145, limited: limits.cpu=150: spec.template
57 Warning InternalError 21m v1beta1Controllers fails to reconcile predictor: fails to reconcile knative service: admission webhook "validation.webhook.serving.knative.dev" denied the request: validation callback failed: dry run failed with pods "dry-run-validation24qv2" is forbidden: exceeded quota: quota-compute-resources, requested: limits.cpu=18, used: limits.cpu=145, limited: limits.cpu=150: spec.template
58 Warning InternalError 21m v1beta1Controllers fails to reconcile predictor: fails to reconcile knative service: admission webhook "validation.webhook.serving.knative.dev" denied the request: validation callback failed: dry run failed with pods "dry-run-validationtlsrj" is forbidden: exceeded quota: quota-compute-resources, requested: limits.cpu=18, used: limits.cpu=145, limited: limits.cpu=150: spec.template
59 Warning InternalError 21m v1beta1Controllers fails to reconcile predictor: fails to reconcile knative service: admission webhook "validation.webhook.serving.knative.dev" denied the request: validation callback failed: dry run failed with pods "dry-run-validationlgjsz" is forbidden: exceeded quota: quota-compute-resources, requested: limits.cpu=18, used: limits.cpu=145, limited: limits.cpu=150: spec.template
60 Warning InternalError 21m v1beta1Controllers fails to reconcile predictor: fails to reconcile knative service: admission webhook "validation.webhook.serving.knative.dev" denied the request: validation callback failed: dry run failed with pods "dry-run-validationdwzmm" is forbidden: exceeded quota: quota-compute-resources, requested: limits.cpu=18, used: limits.cpu=145, limited: limits.cpu=150: spec.template
61 Warning InternalError 21m v1beta1Controllers fails to reconcile predictor: fails to reconcile knative service: admission webhook "validation.webhook.serving.knative.dev" denied the request: validation callback failed: dry run failed with pods "dry-run-validationqrp2f" is forbidden: exceeded quota: quota-compute-resources, requested: limits.cpu=18, used: limits.cpu=145, limited: limits.cpu=150: spec.template
62 Warning InternalError 21m v1beta1Controllers fails to reconcile predictor: fails to reconcile knative service: admission webhook "validation.webhook.serving.knative.dev" denied the request: validation callback failed: dry run failed with pods "dry-run-validation44fqh" is forbidden: exceeded quota: quota-compute-resources, requested: limits.cpu=18, used: limits.cpu=145, limited: limits.cpu=150: spec.template
63 Warning UpdateFailed 21m (x2 over 21m) v1beta1Controllers Failed to update status for InferenceService "llm-qwen38-27b": Operation cannot be fulfilled on inferenceservices.serving.kserve.io "llm-qwen38-27b": the object has been modified; please apply your changes to the latest version and try again
64 Warning InternalError 115s (x5947 over 21m) v1beta1Controllers (combined from similar events): fails to reconcile predictor: fails to reconcile knative service: admission webhook "validation.webhook.serving.knative.dev" denied the request: validation callback failed: dry run failed with pods "dry-run-validationgx479" is forbidden: exceeded quota: quota-compute-resources, requested: limits.cpu=18, used: limits.cpu=145, limited: limits.cpu=150: spec.template

So both of these two are throwing a 404:

  • llm-qwen38-27b.llm.wikimedia.org: Returns nothing
curl -i -X POST "https://inference.svc.eqiad.wmnet:30443/openai/v1/chat/completions" \
  -H "Host: llm-qwen38-27b.llm.wikimedia.org" \
  -H "Content-Type: application/json" \
  -d '{"model":"llm-qwen38-27b","messages":[{"role":"user","content":"hi"}],"max_tokens":20}'

HTTP/2 404 
date: Thu, 17 Sep 2026 11:19:47 GMT
server: istio-envoy
  • https://api.wikimedia.org/service/lw/inference/v1/models/llm-qwen38-27b/openai/v1/chat/completions: Returns nothing
curl -i https://api.wikimedia.org/service/lw/inference/v1/models/llm-qwen38-27b/openai/v1/chat/completions   -H "Content-Type: application/json"   -d '{"model":"llm-qwen38-27b","messages":[{"role":"user","conte
nt":"What is the capital of France?"}],"max_tokens":1000}'

HTTP/2 404 
date: Thu, 17 Sep 2026 11:22:13 GMT
server: istio-envoy
content-length: 0
via: rest-gateway
cache-control: no-cache
x-wmf-ratelimit-class: known-network
vary: X-Experiment-Enrollments
age: 2
x-cache-int: cp1110 miss
x-request-id: 174e7726-14fb-4791-b2c8-e8372b961744
x-cache: cp1110 int
x-cache-status: int-tls

Based on all the above and the kubectl info from the paste, it seems that the root cause is probably the limits.cpu quota under the llm namespace are exhausted.

$ kubectl describe quota quota-compute-resources -n llm
Name:            quota-compute-resources
Namespace:       llm
Resource         Used      Hard
--------         ----      ----
limits.cpu       145       150
limits.memory    294664Mi  500Gi
requests.cpu     122200m   150
requests.memory  283912Mi  500Gi

Update

After increasing the cpu quotas in llm namespace by merging/deploying this patch: 1343012
The llm-qwen38-27b service is working properly.

llm-qwen38-27b.llm.wikimedia.org :

curl -i -X POST "https://inference.svc.eqiad.wmnet:30443/openai/v1/chat/completions" \
-H "Host: llm-qwen38-27b.llm.wikimedia.org" \
-H "Content-Type: application/json" \
-d '{"model":"llm-qwen38-27b","messages":[{"role":"user","content":"hi"}],"max_tokens":20}'

HTTP/2 200 
content-length: 633
content-type: application/json
date: Fri, 18 Sep 2026 10:54:36 GMT
server: istio-envoy
x-envoy-upstream-service-time: 289

{"id":"9fc33b39f53dc554","object":"chat.completion","created":1789728877,"model":"llm-qwen38-27b","choices":[{"index":0,"message":{"role":"assistant","content":"Hello! How can I help you today?","refusal":null,"annotations":null,"audio":null,"function_call":null,"tool_calls":[],"reasoning":null},"logprobs":null,"finish_reason":"stop","stop_reason":null,"token_ids":null,"routed_experts":null}],"service_tier":null,"system_fingerprint":null,"usage":{"prompt_tokens":13,"total_tokens":23,"completion_tokens":10,"prompt_tokens_details":null},"prompt_logprobs":null,"prompt_token_ids":null,"prompt_text":null,"kv_transfer_params":null}

v1/models/llm-qwen38-27b:predict:

curl -s -i https://inference.svc.eqiad.wmnet:30443/v1/models/llm-qwen38-27b:predict \
-X POST \
-H "Content-Type: application/json" \
-H "Host: llm-qwen38-27b-predictor.llm.wikimedia.org" \
-d '{"prompt": "What is the capital of France?", "max_tokens": 50}'

HTTP/2 200 
content-length: 233
content-type: application/json
date: Fri, 18 Sep 2026 11:04:48 GMT
server: istio-envoy
x-envoy-upstream-service-time: 900

{"model_name":"llm-qwen38-27b","response":"The user is asking a simple factual question: What is the capital of France? The answer is Paris.\n</think>\n\nThe capital of France is **Paris**.","prompt_tokens":17,"completion_tokens":33}

https://api.wikimedia.org/service/lw/inference/v1/models/llm-qwen38-27b/openai/v1/chat/completions:

curl -i https://api.wikimedia.org/service/lw/inference/v1/models/llm-qwen38-27b/openai/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model":"llm-qwen38-27b","messages":[{"role":"user","content":"What is the capital of France?"}],"max_tokens":1000}'

HTTP/2 200 
content-length: 742
content-type: application/json
date: Fri, 18 Sep 2026 10:57:41 GMT
server: istio-envoy
via: rest-gateway
cache-control: no-cache
x-wmf-ratelimit-class: known-network
vary: X-Experiment-Enrollments
age: 3
x-cache-int: cp1110 miss
x-request-id: 2776d0c3-7d28-4dfb-a595-e01a342a5d9a
x-cache: cp1110 int
x-cache-status: int-tls

{"id":"996536e0b32ac7c6","object":"chat.completion","created":1789729063,"model":"llm-qwen38-27b","choices":[{"index":0,"message":{"role":"assistant","content":"The capital of France is **Paris**.\n\nIt is the largest city in France and serves as the country's political, economic, and cultural center.","refusal":null,"annotations":null,"audio":null,"function_call":null,"tool_calls":[],"reasoning":null},"logprobs":null,"finish_reason":"stop","stop_reason":null,"token_ids":null,"routed_experts":null}],"service_tier":null,"system_fingerprint":null,"usage":{"prompt_tokens":19,"total_tokens":50,"completion_tokens":31,"prompt_tokens_details":null},"prompt_logprobs":null,"prompt_token_ids":null,"prompt_text":null,"kv_transfer_params":null}

The kubectl describe results can be found in the following paste:

1$ kubectl get isvc llm-qwen38-27b
2NAME URL READY PREV LATEST PREVROLLEDOUTREVISION LATESTREADYREVISION AGE
3llm-qwen38-27b http://llm-qwen38-27b.llm.wikimedia.org True 100 llm-qwen38-27b-predictor-00001 24h
4
5
6$ kubectl get ksvc llm-qwen38-27b-predictor
7NAME URL LATESTCREATED LATESTREADY READY REASON
8llm-qwen38-27b-predictor http://llm-qwen38-27b-predictor.llm.wikimedia.org llm-qwen38-27b-predictor-00001 llm-qwen38-27b-predictor-00001 True
9
10
11
12$ kubectl describe isvc llm-qwen38-27b | tail -40
13 Status: True
14 Type: IngressReady
15 Last Transition Time: 2026-09-18T09:09:14Z
16 Severity: Info
17 Status: True
18 Type: LatestDeploymentReady
19 Last Transition Time: 2026-09-18T09:09:14Z
20 Severity: Info
21 Status: True
22 Type: PredictorConfigurationReady
23 Last Transition Time: 2026-09-18T09:09:14Z
24 Status: True
25 Type: PredictorReady
26 Last Transition Time: 2026-09-18T09:09:14Z
27 Severity: Info
28 Status: True
29 Type: PredictorRouteReady
30 Last Transition Time: 2026-09-18T09:09:14Z
31 Status: True
32 Type: Ready
33 Last Transition Time: 2026-09-18T09:09:14Z
34 Severity: Info
35 Status: True
36 Type: RoutesReady
37 Last Transition Time: 2026-09-17T10:29:00Z
38 Severity: Info
39 Status: False
40 Type: Stopped
41 Deployment Mode: Knative
42 Model Status:
43 Copies:
44 Failed Copies: 0
45 Total Copies: 1
46 States:
47 Active Model State: Loaded
48 Target Model State: Loaded
49 Transition Status: UpToDate
50 Observed Generation: 1
51 URL: http://llm-qwen38-27b.llm.wikimedia.org
52Events: <none>

Proceeding to the next steps I will configure the service in the liftwing-studio.

Qwen3.8-27b on LiftWing Studio

After the MR was merged I deployed the Qwen3.8 model on LiftWing studio.
You can check this in the image below:

image.png (3,430×698 px, 237 KB)