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"))

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. See LICENSE for the Apache 2.0 license.

Metadata

Release files for cactus-compute 4.0.1

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.0.1
File Size Uploaded Provenance Actions
cactus_compute-4.0.1.tar.gz 168.1 kB Without provenance Details for cactus_compute-4.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 300.3 kB

Release files / cactus_compute-4.0.1.tar.gz

Download URL cactus_compute-4.0.1.tar.gz
Size 168.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b6faad04da06df277d6703a12927e4df93af6f61387f3fafc7b11c64c2f6864e
BLAKE2b-256 checksum
How to use checksums
dfb296210ce376706ed8da67c4d1dbe749616d5dbf1addeb8a27ae6cfbf77b2e
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.0.1-py3-none-any.whl

Download URL cactus_compute-4.0.1-py3-none-any.whl
Size 132.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae70355e8508cf25ea65a61839eeebc17cff81b3930398bbfa605a58fb445bb9
BLAKE2b-256 checksum
How to use checksums
efa3f00aef1c5343ac2ab4d942eac1083b17bb629d99200f363a583dd6f9f795
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.0.1

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