Skip to main content

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

github.com/defai-digital/ax-engine

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

ax_engine-5.1.8.tar.gz (885.1 kB view details)

Uploaded Source

Built Distribution

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

ax_engine-5.1.8-cp310-abi3-macosx_11_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

Details for the file ax_engine-5.1.8.tar.gz.

File metadata

  • Download URL: ax_engine-5.1.8.tar.gz
  • Upload date:
  • Size: 885.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.13.1

File hashes

Hashes for ax_engine-5.1.8.tar.gz
Algorithm Hash digest
SHA256 dd19d8636aeffb23d1d4001fb54ed6cb38f03af230232cbe028666e87281161a
MD5 0ee0fa878805038d259db482209463fe
BLAKE2b-256 d0a39b515be4310a2ac8d3b5aeb6c5bdfa62a2356b19fa5c08d656e3e5873ac2

See more details on using hashes here.

File details

Details for the file ax_engine-5.1.8-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ax_engine-5.1.8-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f1c8b2942a829a80aa773079b78554f60e958672dbbc781f2e20a5c818339452
MD5 45a51128cd9cbda3e416d56af6a9de9f
BLAKE2b-256 faa13e7db5d76898872d40a718828e8944a9f77ef4a7a2bb138c66ebffaa47db

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