chenjie2 commited on
Commit
7b8114e
·
verified ·
1 Parent(s): 0c86351

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. podcreate.yaml +59 -0
podcreate.yaml ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ kind: Pod
3
+ metadata:
4
+ name: speedtest
5
+ namespace: speedtest
6
+ labels:
7
+ app: dev
8
+ spec:
9
+ restartPolicy: Never
10
+ containers:
11
+ - name: dev-container
12
+ image: registry.hd-02.alayanew.com:8443/liujw/pytorch:1.0.0
13
+ imagePullPolicy: Always
14
+ resources:
15
+ requests: # Added resource requests
16
+ memory: "400G"
17
+ cpu: "26"
18
+ nvidia.com/gpu-h100-80gb-hbm3: 2
19
+ rdma/rdma_shared_device_a: 1
20
+ rdma/rdma_shared_device_b: 1
21
+ limits:
22
+ memory: "400G" # Added memory limit
23
+ cpu: "26" # Added CPU limit
24
+ nvidia.com/gpu-h100-80gb-hbm3: 2
25
+ rdma/rdma_shared_device_a: 1
26
+ rdma/rdma_shared_device_b: 1
27
+ env:
28
+ - name: NCCL_IB_DISABLE
29
+ value: "0"
30
+ - name: NCCL_SOCKET_IFNAME
31
+ value: "eth0"
32
+ - name: NCCL_IB_HCA
33
+ value: "ib7s"
34
+
35
+ ports: # 添加端口映射
36
+ - containerPort: 80 # 容器内应用的端口
37
+ name: http-port
38
+ protocol: TCP
39
+ command: ["sh", "-c", "tail -f /dev/null"]
40
+ volumeMounts:
41
+ - name: workspace
42
+ mountPath: "/workspace"
43
+ - name: dshm
44
+ mountPath: /dev/shm
45
+ imagePullSecrets:
46
+ - name: harbor-secret
47
+ volumes:
48
+ - name: workspace
49
+ persistentVolumeClaim:
50
+ claimName: pvc-capacity-userdata
51
+ - name: dshm
52
+ emptyDir:
53
+ medium: Memory
54
+ sizeLimit: 400G
55
+ tolerations:
56
+ - key: nvidia.com/gpu
57
+ operator: Exists
58
+ effect: NoSchedule
59
+