Skip to main content

CLU Runtime

CLU (Continuous Learning Unit) is a public beta AI runtime for adaptive model execution, local serving, quantization, hardware-aware routing, and continual learning experiments.

pip install clu-runtime
import clu

model = clu.optimize(model)

Current Status

This repository is a beta runtime. The codebase includes working compiler, runtime, serving, learning, and hardware-abstraction components, but public performance claims should be treated as benchmark-specific until reproduced on your machine.

See PRODUCTION_READINESS.md for the current release checklist.

What CLU Provides

  • One-line optimization entry point: clu.optimize(model)
  • PyTorch, ONNX, and HuggingFace-oriented integration paths
  • OpenAI-compatible local serving API
  • KV-cache, streaming, batching, and LoRA serving scaffolds
  • INT8/INT4 quantization utilities
  • CPU SIMD kernels and optional native C kernels
  • Intel iGPU / universal GPU abstraction layers
  • Continual-learning components: EWC, replay memory, task-boundary detection, and forgetting metrics
  • Safe fallback behavior: unsupported paths should fall back instead of taking over user code

Quick Start

import torch
import torch.nn as nn
import clu

model = nn.Sequential(nn.Linear(64, 128), nn.ReLU(), nn.Linear(128, 64))
model.eval()

optimized = clu.optimize(model)
output = optimized(torch.randn(1, 64))

Server

clu serve --model model.onnx --port 8000

Optional production hardening:

set CLU_API_KEY=change-me
set CLU_RATE_LIMIT_PER_MIN=120
set CLU_CORS_ORIGINS=http://localhost:3000
clu serve --model model.onnx --port 8000

OpenAI-compatible client:

from openai import OpenAI

client = OpenAI(base_url="http://localhost:8000/v1", api_key="change-me")
response = client.chat.completions.create(
    model="local",
    messages=[{"role": "user", "content": "Hello"}],
)

Development

git clone https://github.com/RedGhost123/clu-runtime-public
cd clu-runtime-public
python -m pip install -e .[dev]
python scripts/release_audit.py
python -m pytest -q

Packaging Smoke Test

python -m pip wheel . -w dist --no-deps

Public Benchmark Policy

CLU includes benchmark scripts under benchmarks/, but speedup depends on model, input shape, dependencies, CPU/GPU, driver, and quantization mode. Use exact raw result files and machine details when publishing numbers.

License

Apache License 2.0. See LICENSE.

Metadata

Release files for clu-runtime 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for clu-runtime 0.7.0
File Size Uploaded Provenance Actions
clu_runtime-0.7.0.tar.gz 1.7 MB Without provenance Details for clu_runtime-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for clu-runtime 0.7.0
File Interpreter ABI Platform Actions
clu_runtime-0.7.0-py3-none-any.whl Python 3 none any Details for clu_runtime-0.7.0-py3-none-any.whl

Total release size: 3.5 MB

Release files / clu_runtime-0.7.0.tar.gz

Download URL clu_runtime-0.7.0.tar.gz
Size 1.7 MB
Tags Source
SHA-256 checksum
How to use checksums
5336530e2858b48c11c94a20bf3ed927ea1f4b037df3aea0244f2859b746ba61
BLAKE2b-256 checksum
How to use checksums
976192a25013149b0b44a481ab0eb2abf916c285c59b55b7ee370872cfaac012
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Release files / clu_runtime-0.7.0-py3-none-any.whl

Download URL clu_runtime-0.7.0-py3-none-any.whl
Size 1.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
f91987568940b3da3bd62a846bcd5e3ba402d63aea2a984fcd03b776865c9aa6
BLAKE2b-256 checksum
How to use checksums
4df9140d631d2d28181f2c20224096c1c90bd583e73f22ac6ba3e14421a4135e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Security for clu-runtime 0.7.0

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.

Release history Release notifications | RSS feed

This release

0.7.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page