-
Notifications
You must be signed in to change notification settings - Fork 24
/
importer-pipeline.yaml
94 lines (94 loc) · 2.93 KB
/
importer-pipeline.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# PIPELINE DEFINITION
# Name: instructlab-base-importer
# Description: Helper pipeline to the InstructLab pipeline which allows users to seed/import a new base model
# Inputs:
# release: str [Default: 'latest']
# repository: str [Default: 'docker://registry.redhat.io/rhelai1/granite-7b-starter']
components:
comp-ilab-importer-op:
executorLabel: exec-ilab-importer-op
inputDefinitions:
parameters:
release:
parameterType: STRING
repository:
parameterType: STRING
outputDefinitions:
artifacts:
base_model:
artifactType:
schemaTitle: system.Model
schemaVersion: 0.0.1
deploymentSpec:
executors:
exec-ilab-importer-op:
container:
args:
- ilab --config=DEFAULT model download --repository {{$.inputs.parameters['repository']}}
--release {{$.inputs.parameters['release']}} --model-dir {{$.outputs.artifacts['base_model'].path}}
command:
- /bin/sh
- -c
env:
- name: REGISTRY_AUTH_FILE
value: /mnt/containers/.dockerconfigjson
- name: XDG_CACHE_HOME
value: /tmp
- name: XDG_CONFIG_HOME
value: /tmp
- name: XDG_DATA_HOME
value: /tmp
image: registry.stage.redhat.io/rhelai1/instructlab-nvidia-rhel9:1.3.1
pipelineInfo:
description: Helper pipeline to the InstructLab pipeline which allows users to seed/import
a new base model
displayName: InstructLab - base model importer
name: instructlab-base-importer
root:
dag:
tasks:
ilab-importer-op:
cachingOptions:
enableCache: true
componentRef:
name: comp-ilab-importer-op
inputs:
parameters:
release:
componentInputParameter: release
repository:
componentInputParameter: repository
taskInfo:
name: ilab-importer-op
inputDefinitions:
parameters:
release:
defaultValue: latest
description: The revision of the model to download - e.g. a branch, tag, or
commit hash for Hugging Face repositories and tag or commit hash for OCI
repositories.
isOptional: true
parameterType: STRING
repository:
defaultValue: docker://registry.redhat.io/rhelai1/granite-7b-starter
description: Hugging Face or OCI repository of the model to download. OCI
repository must have a docker:// prefix
isOptional: true
parameterType: STRING
schemaVersion: 2.1.0
sdkVersion: kfp-2.9.0
---
platforms:
kubernetes:
deploymentSpec:
executors:
exec-ilab-importer-op:
secretAsEnv:
- keyToEnv:
- envVar: HF_TOKEN
secretKey: HF_TOKEN
secretName: hugging-face-token
secretAsVolume:
- mountPath: /mnt/containers
optional: false
secretName: 7033380-ilab-pull-secret