|
AQIT 0.1.0
|
Functions | |
| str | load_model (str model_id, *, bool as_json=False) |
| None | unload (*, bool stop_daemon=False) |
| str|None | active_model () |
| dict[str, Any]|None | status (*, bool as_dict=True) |
| None | prompt (str text, *str extra) |
| str | None active_model | ( | ) |
Return the currently loaded model id, if any.
Definition at line 34 of file session.py.
| str load_model | ( | str | model_id, |
| * | , | ||
| bool | as_json = False ) |
Load a HuggingFace / family model into VRAM (daemon if available).
Definition at line 17 of file session.py.
| None prompt | ( | str | text, |
| *str | extra ) |
Quick generation against the loaded model (prints like the CLI).
Definition at line 55 of file session.py.
| dict[str, Any] | None status | ( | * | , |
| bool | as_dict = True ) |
Local engine / model status snapshot.
Definition at line 42 of file session.py.
| None unload | ( | * | , |
| bool | stop_daemon = False ) |
Free the resident model from VRAM.
Definition at line 24 of file session.py.