InstructLab is an open-source toolkit and workflow designed to fine-tune foundation models using a community-driven, taxonomy-based process.
It enables experts—even those unfamiliar with ML—to contribute small “skill recipes” that enhance a model’s knowledge base.
How does it work?
- Install the CLI tool(ilab)
- pip install instructlab
- Initialize a project
- ilab config init > It sets up a taxonomy repo and configuration.
- Download a base model
- ilab model download > such as IBM granite or Merlinite
- It downloads pre-trained models from HuggingFace
- List the downloaded model
- ilab model list
- Serve the model
- ilab model serve
- Chat with the model
- ilab model chat
Contribute knowledge
- Create skills via recipes
- Add examples(question and answer: YAML format),
- Add and validate your new data.
- ilab taxonomy diff
- Run synthetic data generation.
- ilab data generate
- Train or fine tune the model
- ilab model train --pipeline=simple
- Serve the trained model
- ilab lodel serve --model-path <path>
- Chat with the model
- ilab model chat --model <model>
- Submit recipes as pull requests.