-
Notifications
You must be signed in to change notification settings - Fork 0
/
autotrain.yaml
29 lines (29 loc) · 877 Bytes
/
autotrain.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
spec:
containers:
- name: autotrain
image: <YOUR_REPOSITORY_URL>/autotrain
env:
SNOWFLAKE_MOUNTED_STAGE_PATH: stage
MODEL_CARD: meta-llama/Llama-2-7b-hf # Hugging Face model card
HF_TOKEN: <HF_TOKEN>
PROJECT_NAME: stage/llama-2-ft # Should be in stage/. Name must mirror model card for prompting
resources:
requests:
nvidia.com/gpu: 2 # <2 for base vs. fine-tuned model, otherwise 1>
limits:
nvidia.com/gpu: 2 # <2 for base vs. fine-tuned model, otherwise 1>
volumeMounts:
- name: stage
mountPath: /workspace/stage
endpoints:
- name: jupyter # View fine-tuning logs in jupyter terminal
port: 8888
public: true
- name: app # Quick gradio chat app to confirm fine-tuning
port: 8000
public: true
volumes:
- name: stage
source: '@DATA_STAGE'
uid: 1000
gid: 1000