이 콘텐츠는 선택한 언어로 제공되지 않습니다.

Chapter 1. Red Hat Enterprise Linux AI command line interface reference


This reference provides descriptions and examples for the Red Hat Enterprise Linux AI CLI (ilab) commands.

1.1. Red Hat Enterprise Linux AI CLI commands

1.1.1. ilab config

Command Group for Interacting with the configuration of InstructLab

Example usage

# Prints the usable commands in the config group
ilab config

1.1.1.1. ilab config init

Initializes environment for InstructLab

Example usage

# Set up the InstructLab environment
ilab config init

1.1.1.2. ilab config show

Displays current state of the config file stored at ~/.config/instructlab/config.yaml

Example usage

# Shows the `config.yaml` file on your system
ilab config show

1.1.1.3. ilab config edit

Allows you to edit the config stored at ~/.config/config.yaml

Example usage

# Opens a vim shell where you can edit your config file
ilab config edit

1.1.2. ilab data

Command Group for Interacting with the data generated by InstructLab

Example usage

# Prints the usable commands in the data group
ilab data

1.1.2.1. ilab data generate

Runs the synthetic data generation (SDG) process for InstructLab

Example usage

# Runs the SDG process on the default model, the default model is specified in the `~/.config/config.yaml`
ilab data generate

# Runs the SDG process on a selected model
ilab data generate --model <model-name>

# Runs the SDG process on the customized taxonomy path
ilab data generate --taxonomy-path <path-to-taxonomy>

# Edits the `config.yaml` to use a specified number of GPUs in SDG
ilab data generate --gpus <num-gpus>

1.1.2.2. ilab data list

Displays every dataset in the datasets directory, ` ~/.local/instructlab/datasets` , on your machine

Example usage

# List every dataset in the datasets directory
ilab data list

1.1.3. ilab model

Command Group for Interacting with the models in InstructLab

Example usage

# Prints the usable commands in the model group
ilab model

1.1.3.1. ilab model chat

Run a chat using the modified model

Example usage

# 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 model download

Downloads the model(s)

Example usage

# 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 model evaluate

Runs the evaluation process on the model

Example usage

# Runs the evaluation process on the MMLU benchmark
ilab model evaluate --benchmark mmlu

# Runs the evaluation process on the MT_BENCH benchmark
ilab model evaluate --benchmark mt_bench

# Runs the evaluation process on the MMLU_BRANCH benchmark
ilab model evaluate --benchmark mmlu_branch

# Runs the evaluation process on the MT_BENCH_BRANCH benchmark
ilab model evaluate --benchmark mt_bench_branch

1.1.3.4. ilab model list

Lists all the models installed on your system

Example usage

* List all the installed models
ilab model list

1.1.3.5. ilab model train

Runs the training process on the model

Example usage

# 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 model serve

Serves the model on an endpoint

Example usage

# Serves the default model to the server
ilab model serve

# Serves the specified model to the server
ilab model serve --model-path <path-to-model>

# Serves the default model using a specified number of GPUs
ilab model serve --gpus <num-gpus>

1.1.4. ilab system

Command group for all system-related commands

Example usage

# Prints the usable commands in the system group
ilab system

1.1.4.1. ilab system info

Displays the hardware specifications of your system

Example usage

#Prints the hardware specifications of your machine
ilab system info

1.1.5. ilab taxonomy

Command Group for Interacting with the taxonomy path of InstructLab

Example usage

# Prints the usable commands in the taxonomy group
ilab taxonomy

1.1.5.1. ilab taxonomy diff

Lists taxonomy files that you changed and verifies that the taxonomy is valid

Example usage

# 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>

Red Hat logoGithubRedditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

© 2024 Red Hat, Inc.