Skip to main content

TRL Jobs.

Project description

TRL Jobs

A convenient wrapper around hfjobs for running TRL (Transformer Reinforcement Learning) specific workflows on Hugging Face infrastructure.

Installation

pip install trl-jobs

Available Commands

SFT (Supervised Fine-Tuning)

Run SFT job with ease:

trl-jobs sft --flavor a100-large --model Qwen/Qwen3-0.6B --dataset trl-lib/Capybara

Required Arguments

  • --model: Model name or path (e.g., Qwen/Qwen3-0.6B)
  • --dataset: Dataset name or path (e.g., trl-lib/Capybara)

Optional Arguments

  • --flavor: Hardware flavor (default: t4-small)
  • -d, --detach: Run job in background and print job ID
  • --token: Hugging Face access token

Authentication

You can provide your Hugging Face token in several ways:

  1. Using huggingface-hub login: huggingface-cli login
  2. Setting the HF_TOKEN environment variable
  3. Using the --token argument

License

MIT License - see LICENSE file for details.

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

trl_jobs-0.1.5.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

trl_jobs-0.1.5-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file trl_jobs-0.1.5.tar.gz.

File metadata

  • Download URL: trl_jobs-0.1.5.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for trl_jobs-0.1.5.tar.gz
Algorithm Hash digest
SHA256 173dd9fd35b690b830bd189dd7f5f7c601fabe6fb1d0bbf31f2f9d695ce01dd6
MD5 7c6620e952f279c3880c9795234b99e6
BLAKE2b-256 e53b3f9b93d2a385549f7878e40feb9d58e415ea4f6f2d074b249ba97ef0a072

See more details on using hashes here.

File details

Details for the file trl_jobs-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: trl_jobs-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for trl_jobs-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 522c729b10d2c000727e0e2d4fc0011dae8bfe9005a1f73f9a7210f74ae6127b
MD5 38a4ec129717cbacea2ecfa4e8a885a1
BLAKE2b-256 b084a75584313999cf68d0eb00ebacb57bf8a17df3f7bc4696c24e56c97e46db

See more details on using hashes here.

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