Python bindings for AX Engine
Project description
AX Engine
High-performance local inference engine for Apple Silicon — Python bindings.
Installation
Python (pip)
pip install ax-engine
Requires macOS 14+, Apple Silicon (M2 Max or newer), Python 3.10+.
Command-line tools (Homebrew)
To install the ax-engine-server HTTP adapter and ax-engine-bench CLI:
brew install defai-digital/ax-engine/ax-engine
Then verify:
ax-engine-server --help
ax-engine-bench doctor
Quick start
import ax_engine
session = ax_engine.Session(mlx=True, mlx_model_artifacts_dir="/path/to/model")
result = session.generate([token_id, ...], max_output_tokens=128)
print(result.output_tokens)
Or use the OpenAI-compatible shim:
python -m ax_engine.openai_server \
--model-id my-model \
--mlx-model-artifacts-dir /path/to/model \
--tokenizer /path/to/tokenizer.json \
--port 8080
Then point any OpenAI client at http://127.0.0.1:8080.
Optional dependencies
pip install "ax-engine[openai]" # FastAPI + uvicorn for the OpenAI shim
pip install "ax-engine[download]" # mlx-lm for model downloading helpers
Requirements
- macOS 14 (Sonoma) or later
- Apple Silicon — M2 Max / M2 Ultra / M3 / M4 family (32 GB RAM minimum)
- Python 3.10+
Source
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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 ax_engine-5.1.6-cp310-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: ax_engine-5.1.6-cp310-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 4.9 MB
- Tags: CPython 3.10+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42470c783e5ce8fdfc27e0e51b273e7642bdf8c510fb613f8445dcac82ef7f9d
|
|
| MD5 |
742a74c8f924c0a46b9ceb807b0e21a0
|
|
| BLAKE2b-256 |
05036a1f461101b362b0199b457e6b85f367811fc78273f58b7ebeb9e8d70c6d
|