Stream live training metrics, run model diffs, and inspect datasets — all from your training script.
Project description
aquin
Python SDK for Aquin — stream live training metrics, run model diffs, and inspect datasets directly from your training script.
Install
pip install aquin
If you need PyTorch helpers (activation tracking etc.):
pip install "aquin[torch]"
Usage
Training session
import aquin
session = aquin.attach(model, optimizer, api_key="aq-...")
for step in range(num_steps):
loss = train_step()
session.step(loss, epoch=epoch, batch=batch, total_batches=len(dataloader))
session.stop()
Open aquin.app/app → Training tab → connect with your API key to watch metrics stream in live.
Model diff
Compare a fine-tuned checkpoint against its base model:
diff = aquin.ModelDiff(
base="meta-llama/Llama-3.2-1B",
ft_path="./my-checkpoint.pt",
api_key="aq-...",
)
result = diff.run(prompts=["Tell me about X", "Explain Y"])
SAE feature diff
Inspect which SAE features changed most between base and fine-tuned:
sae = aquin.SAEDiff(
base="meta-llama/Llama-3.2-1B",
ft_path="./my-checkpoint.pt",
api_key="aq-...",
)
result = sae.run(prompts=["Tell me about X"])
Dataset inspection
Scan a dataset for PII, toxicity, bias, synthetic content, and compliance:
ds = aquin.DataSession(
dataset_path="./training_data.jsonl",
api_key="aq-...",
)
results = ds.inspect()
Supports .jsonl, .json, .csv, and .tsv.
API key
Get your key at aquin.app.
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aquin-0.4.2.tar.gz.
File metadata
- Download URL: aquin-0.4.2.tar.gz
- Upload date:
- Size: 20.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12f87d0128f2539bb35e0f00519360e63f3b564d1597efdab8f552dce28cbe2c
|
|
| MD5 |
35a68a45594255e7b80d968b07448ed6
|
|
| BLAKE2b-256 |
fe3f3d1b01c408a234111b9822cd59d622f2f7a1ba4d390493d92a7bef3c27f0
|
File details
Details for the file aquin-0.4.2-py3-none-any.whl.
File metadata
- Download URL: aquin-0.4.2-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d8aae0eebb88703e0355bd8e71c2cd562c56de00c5bf31ded00798d45c28425
|
|
| MD5 |
97a7ead451a6f5c909cd1a40756c40d7
|
|
| BLAKE2b-256 |
0e5b4c39c4a595523d30ead77acdb1cec38cfaa7127cbf3134d55c9b4069336f
|