Metadata-Version: 2.4
Name: axiom-all
Version: 0.3.0b5
Summary: Local-first CLI and daemon for inspecting models, datasets, and hardware-aware AI plans.
License-Expression: MIT
Project-URL: Homepage, https://netcore-technologies.github.io/AXIOM-AI/
Project-URL: Repository, https://github.com/NetCore-Technologies/AXIOM-AI
Project-URL: Documentation, https://github.com/NetCore-Technologies/AXIOM-AI/wiki/Home
Project-URL: Issues, https://github.com/NetCore-Technologies/AXIOM-AI/issues
Project-URL: Changelog, https://github.com/NetCore-Technologies/AXIOM-AI/blob/main/docs/CHANGELOG.md
Keywords: ai,cli,machine-learning,local-first,hardware
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: typer>=0.12
Requires-Dist: pydantic>=2.7
Requires-Dist: rich>=13.7
Requires-Dist: fastapi>=0.115
Requires-Dist: mcp[cli]<3,>=2.0
Requires-Dist: huggingface_hub<2,>=1.27
Requires-Dist: pyyaml>=6.0
Requires-Dist: uvicorn[standard]>=0.30
Provides-Extra: native-inference
Requires-Dist: torch>=2.2; extra == "native-inference"
Requires-Dist: tokenizers>=0.19; extra == "native-inference"
Requires-Dist: safetensors>=0.4; extra == "native-inference"
Provides-Extra: training
Requires-Dist: torch>=2.2; extra == "training"
Requires-Dist: transformers<6,>=5; extra == "training"
Requires-Dist: peft>=0.20.0; extra == "training"
Requires-Dist: accelerate>=1.1.0; extra == "training"
Requires-Dist: tokenizers>=0.19; extra == "training"
Requires-Dist: safetensors>=0.4; extra == "training"
Provides-Extra: test
Requires-Dist: pytest>=8.3; extra == "test"
Requires-Dist: numpy>=1.24; extra == "test"
Dynamic: license-file

<div align="center">

![AXIOM. Know what fits before you train.](docs/assets/banner.svg)

[![Status](https://img.shields.io/badge/status-beta-f59e0b?style=flat-square&labelColor=0f172a)](https://github.com/NetCore-Technologies/AXIOM-AI)
[![Version](https://img.shields.io/badge/version-v0.3.0--beta.5-f59e0b?style=flat-square&labelColor=0f172a)](https://github.com/NetCore-Technologies/AXIOM-AI/releases)
[![License](https://img.shields.io/badge/license-MIT-7c3aed?style=flat-square&labelColor=0f172a)](LICENSE)
[![Python](https://img.shields.io/badge/python-3.11%2B-3776AB?style=flat-square&labelColor=0f172a&logo=python&logoColor=white)](https://www.python.org/)

# AXIOM AI

Check your model, data, and computer before you start. AXIOM gives you practical local checks from the terminal or a browser window on your computer.

[Get started](#get-started) · [What you can do](#what-you-can-do) · [Documentation](#documentation) · [Report an issue](https://github.com/NetCore-Technologies/AXIOM-AI/issues)

![AXIOM terminal demo](docs/assets/terminal.svg)

</div>

## What AXIOM does

- **Check a model folder** to see which files and details AXIOM can find.
- **Check training data** for invalid JSONL rows, missing fields, and duplicates.
- **See your computer’s hardware** and estimate whether a model may fit.
- **Plan a training run** or start local LoRA fine-tuning when you install the optional training tools.
- **Try local text generation** through Ollama.

AXIOM is still in beta. Plans are estimates; actual results depend on your model, data, and hardware. Your files stay on your computer for local checks. Features that use a remote service tell you when they need a network connection.

## Get started

Install the beta from PyPI:

```bash
python -m pip install --upgrade --pre axiom-all
axiom version
```

Create a project and run a few checks:

```bash
axiom init my-ai
cd my-ai
axiom project validate
axiom system info
axiom train plan 7 --method qlora
```

The training command makes a plan; it does not start a job. For the browser interface, run:

```bash
axiom gui
```

AXIOM opens its Control Center in your browser and serves it from your computer. Press `Ctrl-C` in the terminal to stop it. Set `AXIOM_GUI_PORT` to change the default port (an explicit `axiom gui --port` takes precedence); see [API configuration](docs/API.md).

## Install

### Debian, Ubuntu, or Linux Mint

The APT package is for 64-bit Intel and AMD systems:

```bash
curl -fsSLo /tmp/axiom-archive-keyring.gpg https://netcore-technologies.github.io/AXIOM-AI/apt/axiom-archive-keyring.gpg
sudo install -Dm0644 /tmp/axiom-archive-keyring.gpg /usr/share/keyrings/axiom-archive-keyring.gpg
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/axiom-archive-keyring.gpg] https://netcore-technologies.github.io/AXIOM-AI/apt stable main' | sudo tee /etc/apt/sources.list.d/axiom.list
sudo apt update
sudo apt install axiom-ai
```

### macOS or Linux

```bash
curl -fsSL https://raw.githubusercontent.com/NetCore-Technologies/AXIOM-AI/main/installers/install.sh | bash
axiom version
```

The installer puts `axiom` in `~/.local/bin`. If the command isn’t found, add that folder to your `PATH` and reopen your terminal.

### Windows

In PowerShell:

```powershell
irm https://raw.githubusercontent.com/NetCore-Technologies/AXIOM-AI/main/installers/install.ps1 | iex
axiom version
```

If PowerShell can’t find `axiom`, close and reopen it so the updated `PATH` takes effect.

For package downloads and checksums, see [GitHub Releases](https://github.com/NetCore-Technologies/AXIOM-AI/releases).

## What you can do

| To… | Run… |
| --- | --- |
| Check a model folder | `axiom model inspect ./models/my-model` |
| Check a JSONL dataset | `axiom dataset validate ./data/train.jsonl` |
| See your hardware | `axiom system info` |
| Make a training plan | `axiom train plan 7 --method qlora` |
| Check your project setup | `axiom doctor` |
| See available commands | `axiom --help` |

The **Models** page supports server-side search, exact format/tag filters, favorites-only views, numeric parameter sorting, filtered pagination, and browser-local saved filter presets. Model entries also expose estimated RAM/VRAM fit ranges and explicit compatibility warnings when enough metadata is available. See the [Model Registry guide](docs/Model-Registry.md). The existing **Runtime** page also benchmarks actual local Ollama inference with warm-up, measured iterations, bounded concurrency, latency percentiles, and token throughput when runtime token counts are available. See the [Inference Benchmarking guide](docs/Inference-Benchmarking.md). It also provides metadata-only request history with request IDs, JSON export, and clear controls; prompts and generated text are excluded. See the [Local Inference guide](docs/Local-Inference.md).

## Optional features

### Local fine-tuning

AXIOM can run LoRA fine-tuning on a model that is already on your computer. Install the optional dependencies first:

```bash
python -m pip install -e '.[training]'
axiom train run --model-path ./models/my-model --dataset ./data/train.jsonl --output-dir ./runs/my-adapter --max-steps 20
```

See the [fine-tuning guide](docs/Local-Fine-Tuning.md) for supported data, limits, and setup.

### Local text generation

Install and start [Ollama](https://ollama.com/), then check its status and available models:

```bash
axiom infer status
axiom infer models
axiom infer run qwen2.5:0.5b --prompt "Say hello in one sentence."
```

### AXIOM Engine (direct local inference)

The Control Center's **AXIOM Native Engine** runs an AXIOM-owned Llama/Mistral forward pass and autoregressive KV-cache decoder on PyTorch tensor kernels, including RMSNorm, RoPE, grouped-query attention, SwiGLU and supported LoRA deltas. It does not call Ollama or Transformers model.generate. The current native path requires local tokenizer.json plus floating-point safetensors checkpoints; GGUF, quantized weights, pickle .bin files and unsupported architectures are explicitly rejected. Model weights are supplied separately by you. The Runtime panel discovers compatible local models and LoRA adapter folders under trusted roots so you can select them rather than guess paths. It supports configurable stop sequences and reports why generation ended.

Install the local model dependencies, then use the AXIOM Engine panel in the Control Center:

```bash
python -m pip install -e '.[training]'
```

Use the CLI or the Control Center panel to run it:

```bash
axiom --no-banner engine status
axiom --no-banner engine run --model-path "$HOME/models/my-llama-model" --prompt "Explain AXIOM in one sentence." --max-new-tokens 128
```

See [AXIOM Engine details](docs/Local-Engine.md) for trusted model-root configuration, adapter use, model unload, and limits.

### Model Studio

Model Studio helps you search for models, install them in Ollama, and convert local models to GGUF. Some options need a network connection or a local `llama.cpp` checkout. See the [Model Studio guide](docs/Model-Studio.md).

## Your data and local API

Local checks run on your computer. AXIOM does not upload your model weights or datasets for these checks. Commands that look up remote model details or connect to a provider need network access.

The local API and Control Center use loopback addresses by default. The optional support bundle contains diagnostic details; review it before sharing. See [API details](docs/API.md) and [support-bundle contents](docs/Diagnostics-and-Support.md).

## Documentation

- [Install and troubleshooting](https://github.com/NetCore-Technologies/AXIOM-AI/wiki)
- [My First AI starter project](examples/my-first-ai/README.md)
- [Installer options and troubleshooting](installers/README.md)
- [Changelog](docs/CHANGELOG.md)
- [Local fine-tuning](docs/Local-Fine-Tuning.md)
- [Model Studio](docs/Model-Studio.md)
- [Model Registry](docs/Model-Registry.md)
- [Inference Benchmarking](docs/Inference-Benchmarking.md)
- [Local inference via Ollama](docs/Local-Inference.md)
- [Inference Benchmarking](docs/Inference-Benchmarking.md)
- [AXIOM Engine](docs/Local-Engine.md)
- [API and environment configuration](docs/API.md)
- [Data retention and deletion](docs/DATA-RETENTION.md)
- [CLI guide and shell completion](docs/CLI-GUIDE.md)
- [Runtime compatibility checks](scripts/check_compatibility.py)
- [Roadmap](ROADMAP.md)
- [Community and adoption strategy](docs/Community-and-Adoption-Strategy.md)
- [Contributing](CONTRIBUTING.md)

## Contributing

Bug reports are easiest to fix when they include your OS, Python version, AXIOM version, and the command you ran. Don’t attach API keys, private datasets, or model weights.

To work on AXIOM locally:

```bash
python -m pytest -q
npm run lint
npm run build
npm run e2e
```

## License

AXIOM is available under the [MIT License](LICENSE).


## Machine-readable CLI output

The following inventory and inspection commands expose versioned JSON payloads with `--json`: `axiom model list`, `axiom model info`, `axiom model inspect`, `axiom model search`, `axiom dataset inspect`, `axiom dataset validate`, `axiom dataset stats`, `axiom dataset clean --output out.jsonl --json`, `axiom integration list`, and `axiom engine discover`, `axiom model export`, `axiom model import`, `axiom model remove`, and `axiom model favorite`, and `axiom model update`. Dataset inspect/validate/stats share the same field names and include bounded line-level errors. JSON mode keeps useful output on stdout so it can be piped into scripts; validation failures preserve a non-zero exit code. `axiom model analyze --json` adds metadata/config-derived estimates and warnings; `axiom system info --json` includes detected hardware and clearly scoped fit heuristics.
