Skip to content
This repository was archived by the owner on Apr 30, 2026. It is now read-only.

Commit 8bb22f9

Browse files
committed
add llama pipeline pkg
Signed-off-by: Jaideep Rao <jrao@redhat.com>
1 parent 13db01c commit 8bb22f9

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/instructlab/sdg/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"SetToMajorityValueBlock",
2929
"FULL_PIPELINES_PACKAGE",
3030
"SIMPLE_PIPELINES_PACKAGE",
31+
"LLAMA_PIPELINES_PKG",
3132
"generate_data",
3233
"mix_datasets",
3334
)
@@ -54,6 +55,7 @@
5455
from .generate_data import generate_data, mix_datasets
5556
from .pipeline import (
5657
FULL_PIPELINES_PACKAGE,
58+
LLAMA_PIPELINES_PKG,
5759
SIMPLE_PIPELINES_PACKAGE,
5860
EmptyDatasetError,
5961
Pipeline,

src/instructlab/sdg/generate_data.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
from instructlab.sdg.eval_data import generate_eval_task_data, mmlubench_pipe_init
3030
from instructlab.sdg.pipeline import (
3131
FULL_PIPELINES_PACKAGE,
32+
LLAMA_PIPELINES_PKG,
3233
SIMPLE_PIPELINES_PACKAGE,
3334
Pipeline,
3435
PipelineContext,
@@ -253,6 +254,8 @@ def _sdg_init(ctx, pipeline):
253254
pipeline_pkg = FULL_PIPELINES_PACKAGE
254255
elif pipeline == "simple":
255256
pipeline_pkg = SIMPLE_PIPELINES_PACKAGE
257+
elif pipeline == "llama":
258+
pipeline_pkg = LLAMA_PIPELINES_PKG
256259
else:
257260
# Validate that pipeline is a valid directory and that it contains the required files
258261
if not os.path.exists(pipeline):

src/instructlab/sdg/pipeline.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,3 +323,4 @@ def _parse_pipeline_config_file(pipeline_yaml):
323323
SIMPLE_PIPELINES_PACKAGE = "instructlab.sdg.pipelines.simple"
324324
FULL_PIPELINES_PACKAGE = "instructlab.sdg.pipelines.full"
325325
EVAL_PIPELINES_PKG = "instructlab.sdg.pipelines.eval"
326+
LLAMA_PIPELINES_PKG = "instructlab.sdg.pipelines.llama"

0 commit comments

Comments
 (0)