Skip to main content

Cactus Compute - Sub-50mb Super Intelligence For Consumer Devices

Run text, speech and vision models locally with one Python package. Cactus provides tool calling, structured extraction, transcription, image understanding and model fine-tuning.

Install

pip install -U cactus-compute

Python 3.9 or later. The package downloads and caches the engine and requested model weights on first use. Inference runs locally and does not require JAX.

Agents

Needle 3 calls tools, extracts structured data and embeds text.

import cactus

@cactus.tool
def get_weather(city: str):
    "Get the current weather for a city."
    return {"city": city, "temp_c": 27, "sky": "clear"}

with cactus.Cactus(tools=[get_weather]) as agent:
    print(agent.run("What's the weather in Lagos?")["results"])

run() executes your functions and returns their results. Use complete() when you want to inspect the proposed calls before executing them.

Voice

Whistle transcribes speech in seven languages, with word timestamps and speech embeddings.

import cactus

print(cactus.transcribe("clip.wav")["text"])

Use a 16 kHz WAV file. Install cactus-compute[mic] for other sample rates or microphone capture.

Vision

Mirage describes images and extracts structured data.

import cactus

print(cactus.Mirage().describe("photo.png"))

MLX language models on Mac

Run CQ checkpoints with the cactus-mlx command, included in this package. Requires Apple silicon, macOS 26 or newer, and Python 3.12 or newer.

pip install -U 'cactus-compute[mlx]'
cactus-mlx generate \
  --model Cactus-Compute/nemotron-3.5-120b-cq \
  --prompt 'Write a Python function is_prime(n).' \
  --max-tokens 256

The selected model downloads and caches on first use. --model also accepts a local model directory. Use --image photo.jpg with a vision-capable checkpoint. Greedy generation uses verified MTP by default; --no-mtp disables it.

For a local OpenAI-compatible API:

cactus-mlx server --model Cactus-Compute/nemotron-3.5-120b-cq --port 8080

Python applications can use from cactus.mlx import load, generate, stream_generate. The current adapter supports Nemotron-H CQ checkpoints. The existing cactus command and Needle, Whistle and Mirage APIs continue to use their native engine. The [mlx] extra also retains the existing MLX training backend.

If you installed the earlier standalone cactus-mlx wheel, uninstall it before installing this release. Its Python imports move from cactus_mlx to cactus.mlx.

Documentation

Migrating from cactus-needle? Use import cactus and the cactus command. Needle 2 remains on the legacy branch with cactus-compute<4. The earlier general inference SDK is now cactus-engine.

Anonymous Python usage counts can be disabled with CACTUS_TELEMETRY=0.

License

Apache 2.0, including the prebuilt runtime binaries.

Metadata

Release files for cactus-compute 4.3.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 cactus-compute 4.3.0
File Size Uploaded Provenance Actions
cactus_compute-4.3.0.tar.gz 200.3 kB Without provenance Details for cactus_compute-4.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cactus-compute 4.3.0
File Interpreter ABI Platform Actions
cactus_compute-4.3.0-py3-none-any.whl Python 3 none any Details for cactus_compute-4.3.0-py3-none-any.whl

Total release size: 369.1 kB

Release files / cactus_compute-4.3.0.tar.gz

Download URL cactus_compute-4.3.0.tar.gz
Size 200.3 kB
Tags Source
SHA-256 checksum
How to use checksums
215431b149ad05e7a1e87377c8562ebaa23ad8474bd739babf1ed02039fe0c7b
BLAKE2b-256 checksum
How to use checksums
2d67273bee8af5ad2f0a5ee46d8a78692a09303986d9928e04fb4da9d337ee5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / cactus_compute-4.3.0-py3-none-any.whl

Download URL cactus_compute-4.3.0-py3-none-any.whl
Size 168.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a79c342791ea9f1d162eba9d1461835312fe1342c8c3481aaf68f218f7b8cd6
BLAKE2b-256 checksum
How to use checksums
ff59a4f448d94779bd0e4f508c45c31e73b2791aa2cf996f3924ea98828be24f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for cactus-compute 4.3.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.

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