TRL-specific job runner built on hfjobs
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 --model MODEL_NAME --dataset DATASET_NAME [OPTIONS]
Required Arguments
--model: Model name or path (e.g.,Qwen/Qwen3-4B-Base)--dataset: Dataset name or path (e.g.,trl-lib/tldr)
Optional Arguments
--flavor: Hardware flavor (default:t4-small)-d, --detach: Run job in background and print job ID--token: Hugging Face access token
Examples
trl-jobs sft \
--model Qwen/Qwen3-4B-Base \
--dataset trl-lib/tldr
Hardware Flavors
Common hardware flavors you can use:
t4-small: NVIDIA T4 GPU (default)t4-medium: NVIDIA T4 GPU with more resourcesa10g-small: NVIDIA A10G GPUa10g-large: NVIDIA A10G GPU with more resourcesa100-large: NVIDIA A100 GPU
Authentication
You can provide your Hugging Face token in several ways:
- Using
huggingface-hublogin:huggingface-cli login - Setting the
HF_TOKENenvironment variable - Using the
--tokenargument
License
MIT License - see LICENSE file for details.
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 trl_jobs-0.1.0.tar.gz.
File metadata
- Download URL: trl_jobs-0.1.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de00ee2aea6a4c49d017b3af22e40f06cd83e9e28adc254ae3483bd15b90d056
|
|
| MD5 |
a836e07194652c6b1a80bafd9d184cd2
|
|
| BLAKE2b-256 |
4d50a0167af60a2ab6d818baf6d3d638d5716b3a35658651785a49842fc81b05
|
File details
Details for the file trl_jobs-0.1.0-py3-none-any.whl.
File metadata
- Download URL: trl_jobs-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6bf99cb43c291e8181caacfa2c728159bd52b6244550ccee1e012a42578f1c47
|
|
| MD5 |
15d51b3dd8e188eb95e7915ae49eb839
|
|
| BLAKE2b-256 |
0d3f9afb0c3f21d9d49fff1cc01f535b6b9b3ff68caa72dc29424a1f1ef8ca1d
|