> ## Documentation Index
> Fetch the complete documentation index at: https://docs.monostate.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 帮助系统

> 浏览 CLI 帮助和文档

# 帮助系统

AITraining CLI 拥有全面的帮助系统。

## 通用帮助

查看所有可用命令：

```bash theme={null}
aitraining --help
```

输出显示：

* 可用的子命令
* 全局选项
* 使用示例

## 命令帮助

获取特定命令的帮助：

```bash theme={null}
aitraining llm --help
aitraining text-classification --help
aitraining chat --help
```

## 训练器特定帮助

对于 LLM 训练，参数因训练器而异。查看训练器特定帮助：

```bash theme={null}
# SFT 训练器参数
aitraining llm --trainer sft --help

# DPO 训练器参数
aitraining llm --trainer dpo --help

# ORPO 训练器参数
aitraining llm --trainer orpo --help

# PPO 训练器参数
aitraining llm --trainer ppo --help
```

### 预览模式

在不设置的情况下预览训练器的帮助：

```bash theme={null}
aitraining llm --preview-trainer dpo --help
```

这会显示 DPO 参数，而无需提交到 DPO 训练。

## 参数组

帮助输出将参数组织成组：

* **Basic** - 模型、数据、项目设置
* **Data Processing** - 文本列、聊天模板、标记化
* **Training Configuration** - 训练器、日志记录、保存
* **Training Hyperparameters** - LR、轮次、批次大小
* **PEFT/LoRA** - 适配器设置
* **DPO/ORPO** - 偏好学习参数
* **Hub Integration** - 推送到 Hugging Face
* **Knowledge Distillation** - 教师-学生参数
* **Hyperparameter Sweep** - 自动调优选项
* **Enhanced Evaluation** - 高级指标
* **Advanced Features** - 自定义损失、自定义指标
* **Reinforcement Learning** - PPO 设置
* **Inference** - 推理提示和生成参数

## 查找参数

### 按名称

搜索帮助输出：

```bash theme={null}
aitraining llm --help | grep lora
```

### 按组

在帮助输出中查找节标题：

```
PEFT/LoRA:
  --peft                Enable LoRA training
  --lora-r              LoRA rank (default: 16)
  --lora-alpha          LoRA alpha (default: 32)
```

## 快速参考

| 命令                                  | 用途       |
| ----------------------------------- | -------- |
| `aitraining --help`                 | 所有命令     |
| `aitraining llm --help`             | LLM 训练选项 |
| `aitraining llm --trainer X --help` | 训练器特定选项  |
| `aitraining chat --help`            | 聊天界面选项   |

## 下一步

<CardGroup cols={2}>
  <Card title="LLM 训练" href="/cli/llm-training">
    训练语言模型
  </Card>

  <Card title="YAML 配置" href="/cli/yaml-configs">
    配置文件
  </Card>
</CardGroup>
