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.4.6.tar.gz (118.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.4.6-py3-none-any.whl (134.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: orchard-2026.4.6.tar.gz
  • Upload date:
  • Size: 118.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.4.6.tar.gz
Algorithm Hash digest
SHA256 32a661325a93dd9f51fd16056c31a7f9041493db6dce5d393424979f935089e7
MD5 c9651a33f54a305e9c7fed2069637d85
BLAKE2b-256 d1fb02d3d99dfef035a2449da51e91c5ed6b56d912463f321b7056f2ed4b9c7a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: orchard-2026.4.6-py3-none-any.whl
  • Upload date:
  • Size: 134.3 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.4.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a16eb404663543b476b79a8d4fa6e806c51d8732b68a2129885122aff2d8e77d
MD5 b1ac7320c302e5d85280cbcb536f6456
BLAKE2b-256 9b84dd39d6332842dcd3c30c940cd0fb1a0dc6df641174c3038bfa855f4ad326

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