I’m sharing the speeds I’ve achieved with Qwen4-35B-A3B UD-Q4_K_XL; has anyone managed to get better speeds?
Hardware
RTX 4060 Ti 8 GB (driver 621.47), running PCIe 3.0 x8 because of the CPU
Ryzen 5 5600G
48 GB DDR4-3200 (2x16 + 2x8)
Model on an NVMe SSD, Windows 11
Software: Strata (official, no forks), engine 0.1.75.1, Unsloth UD-Q4_K_XL
```
strata launch --family qwen4-35b-a3b --model ud-q4_k_xl --context 32k --vision off --parallel 1 --mtp on --drafting mtp --effort low --tune skip
```
Speed (median of 3, 256 output tokens, temp 0, thinking off)
Test Prompt tokens MTP on: prefill / decode MTP off: prefill / decode
Code request ~60 - / 58 - / 47
Prose request ~60 - / 54 - / 50
Long prompt 1.3k 812 / 55 810 / 49
Long prompt 5.1k 1129 / 57 1376 / 48
Long prompt 20k 1291 / 55 1775 / 49
Long prompt 28k 1282 / 55 1777 / 49
MTP gave me about 8-25% more decode, but cost about 28% of prefill on 20k+ prompts.
Prefill = prompt tokens / time to first token. Long prompts are synthetic log lines, so real documents may differ.
Quality, small hand-made checks (not a real benchmark)
8 checkable questions (sums, dates, logic, JSON extraction, "don't make it up"): 8/8 with and without thinking
3 easy Python functions, run against tests: all passed
Amount-to-words in Spanish (harder): 5/10 cases without thinking, 9/10 with low thinking
3 facts hidden in a ~17k token log: 3/3
Single-file HTML games: both ran with no JS errors, but in the racing game the collision math was wrong. "No errors" is not the same as "playable".
Other things I tried on the same PC
Qwen4 "Balanced" (Strata format), 8k context, MTP off: ~17 t/s
Qwen 3.6 35B UD-Q4_K_XL, 8k, MTP on: 31-38 t/s decode. Its prefill was only 65-74 t/s here because the engine's staging buffers did not fit in the free VRAM, so don't read that as the model's normal prefill. It also sometimes failed to start.
One machine, one setup. If you have an 8 GB card, I'd like to see your numbers.
"""Benchmark for an OpenAI-compatible local server. Usage: python bench.py <label> <sizes,comma> <out.json>
prefill = prompt tokens / time to first token; decode = generated tokens / time after first token."""
import json, random, statistics, sys, time, urllib.request
URL = "http://127.0.0.1:8080/v1"
label, sizes, out = sys.argv[1], [int(x) for x in sys.argv[2].split(",")], sys.argv[3]
model = json.load(urllib.request.urlopen(URL + "/models", timeout=10))["data"][0]["id"]
WORDS = "server cache garden invoice sensor valve report schedule branch water plant system update record check".split()
TASKS = {"code": "Write a Python class implementing an LRU cache with TTL, with docstrings and a usage example.",
"prose": "Write a long, detailed guide about maintaining a restaurant garden in a coastal desert city."}
def run(prompt, max_tokens=256):
body = {"model": model, "messages": [{"role": "user", "content": prompt}], "temperature": 0, "max_tokens": max_tokens,
"stream": True, "stream_options": {"include_usage": True},
"chat_template_kwargs": {"enable_thinking": False}, "reasoning_effort": "off"}
req = urllib.request.Request(URL + "/chat/completions", json.dumps(body).encode(), {"Content-Type": "application/json"})
start, first, usage = time.time(), None, {}
with urllib.request.urlopen(req, timeout=600) as r:
for line in r:
if not line.startswith(b"data:") or b"[DONE]" in line:
continue
d = json.loads(line[5:])
usage = d.get("usage") or usage
if first is None and d.get("choices") and d["choices"][0].get("delta", {}).get("content"):
first = time.time()
end = time.time()
pin, pout = usage["prompt_tokens"], usage["completion_tokens"]
return pin, pout, pin / (first - start), (pout - 1) / (end - first), first - start
def filler(tokens, seed):
rng = random.Random(seed)
lines, n = [], 0
while n < tokens:
lines.append(f"Log {rng.randrange(10**6)}: " + " ".join(rng.choice(WORDS) for _ in range(12)) + ".")
n += 18
return "\n".join(lines)
run("Say hi.", 16) # warm-up
results, seed = [], int(time.time())
for name, prompt in TASKS.items():
rs = [run(f"[run {seed}-{i}] {prompt}") for i in range(3)]
results.append({"test": name, "in": rs[0][0], "out": rs[0][1], "decode": round(statistics.median(r[3] for r in rs), 1)})
print(label, results[-1], flush=True)
for size in sizes:
rs = []
for i in range(3):
seed += 1
rs.append(run(filler(size, seed) + "\n\nSummarize the log above in a detailed report.", 256))
results.append({"test": f"long-{size}", "in": rs[0][0], "out": rs[0][1], "prefill": round(statistics.median(r[2] for r in rs)),
"ttft_s": round(statistics.median(r[4] for r in rs), 1), "decode": round(statistics.median(r[3] for r in rs), 1)})
print(label, results[-1], flush=True)
json.dump({"label": label, "model": model, "results": results}, open(out, "w"), indent=1)