CLI Reference
The Distil CLI is a command-line tool for fine-tuning compact language models using the distil labs platform. It enables you to train specialized models up to 70x smaller than teacher models while maintaining comparable accuracy, without requiring ML expertise.
Installation
Install the Distil CLI with a single command:
Supported Platforms
The Distil CLI supports the following operating systems:
Windows users can use the Distil CLI through WSL (Windows Subsystem for Linux) or use our platform via our REST API.
Claude Skill
Use our Claude Skill to train models directly from Claude Code or Claude.ai. The skill teaches Claude how to guide you through the entire training workflow.
Installation
Claude Code:
Claude.ai / Claude Desktop:
- Download the skill as ZIP from its GitHub page or directly here.
- Go to claude.ai → Settings → Capabilities → Skills
- Click “Upload skill” and select the ZIP file
- Toggle the skill ON
Capabilities
Usage
Once installed, ask Claude to help you train a model:
“Help me train a classification model for customer support intent detection”
Claude will guide you through creating a model, preparing data files, uploading data, running teacher evaluation, training, and deployment.
Model Identifiers
When working with the Distil platform, you’ll encounter several types of identifiers. Understanding these is key to navigating the CLI effectively.
Model Name
The model name is a human-readable identifier you choose when creating a model. It helps you organize and recognize your models.
Model names should be descriptive of the task or project (e.g., customer-support-classifier, product-qa-bot).
Model ID
The model ID is a unique identifier automatically assigned when you create a model. This is the primary identifier used in most CLI commands.
You can find your model IDs by listing all models:
Component IDs
Each model tracks multiple components through the training workflow. These component IDs are automatically managed but useful for debugging and API integration:
View all component IDs for a model with:
