Skip to main content

whitehalo

Lightweight, zero-torch launcher and agent-native Python SDK for Halo.

whitehalo does not install or compile PyTorch, Flash Attention, DeepEP, DeepGEMM, or CUDA kernels on your host. Instead, it manages and launches prebuilt Halo Docker images (public.ecr.aws/whitecircle/halo) from the host—and automatically dispatches directly to the local Halo runtime when executed inside a Halo container.

Install

Requires Python 3.12+ (runs cleanly on your host and natively inside Halo Docker containers).

pip install whitehalo
# or
uvx whitehalo doctor

Quickstart (CLI)

# 1. Check Docker daemon, NVIDIA runtime, GPU architecture, local images, and scratch disk
whitehalo doctor

# 2. Pull the matching prebuilt Blackwell or Hopper Docker image (no AWS login required)
whitehalo setup
# Include vLLM or SGLang rollout server images for online / environmental GRPO:
whitehalo setup --with-vllm

# 3. Preview the exact launch command without side effects
whitehalo launch sft examples/sft/qwen3/qwen3-4b-ultrachat-lora.yaml --dry-run

# 4. Launch training (works with zero repo clone, or bind-mounts your local Halo checkout)
whitehalo launch sft examples/sft/qwen3/qwen3-4b-ultrachat-lora.yaml -n 1 -- --report_to=none

# 5. Run a Halo post-training / data / White Circle tool
whitehalo run create-whitecircle-policies -- --environment-id <env_id> --policies policies.json

# 6. Drop into an interactive Halo shell with all mounts, ulimits, and GPU flags configured
whitehalo shell

Quickstart (Python SDK)

Every request and response type is a strictly typed frozen msgspec.Struct or StrEnum.

from pathlib import Path
from whitehalo import (
    BuiltinExample,
    ConfigEntry,
    ConfigOverride,
    ContainerOptions,
    GpuArch,
    HaloClient,
    ImageRole,
    InlineConfig,
    LaunchRequest,
    SetupRequest,
    TrainingMethod,
)

with HaloClient() as client:
    # Pull the GPU-matched Halo image
    client.setup(SetupRequest(arch=GpuArch.AUTO, roles=(ImageRole.TRAINER,)))

    # Verify Docker/Podman, GPU runtime, image, and scratch space
    report = client.doctor()
    report.raise_for_errors()

    # Launch a built-in example with typed overrides (zero repo clone required)
    result = client.launch(
        LaunchRequest(
            method=TrainingMethod.SFT,
            config=BuiltinExample(relative_path="examples/sft/qwen3/qwen3-4b-ultrachat-lora.yaml"),
            nproc=1,
            overrides=(ConfigOverride(key="report_to", value="none"),),
        )
    )

    # Or stage a typed inline YAML config and launch detached
    job = client.sft(
        config=InlineConfig(
            model_name_or_path="Qwen/Qwen3-4B-Instruct-2507",
            output_dir=Path("./checkpoints/my-sft"),
            dataset=("HuggingFaceH4/ultrachat_200k@train_sft",),
            extra=(
                ConfigEntry(key="use_peft", value=True),
                ConfigEntry(key="report_to", value="none"),
            ),
        ),
        nproc=4,
        detach=True,
        container=ContainerOptions(name="qwen3-sft"),
    )

Agent-Native Interface

  • Structured JSON responses (msgspec.json): Pass --format json (or pipe stdout—JSON mode activates automatically on non-TTY stdout). All human progress goes to stderr; machine output goes strictly to stdout.
  • Self-describing schemas: whitehalo schema all emits JSON Schema for every request, response, and error struct.
  • Structured request input: Every command accepts --request-json <json-or-@file> validated strictly by msgspec.
  • Deterministic exit codes: 0 OK, 1 runtime failure, 2 usage/validation error, 10 Docker missing, 11 Docker daemon stopped, 12 Docker permission denied, 13 GPU unavailable, 14 ambiguous GPU architecture, 15 image not pulled, 16 scratch volume missing, 17 rollout server unreachable.

License

Released under the Halo License (LicenseRef-Halo: Apache 2.0 + Supplemental Terms in LICENSE).

Metadata

Release files for whitehalo 1.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 whitehalo 1.3.0
File Size Uploaded Provenance Actions
whitehalo-1.3.0.tar.gz 95.3 kB With provenance Details for whitehalo-1.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for whitehalo 1.3.0
File Interpreter ABI Platform Actions
whitehalo-1.3.0-py3-none-any.whl Python 3 none any Details for whitehalo-1.3.0-py3-none-any.whl

Total release size: 175.3 kB

Release files / whitehalo-1.3.0.tar.gz

Download URL whitehalo-1.3.0.tar.gz
Size 95.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5b63cd7076bf80459abddae027714aa30b1a04e3a7a3aa27cbe5d1b167211e45
BLAKE2b-256 checksum
How to use checksums
b3571018f32d5730e89d242be8e830debe01d8c8ce608c3303a1e024b5540ba6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / whitehalo-1.3.0-py3-none-any.whl

Download URL whitehalo-1.3.0-py3-none-any.whl
Size 80.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
40becbbca07a0214c774fa4fe0d1e26c59d239fd1a9fa8a61529e3e6dff6d3be
BLAKE2b-256 checksum
How to use checksums
a4a47b29edb7a8d165de08e205c95ddcc90cd0499e3ec8ebc9709c115e6accaa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Security for whitehalo 1.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for whitehalo-1.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

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