Skip to main content

Tractoray

The tool for running Ray clusters on Tracto.ai. Allows you to easily deploy and manage Ray clusters within Tracto.ai infrastructure.

Features

  • Launch Ray clusters with configurable resources.
  • Support native ray dashboard and ray client.
  • Support Ray Debugger.
  • Flexible Docker image configuration.

To see all the configuration options for Ray, please check the output of the tractoray start --help command.

Installation

Install tractoray with Ray CLI and all required dependencies:

pip install -U "tractoray[ray]"

Usage

Basic Commands

To use tractoray, you need to specify the working directory, for example your homedir //home/<login>/tractoray.

Start a cluster:

tractoray start --workdir //your/cypress/path --node-count 2

An output of the command contains an instruction to connect to the cluster.

Check the cluster status:

tractoray status --workdir //your/yt/path

Also JSON format is supported:

tractoray status --workdir //your/cypress/path --format json

Stop the cluster:

tractoray stop --workdir //your/cypress/path

For detailed information about task submission, log reading, and other operations, please check the ray status command output.

Using Custom Docker Images

You have two options for Docker images:

  1. Use the default image as base (recommended):

    FROM cr.eu-north1.nebius.cloud/e00faee7vas5hpsh3s/tractoray/default:2025-06-12-16-59-42-9a2ce5611
    
    # Add your dependencies
    RUN pip install your-package
    
  2. Build from scratch:

    • Install tractoray via pip
    • Use the same version as in your local environment and install all necessary dependencies for CUDA and Infiniband.
    FROM python:3.12
    
    RUN pip install tractoray==<your-local-version>
    # Add other dependencies
    

The default image includes all necessary dependencies and configurations to run Ray clusters for ML workloads. Using it as a base image is recommended to ensure compatibility.

Connect to the Ray Head Node terminal

Connect to the Ray head node terminal via the yt run-job-shell command or the web terminal in the UI. The tractoratay status command shows all necessary instructions and links.

Ray Debugging

Currently, only the legacy Ray debugger is supported.

To use ray debugger on Tracto.ai:

  1. Start your Ray cluster with RAY_DEBUG=legacy environment variable and the --ray-debugger-external option: tractoray start --workdir //your/cypress/path --ray-head-params="--ray-debugger-external" --ray-worker-params="--ray-debugger-external" --env-var "RAY_DEBUG=legacy"
  2. Connect to the Ray head node terminal using yt run-job-shell or web UI (instructions and necessary links can be found in the output of ray start and ray status).
  3. Run ray debug in the terminal on the head node to start the Ray Debugger.

You can read more about debugging Ray tasks in the official Ray documentation.

Environment Variables

  • YT_LOG_LEVEL: Set logging level

Limitations

  • Some Ray CLI options, like ray status, may not work properly on a laptop due to Ray authentication constraints. Use the Ray dashboard and the Ray SDK, or run Ray CLI on the head node instead.
  • Ray Serve is not supported.
  • Observability features are disabled by default. You can enable and configure them in your custom image.
  • Only legacy Ray Debugger is supported.

Metadata

Release files for tractoray 0.0.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tractoray 0.0.12
File Size Uploaded
tractoray-0.0.12.tar.gz 91.0 kB Details

Built distribution (wheel)

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

Total release size: 106.9 kB

Release files / tractoray-0.0.12.tar.gz

Download URL tractoray-0.0.12.tar.gz
Size 91.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5ec7ffee3d4ffb30ce71d5ef31c2d6a4977f2e1e4aa19638531679f14b9ded64
BLAKE2b-256 checksum
How to use checksums
ad9cabfe5be3cf5ea674ca869816d5849cdc2e96b0854bee75fe2cb947506924
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Jun 12, 2025.

Transparency log

Release files / tractoray-0.0.12-py3-none-any.whl

Download URL tractoray-0.0.12-py3-none-any.whl
Size 15.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae7aef182c5efe6f28fea12b9dac0f707f81a44c1b4bcc68550e09ebc854ca82
BLAKE2b-256 checksum
How to use checksums
14db701ec56824dee25acc04493f9d87fe27b6da9fe38dd23a73f9d3a4728939
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Jun 12, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.12 This release

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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