AQIT 0.1.0
Loading...
Searching...
No Matches
__init__.py
Go to the documentation of this file.
1# Copyright (c) 2025-present Aquin Labs Private Limited. All Rights Reserved.
2# This file is part of the Aquin Engine. Unauthorized copying, modification,
3# distribution, or use of this file, via any medium, is strictly prohibited.
4# Proprietary and confidential. See LICENSE for terms.
5
6"""Aquin Python package — SDK + CLI.
7
8Import stays light so ``python -m aquin`` / install probes do not pull torch.
9
10Training recorder::
11
12 from aquin import init, Run
13
14Full framework SDK (same capabilities as the CLI)::
15
16 from aquin import sdk
17 sdk.session.load_model("meta-llama/Llama-3.2-1B-Instruct")
18 sdk.eval.custom(...)
19 sdk.inspect.trace(prompt="...", layer=8)
20"""
21
22from __future__ import annotations
23
24from typing import Any
25
26__all__ = [
27 "Run",
28 "init",
29 "AccessDeniedError",
30 "sdk",
31 "AquinError",
32]
33
34
35class AccessDeniedError(Exception):
36 pass
37
38
39def __getattr__(name: str) -> Any:
40 if name in ("Run", "init"):
41 from aquin.run import Run, init
42
43 return Run if name == "Run" else init
44 if name == "sdk":
45 import aquin.sdk as sdk_pkg
46
47 return sdk_pkg
48 if name == "AquinError":
49 from aquin.sdk._runtime import AquinError
50
51 return AquinError
52 raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
Any __getattr__(str name)
Definition __init__.py:43