chore: add vscode service to enable SSH in workspace

This commit is contained in:
shuiyu1123 committed 2026-06-18 19:53:09 +00:00
1 parent ac07c7f06a
commit f5dd3e5874
1 file changed
+18 -14
+18 -14
View File
@@ -1,14 +1,18 @@
version: "3"
tasks:
- name: "训练小狸AI-Epoch100"
image:
dockerfile: .ide/Dockerfile
resources:
cpu: 8
memory: 32G
gpu: 1
env:
CUDA_VISIBLE_DEVICES: "0"
PYTHONUNBUFFERED: "1"
commands:
- cd /workspace && nvidia-smi && python3 scripts/train_cnb.py --epochs 100 --batch_size 16
$:
vscode:
- docker:
build: .ide/Dockerfile
runner:
cpus: 8
tags: cnb:arch:amd64:gpu
services:
- vscode
- docker
env:
CUDA_VISIBLE_DEVICES: "0"
PYTHONUNBUFFERED: "1"
stages:
- name: ls
script: ls -al
- name: 开始训练
script: cd /workspace && nvidia-smi && python3 scripts/train_cnb.py --epochs 100 --batch_size 16