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

Commit eeac816

Browse files
authored
Merge pull request #597 from jaideepr97/add-llama-pkg
feat: add llama pipeline pkg
2 parents 73e418a + 8bb22f9 commit eeac816

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
@@ -30,6 +30,7 @@
3030
from instructlab.sdg.eval_data import generate_eval_task_data, mmlubench_pipe_init
3131
from instructlab.sdg.pipeline import (
3232
FULL_PIPELINES_PACKAGE,
33+
LLAMA_PIPELINES_PKG,
3334
SIMPLE_PIPELINES_PACKAGE,
3435
Pipeline,
3536
PipelineContext,
@@ -254,6 +255,8 @@ def _sdg_init(ctx, pipeline):
254255
pipeline_pkg = FULL_PIPELINES_PACKAGE
255256
elif pipeline == "simple":
256257
pipeline_pkg = SIMPLE_PIPELINES_PACKAGE
258+
elif pipeline == "llama":
259+
pipeline_pkg = LLAMA_PIPELINES_PKG
257260
else:
258261
# Validate that pipeline is a valid directory and that it contains the required files
259262
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)