Skip to Content
OchreML
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

FlagDefaultDescription
--jsonfalseEmit 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

FlagDefaultDescription
--jsonfalseEmit structured JSON output

Diagnostic Checks

Check KeyMeaning
rust_extension_loadedtrue when ochreml._ochreml loaded successfully
cpu_availabletrue when "cpu" is in available_devices
accelerators_detectedList of non-CPU devices detected (e.g. ["cuda:0"], ["wgpu"], ["tpu:0"])
parquet_readytrue if any of pyarrow, polars, or pandas is installed
numpy_installedtrue if numpy is importable

Exit Codes

  • 0: Command completed successfully.
  • 1: Unexpected runtime error (written to stderr, or as {"error": "..."} with --json).

On this page