Skip to main content

Run ray on tracto.ai

Project description

Tractoray

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

Features

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

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

return an instruction to connect to the cluster:

Check cluster status:

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

also supports output in JSON format:

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-04-10-21-17-47-7f93a1500
    
    # Add your dependencies
    RUN pip install your-package
    
  2. Build from scratch:

    • Install tractoray via pip
    • Make sure to use the same version as in your local environment and all necessary dependencies for CUDA and infiniband
    FROM python:3.9
    
    RUN pip install tractoray==<your-local-version>
    # Add other dependencies
    

The default image includes all necessary dependencies and configurations for Ray cluster operation for machine learning tasks. Using it as a base image is recommended to ensure compatibility.

Environment Variables

  • YT_LOG_LEVEL: Set logging level

Limitations

  • Some Ray CLI options, such as ray status, may not function properly due to Ray authentication constraints. It is recommended to use Ray dashboard and Ray SDK instead.
  • Ray Serve is not supported.
  • Observability features are disabled by default. You can enable and configure them in your custom image.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tractoray-0.0.8.tar.gz (88.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tractoray-0.0.8-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file tractoray-0.0.8.tar.gz.

File metadata

  • Download URL: tractoray-0.0.8.tar.gz
  • Upload date:
  • Size: 88.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tractoray-0.0.8.tar.gz
Algorithm Hash digest
SHA256 a1a511878bccaeb4c41db0ea846c01fc5177841694be10759e275f6310be96dc
MD5 de2b57510a062dcfee6987884248ab5a
BLAKE2b-256 8185b2a06b1c4edd6366ba06bd31766af59fbfcd833b398ec4dfa6d6e95b2664

See more details on using hashes here.

Provenance

The following attestation bundles were made for tractoray-0.0.8.tar.gz:

Publisher: tractoray-pypi.yaml on tractoai/farm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tractoray-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: tractoray-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tractoray-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 327c9e1f7bb696ddbecad10731c6350f4a95c95d617851070b292fd2e2feef2a
MD5 7c82f1f00a313b2dd9858f3c89014f3c
BLAKE2b-256 b74adce9b3807f7aa2d97b3f7195932b00b7dbc8a209abe0e96318c30c9bdbe7

See more details on using hashes here.

Provenance

The following attestation bundles were made for tractoray-0.0.8-py3-none-any.whl:

Publisher: tractoray-pypi.yaml on tractoai/farm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page