akseljoonas HF Staff commited on
Commit
086bd94
·
verified ·
1 Parent(s): d204dd0

adding instructions

Browse files
Files changed (1) hide show
  1. trl/SKILL.md +8 -1
trl/SKILL.md CHANGED
@@ -42,7 +42,7 @@ Use this skill when users want to:
42
 
43
  When assisting with training jobs:
44
 
45
- 1. **Submit jobs directly with inline scripts** - The `script` parameter accepts Python code directly. Do NOT save to local files unless the user explicitly requests it. Pass the script content as a string to `hf_jobs()`.
46
 
47
  2. **Always include Trackio** - Every training script should include Trackio for real-time monitoring. Use example scripts in `scripts/` as templates.
48
 
@@ -50,6 +50,13 @@ When assisting with training jobs:
50
 
51
  4. **Use example scripts as templates** - Reference `scripts/train_sft_example.py`, `scripts/train_dpo_example.py`, etc. as starting points.
52
 
 
 
 
 
 
 
 
53
  ## Prerequisites Checklist
54
 
55
  Before starting any training job, verify:
 
42
 
43
  When assisting with training jobs:
44
 
45
+ 1. **Submit jobs directly with inline scripts** - The `script` parameter accepts Python code directly. Do NOT save to local files unless the user explicitly requests it. Pass the script content as a string to `hf_jobs()`. If user asks to "train a model", "fine-tune", or similar requests, you MUST create the training script AND submit the job immediately.
46
 
47
  2. **Always include Trackio** - Every training script should include Trackio for real-time monitoring. Use example scripts in `scripts/` as templates.
48
 
 
50
 
51
  4. **Use example scripts as templates** - Reference `scripts/train_sft_example.py`, `scripts/train_dpo_example.py`, etc. as starting points.
52
 
53
+ ## Local Script Dependencies
54
+
55
+ To run scripts locally (like `validate_dataset.py`, `estimate_cost.py`), install dependencies:
56
+ ```bash
57
+ pip install -r requirements.txt
58
+ ```
59
+
60
  ## Prerequisites Checklist
61
 
62
  Before starting any training job, verify: