Add model dropdown (presets w/ VRAM) + manual override; list HauhauCS GGUF models

New model_select dropdown with suggested VRAM in each label: huihui Qwen3-VL
4B(local)/8B/30B-A3B (transformers, auto-download) and HauhauCS Qwen3.5-9B /
Qwen3.6-35B-A3B Uncensored Aggressive (GGUF). model_path is now the manual
override (empty = use dropdown). agent_bridge gains --model-select/--model-path.
The HauhauCS models are GGUF-only (no safetensors) so the transformers backend
can't load them yet — selecting one returns a clear 'GGUF backend pending'
message until the backend is added.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-27 09:24:28 +02:00
parent 887dfc0bbb
commit 34adb946a4
2 changed files with 56 additions and 8 deletions
+9 -2
View File
@@ -48,7 +48,8 @@ def _http_json(url: str, payload: dict | None = None, timeout: int = 30):
def _inject(graph: dict, prompt: str, negative: str, seed: int, run_tag: str, mode: str,
reference_description: str = "", profile: str = ""):
reference_description: str = "", profile: str = "", model_select: str = "",
model_path: str = ""):
"""Set the receptor's prompt/seed and the judge's mode/run_tag in-place.
compare mode needs a receptor (to inject the prompt). describe mode is the first
@@ -71,6 +72,10 @@ def _inject(graph: dict, prompt: str, negative: str, seed: int, run_tag: str, mo
inputs["reference_description"] = reference_description
if profile:
inputs["profile"] = profile
if model_select:
inputs["model_select"] = model_select
if model_path:
inputs["model_path"] = model_path
if mode == "compare" and not found_receptor:
raise SystemExit(
f"[agent_bridge] no '{RECEPTOR_CLASS}' node in the workflow — add the "
@@ -119,6 +124,8 @@ def main(argv=None):
ap.add_argument("--run-tag", default="")
ap.add_argument("--profile", default="",
help="analysis profile on the judge (general/oral/penetration/handjob/solo)")
ap.add_argument("--model-select", default="", help="judge model dropdown label (overrides workflow)")
ap.add_argument("--model-path", default="", help="manual judge model path/repo (overrides dropdown)")
ap.add_argument("--ref-desc", default="",
help="canonical reference text to anchor compare on (from the describe pass)")
ap.add_argument("--ref-desc-file", default="",
@@ -143,7 +150,7 @@ def main(argv=None):
graph = json.load(f)
_inject(graph, args.prompt, args.negative, args.seed, args.run_tag, args.mode, ref_desc,
args.profile)
args.profile, args.model_select, args.model_path)
client_id = uuid.uuid4().hex
try: