全局选项
这些选项在大多数 AITraining CLI 命令中都可以使用。版本
检查已安装的版本:帮助
获取任何命令的帮助:配置文件
从 YAML 配置文件加载参数:- 可重现的实验
- 复杂的配置
- 与团队成员共享设置
后端
指定训练运行的位置:| 后端 | 描述 |
|---|---|
local | 在本地机器上运行(默认)。变体:local-cli、local-ui |
spaces-* | 在 Hugging Face Spaces 上运行 |
ep-* | Hugging Face Endpoints |
ngc-* | NVIDIA NGC/DGX Cloud |
nvcf-* | NVIDIA Cloud Functions |
Spaces 后端选项
| 后端 | GPU |
|---|---|
spaces-t4-small | T4 (small) |
spaces-t4-medium | T4 (medium) |
spaces-a10g-small | A10G (small) |
spaces-a10g-large | A10G (large) |
spaces-a10g-largex2 | 2x A10G |
spaces-a10g-largex4 | 4x A10G |
spaces-a100-large | A100 |
spaces-l4x1 | 1x L4 |
spaces-l4x4 | 4x L4 |
spaces-l40sx1 | 1x L40S |
spaces-l40sx4 | 4x L40S |
spaces-l40sx8 | 8x L40S |
spaces-cpu-basic | 仅 CPU |
spaces-cpu-upgrade | CPU(升级版) |
推送到 Hub 也需要身份验证:即使使用
--backend local,使用 --push-to-hub 也需要 --username 和 --token 才能将模型上传到 Hugging Face Hub。环境变量
在运行命令之前设置这些变量:身份验证
GPU 配置
MPS(Apple Silicon)控制
交互模式
启动配置向导:下一步
YAML 配置
配置文件格式
命令结构
完整命令参考