Skip to main content

A lightweight AXIR playground to run numerical kernels across CPU and OpenCL

Project description

PyPI version

AXIOMOS – Minimal Public Showcase

This repository is a public showcase proving that AXIR – the universal AI runtime IR – works without exposing any proprietary core code.
It relies on the public PyPI package axiomos (CPU + OpenCL), already published.

✨ Goal: let anyone (YC, investors, reviewers) test in 2 minutes that the IR executes correctly and results are verifiable across backends.


⚡️ Quickstart

1) Environment setup

python -m venv .venv
# Windows
.\.venv\Scripts\activate
# macOS/Linux
# source .venv/bin/activate

2) Install the public runtime

CPU only:

python -m pip install axiomos

With OpenCL (if GPU/drivers are available):

python -m pip install "axiomos[opencl]"

3) Generate two example fixtures
python make_fixtures.py


This creates:

examples/
 ├─ vector_add_small.axir.json
 └─ softmax2d_small.axir.json

✅ Demo 1  Environment check
axiomos-doctor


If OpenCL is not available, you can still use --backend-a cpu --backend-b cpu.

✅ Demo 2  “Hello AXIR” (vector add)

Compare CPU vs CPU on a simple vector:

axiomos-verify examples/vector_add_small.axir.json --buffer hC --backend-a cpu --backend-b cpu


Expected output: RESULT: PASS.

✅ Demo 3  Softmax2D (8×8)

Without GPU (CPU vs CPU):

axiomos-verify examples/softmax2d_small.axir.json --buffer hY --backend-a cpu --backend-b cpu


With GPU (CPU vs OpenCL):

# Windows PowerShell
$env:AXIOMOS_OCL_REAL="1"
# macOS/Linux
# export AXIOMOS_OCL_REAL=1

axiomos-verify examples/softmax2d_small.axir.json --buffer hY --backend-a cpu --backend-b opencl


Expected output:

SHAPES     : CPU(8, 8) vs OPENCL(8, 8)
max_abs_err: 0.0
ALLCLOSE   : True (atol=1e-06, rtol=1e-05)
[SMOKE] RESULT: PASS

🔥 Demo 4  Small benchmark (optional)
axiomos-smoke --axir examples/softmax2d_small.axir.json --buffer hY --backend-a opencl --backend-b cpu --inproc --time --warmup 3 --repeat 10


Produces an OpenCL vs CPU latency comparison.
If no GPU is present, use --backend-a cpu --backend-b cpu.

🧩 What this showcase proves

Portability  the same .axir.json runs on both CPU and OpenCL.

Verifiability  axiomos-verify checks numerical equality with strict tolerance (allclose).

Simplicity  2 fixtures, 3 commands, no access to proprietary code needed.

The full runtime (optimizations, advanced kernels, Ed25519 signature, etc.) remains private.
This showcase demonstrates only the critical path: IR  execution  verification.

🪪 License

MIT (for this public showcase only). The full runtime remains proprietary.
'@ | Out-File -Encoding utf8 -FilePath .\README.md -NoNewline

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

axiomos-0.1.7.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

axiomos-0.1.7-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file axiomos-0.1.7.tar.gz.

File metadata

  • Download URL: axiomos-0.1.7.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.6

File hashes

Hashes for axiomos-0.1.7.tar.gz
Algorithm Hash digest
SHA256 0d5490595fccab357ec74b9256e104d5a3d9e024d351cc6af9400a6bb6e8da76
MD5 0726bdbc1c9dc2e6ec5412fd67212743
BLAKE2b-256 3c3c1a24d991bcb35877f75dbf94080dbed2c51dc5bba2b83cb16c824a56928c

See more details on using hashes here.

File details

Details for the file axiomos-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: axiomos-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.6

File hashes

Hashes for axiomos-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f6c9c811d56d0e83e467f293dd21d9012cdab070810fa323f7497dbf9528ca77
MD5 424e641c3b3f2c4341533795aa9edf54
BLAKE2b-256 262440e109fae26195ab97efa3944d283bbc0b1652e0944423a4c09f59878886

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