Skip to main content

Overview

Python SDK for the Axionic platform. Remote inference via the Axionic API, local model loading via TransformerLens, steering vectors, SAE behavior monitoring, runtime policies, model graph inspection, experimental attribution and RAAG wrappers, and a local OpenAI-compatible server. Install from PyPI:
transformer_lens is required for local model loading but is not installed automatically by pip. Install it separately if you plan to run local models:

Two Modes of Operation

Generation, steering, and SAE operations run on Axionic-hosted GPU infrastructure. No local hardware requirements beyond running the SDK.
  • Requires an API key (ax_ + 48 hex characters)
  • Credits are deducted per inference call
  • Supports all sampling methods including ADS
  • Model does not need to fit in local memory

Execution Mode

Control where operations run with set_execution_mode():
ADS and steering perceptrons are remote-only regardless of execution mode. Policy-backed local generation can still run saved policies, constraints, retries, and verifiers when a local model is loaded.