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:
-
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
-
Build from scratch:
- Install
tractorayvia 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
- Install
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tractoray-0.0.7.tar.gz.
File metadata
- Download URL: tractoray-0.0.7.tar.gz
- Upload date:
- Size: 88.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
540acdbedb21e021e1aa1a6ea938c815a49f5168d72d4d0e127bdb8b184acc67
|
|
| MD5 |
80b8cf5a3907063e6badd4132891d757
|
|
| BLAKE2b-256 |
5f727a8722566b18eded344a3fe704f2b9496933e5f4630fac30db8758b0d4c4
|
Provenance
The following attestation bundles were made for tractoray-0.0.7.tar.gz:
Publisher:
tractoray-pypi.yaml on tractoai/farm
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tractoray-0.0.7.tar.gz -
Subject digest:
540acdbedb21e021e1aa1a6ea938c815a49f5168d72d4d0e127bdb8b184acc67 - Sigstore transparency entry: 197393300
- Sigstore integration time:
-
Permalink:
tractoai/farm@00b8eeff51181495163a792e0a1490f34e2f3b36 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tractoai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
self-hosted -
Publication workflow:
tractoray-pypi.yaml@00b8eeff51181495163a792e0a1490f34e2f3b36 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file tractoray-0.0.7-py3-none-any.whl.
File metadata
- Download URL: tractoray-0.0.7-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
143c06b1f284b4dd87e35cd651fe0e817ae169f58ce3f91a133641de17c7e9d3
|
|
| MD5 |
242a872ff9352138f8efed2480cdf299
|
|
| BLAKE2b-256 |
2e89fb6fcce47433049292af21ef65b8d68175883fd69f2f6096f78f3b193212
|
Provenance
The following attestation bundles were made for tractoray-0.0.7-py3-none-any.whl:
Publisher:
tractoray-pypi.yaml on tractoai/farm
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tractoray-0.0.7-py3-none-any.whl -
Subject digest:
143c06b1f284b4dd87e35cd651fe0e817ae169f58ce3f91a133641de17c7e9d3 - Sigstore transparency entry: 197393304
- Sigstore integration time:
-
Permalink:
tractoai/farm@00b8eeff51181495163a792e0a1490f34e2f3b36 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tractoai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
self-hosted -
Publication workflow:
tractoray-pypi.yaml@00b8eeff51181495163a792e0a1490f34e2f3b36 -
Trigger Event:
workflow_dispatch
-
Statement type: