forked from defenseunicorns/leapfrogai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzarf.yaml
62 lines (58 loc) · 2.02 KB
/
zarf.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
# yaml-language-server: $schema=https://raw.githubusercontent.com/defenseunicorns/uds-cli/v0.16.0/zarf.schema.json
kind: ZarfPackageConfig
metadata:
name: llama-cpp-python
version: "###ZARF_PKG_TMPL_IMAGE_VERSION###"
description: >
llama-cpp-python model
constants:
- name: IMAGE_VERSION
value: "###ZARF_PKG_TMPL_IMAGE_VERSION###"
variables:
- name: PVC_SIZE
description: Size of the PVC used for model storage.
default: "15Gi"
pattern: "^[0-9]+[a-zA-Z]+$"
- name: PVC_ACCESS_MODE
description: Access mode of the PVC used for model storage.
default: "ReadWriteOnce"
pattern: "^(ReadWriteOnce|ReadOnlyMany|ReadWriteMany)$"
- name: PVC_STORAGE_CLASS
description: Storage class of the PVC used for model storage.
default: "local-path"
components:
- name: llama-cpp-python-model
required: true
only:
flavor: upstream
charts:
- name: llama-cpp-python-model
namespace: leapfrogai
localPath: chart
releaseName: llama-cpp-python-model
# x-release-please-start-version
version: 0.14.0
# x-release-please-end
valuesFiles:
- "values/upstream-values.yaml"
images:
- ghcr.io/defenseunicorns/leapfrogai/llama-cpp-python:###ZARF_PKG_TMPL_IMAGE_VERSION###
- cgr.dev/chainguard/bash:latest
dataInjections:
- source: .model/
target:
namespace: leapfrogai
selector: app=lfai-llama-cpp-python
container: data-loader
path: /data/.model
compress: true
actions:
onCreate:
before:
# NOTE: This assumes python is installed and in $PATH and 'huggingface_hub[cli,hf_transfer]' has been installed
- cmd: python scripts/model_download.py
env:
- REPO_ID=TheBloke/SynthIA-7B-v2.0-GGUF
- FILENAME=synthia-7b-v2.0.Q4_K_M.gguf
- REVISION=3f65d882253d1f15a113dabf473a7c02a004d2b5
- SHA256_CHECKSUM=5d6369d456446c40a9fd149525747d8dc494196686861c43b00f9230a166ba82