GUI: upload, live progress + ETA, delete; report thinking; docs twg fix
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
edb8ee3731
commit
cbe111bc34
+4
-3
@@ -14,13 +14,13 @@ MODELS = {
|
||||
# layers fit (-ngl 25 halves gen speed). Text: no encoder -> all layers + -ub 2048 (prompt eval 230 -> 340 tok/s).
|
||||
"qwen35b": ("Qwen3.6 35B-A3B (RAM)", MD / "Qwen3.6-35B-A3B-UD-Q4_K_XL.gguf", MD / "mmproj-BF16.gguf",
|
||||
["--mmproj-offload", *_IMG, "--cpu-moe", "-ngl", "30", "-c", "16384", *_Q],
|
||||
["--cpu-moe", "-ngl", "99", "-c", "16384", "-ub", "2048", *_Q]),
|
||||
["--cpu-moe", "-ngl", "99", "-c", "16384", "-ub", "2048", "--reasoning-budget", "1024", *_Q]),
|
||||
# Hybrid attention -> 16k KV is only ~0.3 GB. Q4_K_S: best boxes/entities vs IQ4_XS/Q4_K_M/UD-Q4_K_XL on 8 sample shots.
|
||||
# Vision: encoder on GPU, FFN of the last 13/32 layers in RAM to make room: shot 36 -> 22 s (CPU encoder was ~19 s/image),
|
||||
# gen only 30 -> 25 tok/s; 12 is the limit (10 OOMs), 13 leaves margin. Text: everything on GPU.
|
||||
"qwen4b": ("Qwen3.5 4B (VRAM)", MD / "qwen3.5-4b" / "Qwen3.5-4B-Q4_K_S.gguf", MD / "qwen3.5-4b" / "mmproj-BF16.gguf",
|
||||
["--mmproj-offload", *_IMG, "-ngl", "99", "-ot", r"blk\.(19|2[0-9]|3[01])\.ffn_.*=CPU", "-c", "16384", *_Q],
|
||||
["-ngl", "99", "-c", "16384", "-ub", "1024", *_Q]),
|
||||
["-ngl", "99", "-c", "16384", "-ub", "1024", "--reasoning-budget", "1024", *_Q]),
|
||||
}
|
||||
PORT = 18081
|
||||
EMBED, EMBED_PORT = MD / "bge-m3-Q8_0.gguf", 18082
|
||||
@@ -43,8 +43,9 @@ def choose(vision_key, text_key): CHOICE.write_text(f"{vision_key} {text_key}")
|
||||
def content(resp, what):
|
||||
"""Message text of a llama-server chat response; prints its speed (lands in the Prefect log via log_prints)."""
|
||||
t = resp.get("timings") or {}
|
||||
think = len((resp["choices"][0]["message"].get("reasoning_content") or "").split())
|
||||
if t: print(f"llm {what}: prompt {t.get('prompt_n', 0)} tok @ {t.get('prompt_per_second', 0):.0f} t/s, "
|
||||
f"gen {t.get('predicted_n', 0)} tok @ {t.get('predicted_per_second', 0):.1f} t/s", flush=True)
|
||||
f"gen {t.get('predicted_n', 0)} tok @ {t.get('predicted_per_second', 0):.1f} t/s" + (f" (thinking ~{think} words)" if think else ""), flush=True)
|
||||
return resp["choices"][0]["message"]["content"]
|
||||
|
||||
def up(port=PORT):
|
||||
|
||||
Reference in New Issue
Block a user