-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
95 lines (92 loc) · 2.27 KB
/
docker-compose.yaml
File metadata and controls
95 lines (92 loc) · 2.27 KB
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
95
services:
train_sm_86:
build:
context: .
dockerfile: dockers/train_sm_86.Dockerfile
env_file:
- .env
- .train
environment:
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=compute,utility
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [ gpu ]
volumes:
- .cache/huggingface/:/root/.cache/huggingface/
- .cache/unsloth_compiled_cache/:/trainer/unsloth_compiled_cache/
train:
build:
context: .
dockerfile: dockers/train.Dockerfile
env_file:
- .env
- .train
environment:
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=compute,utility
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [ gpu ]
volumes:
- .cache/huggingface/:/root/.cache/huggingface/
- .cache/unsloth_compiled_cache/:/trainer/unsloth_compiled_cache/
distill:
build:
context: .
dockerfile: dockers/distill.Dockerfile
env_file:
- .env
environment:
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=compute,utility
- VLLM_WORKER_MULTIPROC_METHOD=spawn
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [ gpu ]
ports:
- "8265:8265"
command: >
uv run main.py distill
--limit 100
--publish
--dataset-repo-id gretelai/synthetic_text_to_sql
--publish-repo-id ${NAMESPACE}/sql-distill-Llama-3.2-1B-reasoning
--provider HuggingFace
--model meta-llama/Llama-3.2-1B
--validate
--private-repo
--batch-size 64
jupyter:
build:
context: .
dockerfile: dockers/jupyter.Dockerfile
env_file:
- .env
environment:
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=compute,utility
ports:
- "8888:8888"
- "8000:8000"
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [ gpu ]
volumes:
- ./notebooks:/jupyter/notebooks