Commands
info & doctor
Inspect OchreML version, host CPU/RAM, detected accelerators, and run environment diagnostics.
Use ochreml info to inspect your runtime and hardware capabilities, and ochreml doctor to run structured readiness checks (^▽^).
ochreml info
Displays OchreML version, Python and OS metadata, CPU core count, total/available host RAM, default and available devices (cpu, cuda, wgpu, tpu), hardware probe details, and optional package availability (numpy, pyarrow, polars, pandas).
Usage
ochreml info [--json]
python -m ochreml info [--json]Flags
| Flag | Default | Description |
|---|---|---|
--json | false | Emit structured JSON output (may also be placed before info) |
Example JSON Output
{
"version": "0.3.7a1",
"python_version": "3.12.3",
"platform": "Linux-6.8.0-x86_64",
"cpu_count": 4,
"ram_total_mb": 16384.0,
"ram_available_mb": 12410.5,
"default_device": "auto",
"available_devices": ["cpu", "cuda:0"],
"hardware": {
"cuda_devices": 1
},
"optional_packages": {
"numpy": true,
"pyarrow": false,
"polars": false,
"pandas": false
}
}ochreml doctor
Runs environment and hardware diagnostics on top of info, returning a checks summary alongside the full environment snapshot.
Usage
ochreml doctor [--json]Flags
| Flag | Default | Description |
|---|---|---|
--json | false | Emit structured JSON output |
Diagnostic Checks
| Check Key | Meaning |
|---|---|
rust_extension_loaded | true when ochreml._ochreml loaded successfully |
cpu_available | true when "cpu" is in available_devices |
accelerators_detected | List of non-CPU devices detected (e.g. ["cuda:0"], ["wgpu"], ["tpu:0"]) |
parquet_ready | true if any of pyarrow, polars, or pandas is installed |
numpy_installed | true if numpy is importable |
Exit Codes
0: Command completed successfully.1: Unexpected runtime error (written tostderr, or as{"error": "..."}with--json).