AQIT 0.1.0
Loading...
Searching...
No Matches
aquin.load_model_display Namespace Reference

Classes

class  LoadProgress

Functions

dict[str, Any] load_model_payload (*, str model, str mode, bool daemon, bool ok=True, str|None error=None, float|None elapsed_s=None, str|None vram=None)
dict[str, Any] unload_payload (*, bool ok, bool daemon_running, bool stopped, str message)
None print_phase (str message, *, int indent=0, bool settled=True)
str _format_elapsed (float seconds)
dict watch_daemon_load (*, str target_model, Callable[[], dict|None] poll, float timeout=1800.0, LoadProgress|None on_tick=None)

Function Documentation

◆ _format_elapsed()

◆ load_model_payload()

dict[str, Any] load_model_payload ( * ,
str model,
str mode,
bool daemon,
bool ok = True,
str | None error = None,
float | None elapsed_s = None,
str | None vram = None )

Definition at line 17 of file load_model_display.py.

◆ print_phase()

None print_phase ( str message,
* ,
int indent = 0,
bool settled = True )

Definition at line 59 of file load_model_display.py.

◆ unload_payload()

dict[str, Any] unload_payload ( * ,
bool ok,
bool daemon_running,
bool stopped,
str message )

Definition at line 43 of file load_model_display.py.

◆ watch_daemon_load()

dict watch_daemon_load ( * ,
str target_model,
Callable[[], dict | None] poll,
float timeout = 1800.0,
LoadProgress | None on_tick = None )
Poll daemon health until target_model is ready or error/timeout.
Returns {"ok": True, "model_id": ...} or {"ok": False, "error": ...}.

Definition at line 121 of file load_model_display.py.