Instructlab-training

Latest version: v0.8.0

Safety actively analyzes 723326 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 4

0.0.2

Features

This introduces the instructlab library as a package in the instructlab package namespace.

To install it:

bash
pip install instructlab-training


And to install it with flash-attn and other CUDA-dependent packages, you can use

bash
pip install instructlab-training[cuda]


Here's how to use it:

python
from instructlab.training.config import TorchrunArgs, TrainingArgs, run_training

torchrun_args = TorchrunArgs(
nproc_per_node = 1, 1 GPU
nnodes = 1, only 1 overall machine in the system
node_rank = 0, rank of the current machine
rdzv_id = 123, what ID other nodes will join on
rdzv_endpoint = '0.0.0.0:12345' address where other nodes will join
)

training_args = TrainingArgs(
specify training args here
)

run_training(torch_args = torchrun_args, train_args = training_args)

0.0.1

Initial release with same features as v0.0.2.

Page 4 of 4

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.