Skip to main content

bananamendr (Python)

Local CPU inference for the BananaMind-2 chat checkpoints — Nano, Mini and Pro (Preview) — with no PyTorch at runtime. The Rust core reads the published model.safetensors and tokenizer.json directly. One abi3 wheel serves every CPython ≥ 3.9.

Greedy decoding is token-exact against Hugging Face transformers.

This module takes paths only — it never downloads anything. For checkpoint fetching, a config file and an OpenAI-compatible server, install bananamendy.

pip install bananamendr
import bananamendr

model = bananamendr.Model("ref/BananaMind-2-Nano-Chat")
print(model.config["model_type"], model.config["num_hidden_layers"])

generation = model.chat(
    [{"role": "user", "content": "Why is the sky blue?"}],
    max_new_tokens=64,
    temperature=0.0,               # greedy; the Python API defaults to greedy
)
print(generation.text, generation.tokens_per_second)

# Streaming: the callback receives (decoded delta, token id) per step.
model.generate("Once upon a time", on_token=lambda text, token: print(text, end=""))

Also available: tokenize, detokenize, apply_chat_template, logits, generate_tokens.

License

Apache-2.0

Metadata

Release files for bananamendr 1.0.4

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

Source distribution (sdist)

Source distribution for bananamendr 1.0.4
File Size Uploaded Provenance
bananamendr-1.0.4.tar.gz 36.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for bananamendr 1.0.4
File Interpreter ABI Platform
bananamendr-1.0.4-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details

Total release size: 1.7 MB

Release files / bananamendr-1.0.4.tar.gz

Download URL bananamendr-1.0.4.tar.gz
Size 36.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9bf638322ffa954be4adbe3118f87b91282085189d39b76f06f7936d8ec88478
BLAKE2b-256 checksum
How to use checksums
48d758f71d56d38fd1e309fa1ee8c91c02281b19685c5addfb19cee64e8907b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / bananamendr-1.0.4-cp39-abi3-macosx_11_0_arm64.whl

Download URL bananamendr-1.0.4-cp39-abi3-macosx_11_0_arm64.whl
Size 1.7 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
49a20fb0db29a49dbe9761728349ea3041f809a0a34acfdac22705713b271ac3
BLAKE2b-256 checksum
How to use checksums
a3a7a6d2f54a0b185670986dc50205223c79498d17b8abb33284f564987c985d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for bananamendr 1.0.4

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