chore: revert to workspace format (version 3)

This commit is contained in:
shuiyu1123 committed 2026-06-18 19:22:03 +00:00
1 parent 230d47cade
commit ac07c7f06a
1 file changed
+14 -23
+14 -23
View File
@@ -1,23 +1,14 @@
master:
api_trigger:
- name: 训练小狸AI-Epoch100
docker:
build: .ide/Dockerfile
runner:
cpus: 8
tags: cnb:arch:amd64:gpu
env:
CUDA_VISIBLE_DEVICES: "0"
PYTHONUNBUFFERED: "1"
git:
lfs: false
stages:
- name: train
script: |
set -e
echo "=== 小狸AI训练开始 ==="
cd /workspace
nvidia-smi
echo "=== GPU就绪,启动训练 ==="
python3 scripts/train_cnb.py --epochs 100 --batch_size 16
echo "=== 训练完成 ==="
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