-
Notifications
You must be signed in to change notification settings - Fork 1
/
deployment2.yaml
47 lines (45 loc) · 1.14 KB
/
deployment2.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
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: llm-test
name: llm-test-2
annotations: {}
spec:
selector:
matchLabels:
app: llm-test-2
replicas: 1
template:
metadata:
labels:
app: llm-test-2
spec:
nodeName: node1
containers:
- name: llm-test-2
image: llm-train
imagePullPolicy: IfNotPresent
command: ["/bin/sh", "-c", "--"]
args: ["while true; do sleep 30; done;"]
# torchrun --nnodes 2 --nproc_per_node 2 --rdzv-id=123 --rdzv-backend=c10d --rdzv-endpoint=llm-test.llm-test.svc.cluster.local:29500 --local_addr llm-test-2.llm-test.svc.cluster.local finetuning.py --enable_fsdp --quantization False --use_fp16 True --fsdp_config.optimizer SGD --split_slice 1%
resources:
limits:
nvidia.com/gpu: 4
requests:
cpu: 500m
memory: 16Gi
nvidia.com/gpu: 4
---
apiVersion: v1
kind: Service
metadata:
namespace: llm-test
name: llm-test-2
spec:
clusterIP: None
ports:
- name: c10d
port: 29500
protocol: TCP
selector:
app: llm-test-2