This release is a pre-release and may not be stable for production use.
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 tostderr; machine output goes strictly tostdout. - Self-describing schemas:
whitehalo schema allemits JSON Schema for every request, response, and error struct. - Structured request input: Every command accepts
--request-json <json-or-@file>validated strictly bymsgspec. - Deterministic exit codes:
0OK,1runtime failure,2usage/validation error,10Docker missing,11Docker daemon stopped,12Docker permission denied,13GPU unavailable,14ambiguous GPU architecture,15image not pulled,16scratch volume missing,17rollout server unreachable.
License
Released under the Halo License (LicenseRef-Halo: Apache 2.0 + Supplemental Terms in LICENSE).
Metadata
Release files for whitehalo 1.3.0rc2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| whitehalo-1.3.0rc2.tar.gz | 78.0 kB | With provenance | Details for whitehalo-1.3.0rc2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| whitehalo-1.3.0rc2-py3-none-any.whl | Python 3 | none | any | Details for whitehalo-1.3.0rc2-py3-none-any.whl |
Total release size: 150.9 kB
Release files / whitehalo-1.3.0rc2.tar.gz
| Download URL | whitehalo-1.3.0rc2.tar.gz |
|---|---|
| Size | 78.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
57954c43d7fc20deffc80cb1deef88687b8e3950eeadfa875e3fc7ceab687df1
|
|
BLAKE2b-256 checksum How to use checksums |
0296963c231c5b1bbaec7a2efb610b0638383e4e26ee31091bf4ad141dc235b2
|
| 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 Nov 29, 2026.
Transparency logRelease files / whitehalo-1.3.0rc2-py3-none-any.whl
| Download URL | whitehalo-1.3.0rc2-py3-none-any.whl |
|---|---|
| Size | 72.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4cc58db04b189962f28b0281959780777fa7de4be5e44ceb915116d3f97439a8
|
|
BLAKE2b-256 checksum How to use checksums |
45c0f7514c5e345469c6a95f484882633750e87ca487b49a65ddd6f716083500
|
| 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 Nov 29, 2026.
Transparency logSecurity for whitehalo 1.3.0rc2
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.
Attestation for whitehalo-1.3.0rc2.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 Nov 29, 2026.
Transparency logA 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.