Skip to main content

Python client for Orchard, a compute platform for Apple Silicon

Project description

Orchard

Python client for high-performance LLM inference on Apple Silicon.

Installation

pip install orchard

Usage

from orchard import Client

client = Client()

response = client.chat(
    model="meta-llama/Llama-3.1-8B-Instruct",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.text)

Streaming

for delta in client.chat(model="...", messages=[...], stream=True):
    print(delta.content, end="", flush=True)

Batch Inference

responses = client.chat_batch(
    model="...",
    conversations=[
        [{"role": "user", "content": "Question 1"}],
        [{"role": "user", "content": "Question 2"}],
    ],
)

Model Profiles

Chat templates and control tokens are loaded from the Pantheon submodule at orchard/formatter/profiles/. This provides a single source of truth shared across all Orchard SDKs (Python, Rust, Swift). See that repo for the list of supported model families.

Requirements

  • Python 3.10+
  • macOS 14+ (Apple Silicon)
  • PIE (Proxy Inference Engine)

Related

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

orchard-2026.3.3.tar.gz (107.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

orchard-2026.3.3-py3-none-any.whl (122.2 kB view details)

Uploaded Python 3

File details

Details for the file orchard-2026.3.3.tar.gz.

File metadata

  • Download URL: orchard-2026.3.3.tar.gz
  • Upload date:
  • Size: 107.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for orchard-2026.3.3.tar.gz
Algorithm Hash digest
SHA256 c5e39a931ea4c9ce7ac5bd111e4a762404246919ba0a2a054f605565959c1204
MD5 ae25eea3e45fac1f625a9e84e9719c66
BLAKE2b-256 6e72cfe2115370d9e70011c5e5b6a6d03a135c0721667bbb12000544a903ce9f

See more details on using hashes here.

File details

Details for the file orchard-2026.3.3-py3-none-any.whl.

File metadata

  • Download URL: orchard-2026.3.3-py3-none-any.whl
  • Upload date:
  • Size: 122.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for orchard-2026.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 41c03d7df490c59b08cb086866693813d76c52408497f0f09631b223208a019f
MD5 338d7e003784022a1084c8c51a4b7b98
BLAKE2b-256 c936e2de0bf584d498e1e69544f30b4b0c5b2e87525bb6a41f55bbe88a6e1382

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page