CLI 参考指南
第 1 章 Red Hat Enterprise Linux AI 命令行界面参考 复制链接链接已复制到粘贴板!
本参考提供了 Red Hat Enterprise Linux AI CLI (ilab)命令的描述和示例。
1.1. Red Hat Enterprise Linux AI CLI 命令 复制链接链接已复制到粘贴板!
1.1.1. ilab config 复制链接链接已复制到粘贴板!
与 InstructLab 配置交互的命令组
用法示例
# Prints the usable commands in the config group ilab config
# Prints the usable commands in the config group
ilab config
1.1.1.1. ilab config init 复制链接链接已复制到粘贴板!
为 InstructLab 初始化环境
用法示例
# Set up the InstructLab environment ilab config init
# Set up the InstructLab environment
ilab config init
1.1.1.2. ilab config show 复制链接链接已复制到粘贴板!
显示存储在 ~/.config/instructlab/config.yaml的配置文件的当前状态
用法示例
# Shows the `config.yaml` file on your system ilab config show
# Shows the `config.yaml` file on your system
ilab config show
1.1.1.3. ilab config edit 复制链接链接已复制到粘贴板!
您可以编辑存储在 ~/.config/config.yaml中的配置
用法示例
# Opens a vim shell where you can edit your config file ilab config edit
# Opens a vim shell where you can edit your config file
ilab config edit
1.1.2. ilab data 复制链接链接已复制到粘贴板!
用于与 InstructLab 生成的数据交互的命令组
用法示例
# Prints the usable commands in the data group ilab data
# Prints the usable commands in the data group
ilab data
1.1.2.1. ilab data generate 复制链接链接已复制到粘贴板!
为 InstructLab 运行复合数据生成(SDG)进程
用法示例
1.1.2.2. ilab 数据列表 复制链接链接已复制到粘贴板!
在您的计算机上显示 datasets 目录中每个数据集 ' ~/.local/instructlab/datasets'
用法示例
# List every dataset in the datasets directory ilab data list
# List every dataset in the datasets directory
ilab data list
1.1.3. ilab 模型 复制链接链接已复制到粘贴板!
用于与 InstructLab 中模型交互的命令组
用法示例
# Prints the usable commands in the model group ilab model
# Prints the usable commands in the model group
ilab model
1.1.3.1. ilab model chat 复制链接链接已复制到粘贴板!
使用修改后的模型运行聊天
用法示例
# Creates a virtual environment to chat with the model ilab model chat # Creates a virtual environment to chat with a specified model ilab model chat --model <model-name>
# Creates a virtual environment to chat with the model
ilab model chat
# Creates a virtual environment to chat with a specified model
ilab model chat --model <model-name>
1.1.3.2. ilab 模型下载 复制链接链接已复制到粘贴板!
下载模型
用法示例
# Downloads the default models ilab model download # Downloads the models from a specific repository ilab model download --repository <name-of-repository>
# Downloads the default models
ilab model download
# Downloads the models from a specific repository
ilab model download --repository <name-of-repository>
1.1.3.3. ilab 模型评估 复制链接链接已复制到粘贴板!
对模型运行评估过程
用法示例
1.1.3.4. ilab 模型列表 复制链接链接已复制到粘贴板!
列出系统上安装的所有模型
用法示例
* List all the installed models ilab model list
* List all the installed models
ilab model list
1.1.3.5. ilab 模式培训 复制链接链接已复制到粘贴板!
在模型上运行培训流程
用法示例
# Runs the training process on the default model from the config.yaml ilab model train # Runs the training process on a specified model ilab model train --model-name <name-of-model>
# Runs the training process on the default model from the config.yaml
ilab model train
# Runs the training process on a specified model
ilab model train --model-name <name-of-model>
1.1.3.6. ilab 模型服务 复制链接链接已复制到粘贴板!
在端点上提供模型
用法示例
1.1.4. ilab 系统 复制链接链接已复制到粘贴板!
所有系统相关命令的命令组
用法示例
# Prints the usable commands in the system group ilab system
# Prints the usable commands in the system group
ilab system
1.1.4.1. ilab 系统信息 复制链接链接已复制到粘贴板!
显示您的系统的硬件规格
用法示例
#Prints the hardware specifications of your machine ilab system info
#Prints the hardware specifications of your machine
ilab system info
1.1.5. ilab taxonomy 复制链接链接已复制到粘贴板!
用于与 InstructLab 的 taxonomy 路径交互的命令组
用法示例
# Prints the usable commands in the taxonomy group ilab taxonomy
# Prints the usable commands in the taxonomy group
ilab taxonomy
1.1.5.1. ilab taxonomy diff 复制链接链接已复制到粘贴板!
列出您更改的 taxonomy 文件,并验证 taxonomy 是否有效
用法示例
# Prints the taxonomy files you changed and verifies that the taxonomy is valid ilab taxonomy diff # Prints the taxonomy files in a specified path and verifies that the taxonomy is valid ilab taxonomy diff --taxonomy-path <path-to-taxonomy>
# Prints the taxonomy files you changed and verifies that the taxonomy is valid
ilab taxonomy diff
# Prints the taxonomy files in a specified path and verifies that the taxonomy is valid
ilab taxonomy diff --taxonomy-path <path-to-taxonomy>