Aurestral
Placeholder Local GGUF inference for Python, powered by llama-cpp-python. Aurestral discovers models in your project’s models/ folder, auto-tunes thread counts, context size, and GPU offload for your hardware, and ships with an interactive chatbot CLI. To be evolved, stay tuned - Aurestral Console.
Requirements
- Python 3.9–3.12 (3.13+ may work; 3.14 is not supported yet — no
llama-cpp-pythonwheels) - A GGUF model file (e.g. from Hugging Face)
Installation
Recommended (Windows)
PyPI only ships a source tarball for llama-cpp-python, which often fails on Windows (long paths). Install a prebuilt wheel first, then Aurestral:
# Use Python 3.11 or 3.12 (not 3.14)
py -3.12 -m venv .venv
.\.venv\Scripts\Activate.ps1
# Prebuilt CPU wheel (fast, no compile)
pip install llama-cpp-python --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
pip install --upgrade aurestral
NVIDIA GPU (e.g. RTX 4060) — use the CUDA wheel index instead of CPU:
pip install llama-cpp-python --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cu124
pip install --upgrade aurestral
Simple install (Linux / macOS)
pip install aurestral
On macOS, prebuilt wheels usually include Metal acceleration.
If install still fails on Windows
- Enable long path support in Windows settings.
- Use a short temp folder before installing:
New-Item -ItemType Directory -Force C:\tmp | Out-Null $env:TEMP = "C:\tmp" $env:TMP = "C:\tmp" pip install llama-cpp-python --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
- Confirm Python version:
python --versionshould show 3.12.x, not 3.14.
0xc000001d / illegal instruction when loading a model
This means the llama-cpp-python binary does not match your PC (common with the wrong CUDA wheel or Python 3.14).
pip uninstall llama-cpp-python -y
pip install llama-cpp-python --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
python examples/chatbot.py --cpu-only
For GPU (RTX 4060), use the CUDA 12.4 wheel (requires CUDA 12.4 runtime):
pip install llama-cpp-python --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cu124
Project layout
Place GGUF files in a models/ directory at your project root (or set AURESTRAL_MODELS_DIR):
my-project/
├── models/
│ └── llama-3.2-3b-instruct.Q4_K_M.gguf
└── main.py
Quick start
Interactive chatbot
cd my-project
aurestral
aurestral -m llama-3.2-3b-instruct.Q4_K_M.gguf
Chat commands: /clear, /exit
Example chatbot script
This repo includes a full terminal chatbot in examples/chatbot.py:
# From repo root (with models/*.gguf present)
pip install -e .
python examples/chatbot.py
# Options
python examples/chatbot.py -m your-model.gguf --system "You are a coding tutor."
python examples/chatbot.py --max-tokens 256 --temperature 0.5
Python API
from aurestral import load_model, ChatSession, generate
# One-shot completion
text = generate("Explain quantum entanglement in one sentence.")
print(text)
# Reusable model handle
model = load_model() # auto-picks sole GGUF, or pass name="my-model"
reply = model.chat([
{"role": "user", "content": "Hello!"},
])
print(reply)
# Multi-turn session with streaming
session = ChatSession.create(system_prompt="You are a concise coding assistant.")
session.send("Write a Python hello world.", stream=True)
Hardware auto-tuning
On load, Aurestral inspects CPU cores, RAM, and whether llama-cpp-python was built with GPU offload support. It sets:
| Setting | Behavior |
|---|---|
n_threads |
Physical cores minus one |
n_ctx |
1k–8k based on available RAM |
n_gpu_layers |
-1 (all layers) when GPU offload is available |
use_mlock |
Enabled on high-RAM CPU-only setups |
flash_attn |
Enabled when GPU offload is available |
Override defaults with InferenceConfig or auto_tune=False:
from aurestral import InferenceConfig, load_model
cfg = InferenceConfig(n_ctx=8192, n_gpu_layers=35)
model = load_model("my-model.gguf", config=cfg, auto_tune=False)
Configuration reference
Environment
AURESTRAL_MODELS_DIR— path to models folder (instead of./models)
InferenceConfig — load-time: n_ctx, n_batch, n_threads, n_gpu_layers, use_mmap, use_mlock, flash_attn
GenerateConfig — generation-time: max_tokens, temperature, top_p, top_k, repeat_penalty, stop, stream
License
MIT License — see LICENSE.
Metadata
Release files for aurestral 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aurestral-1.0.3.tar.gz | 16.0 kB | Without provenance | Details for aurestral-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aurestral-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for aurestral-1.0.3-py3-none-any.whl |
Total release size: 33.3 kB
Release files / aurestral-1.0.3.tar.gz
| Download URL | aurestral-1.0.3.tar.gz |
|---|---|
| Size | 16.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
32b53981ba4087c721fe465b6992b0cd858cc339bcb830bd481636f44a7f3158
|
|
BLAKE2b-256 checksum How to use checksums |
01e415d2ebdd29e759cfec66493dd8bcca9f68e2506f5b1faec4d1943a20adc8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Release files / aurestral-1.0.3-py3-none-any.whl
| Download URL | aurestral-1.0.3-py3-none-any.whl |
|---|---|
| Size | 17.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
84d6d000f315afa6d86f3c365e0d1caa207e88c6a29ee9b38d7c28e5b695c8b8
|
|
BLAKE2b-256 checksum How to use checksums |
807b1cb1106d312f73d5e7a46201663b7e1ad798aca8b1407a068271a32fd454
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Security for aurestral 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.