Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aquin-0.4.0.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aquin-0.4.0-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file aquin-0.4.0.tar.gz.

File metadata

  • Download URL: aquin-0.4.0.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for aquin-0.4.0.tar.gz
Algorithm Hash digest
SHA256 66d78bb127c1b0c11cc9fbb7edd5f8aaef47bccdc4cc658110a924f1c6da6a33
MD5 c3f52c09f664ea8e477d5d4d8c835e2e
BLAKE2b-256 4f7ff496a1329d83adc115d6c50f0d4292d18545f4b79fee87016bb31622860d

See more details on using hashes here.

File details

Details for the file aquin-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: aquin-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for aquin-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 434156179dba0a1a2e946b6c0c77d4e727452513d4da3e7e5f1f5924c0b65938
MD5 80e0b130d4adeb83902b2f89f8795d65
BLAKE2b-256 f3dbfd151cf4a76150063b86f1c72d99a1c1f17fe30ed48ef5f6d9135232e716

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page