Seed Assistent personas as overlay folders and tighten Ollama/Assistent glue.
gpu-rent now writes personas/<id>/ on the VM (not legacy personas.json), adds seed-personas/doctor checks, and shortens mid/high keep-alive now that Assistent parks the LLM before Generate. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -43,10 +43,10 @@ def test_warmup_skips_when_ps_has_model(monkeypatch):
|
||||
def fake_urlopen(req, timeout=None):
|
||||
url = getattr(req, "full_url", str(req))
|
||||
assert "/api/ps" in url
|
||||
return FakeResp('{"models":[{"name":"huihui_ai/qwen2.5-vl-abliterated:7b"}]}')
|
||||
return FakeResp('{"models":[{"name":"huihui_ai/qwen3-vl-abliterated:8b-instruct"}]}')
|
||||
|
||||
monkeypatch.setattr(_mod.urllib.request, "urlopen", fake_urlopen)
|
||||
msg = _mod.warmup("huihui_ai/qwen2.5-vl-abliterated:7b", keep_alive="15m", num_ctx=16384, timeout=5)
|
||||
msg = _mod.warmup("huihui_ai/qwen3-vl-abliterated:8b-instruct", keep_alive="15m", num_ctx=16384, timeout=5)
|
||||
assert "skip" in msg
|
||||
assert "VRAM" in msg
|
||||
|
||||
|
||||
Reference in New Issue
Block a user