Hugging Face
使用 TRL 或 Unsloth 结合 Hugging Face Jobs 训练和微调语言模型及视觉模型。
REVIEWED DOCUMENTATION EVIDENCE
以下内容来自与当前版本绑定并经 reviewer 批准的上游文档证据。它说明文档中存在相应安装或使用信息,不代表平台已经执行安装、完成兼容测试或验证运行结果。
使用证据
### Approach 2: TRL Maintained Scripts (Official Examples)
TRL provides battle-tested scripts for all methods. Can be run from URLs:
```python
hf_jobs("uv", {
"script": "https://github.com/huggingface/trl/blob/main/trl/scripts/sft.py",
"script_args": [
"--model_name_or_path", "Qwen/Qwen2.5-0.5B",
"--dataset_name", "trl-lib/Capybara",
"--output_dir", "my-model",
"--push_to_hub",
"--hub_model_id", "username/my-model"
],
"flavor": "a10g-large",
"timeout": "2h",
"secrets": {"HF_TOKEN": "$HF_TOKEN"}
})
```
**Benefits:** No code to write, maintained by TRL team, production-tested
**When to use:** Standard TRL training, quick experiments, don't need custom code
**Available:** Scripts are available from https://github.com/huggingface/trl/tree/main/examples/scripts### Example -- choosing an OCR base model ```bash
## Example Training Scripts **Production-ready templates with all best practices:** Load these scripts for correctly: - **`scripts/train_sft_example.py`** - Complete SFT training with Trackio, LoRA, checkpoints - **`scripts/train_dpo_example.py`** - DPO training for preference learning - **`scripts/train_grpo_example.py`** - GRPO training for online RL These scripts demonstrate proper Hub saving, Trackio integration, checkpoint management, and optimized parameters. Pass their content inline to `hf_jobs()` or use as templates for custom scripts.
USER EXPERIENCE
暂无真实用户评价
如果你实际使用过这个 Skill,可以分享具体场景、效果和踩坑。平台不会用评价替代 VERIFIED、安全或兼容性证据。
REQUIREMENTS
当前版本没有声明额外依赖。
权限、网络访问和静态扫描结果放在“安全与兼容”页签,避免把工程细节堆在概览里。
同分类下最近更新的技能,按更新时间排序。
LLM数据自动化
1.0.0LLM数据自动化
2026-09-23
python-code-pep8-style
0.1.02026-09-23
proof
2.0.12026-09-23
project-explorer-skill
1.0.02026-09-23
pagesskill
1.0.02026-09-23
Orthogonal API Platform - Access paid APIs using the SDK, Run API, or x402 direct payment. Search, discover, and integrate APIs with simple tool calls.
1.0.02026-09-23