KouShi2 commited on
Commit
d5ad725
·
verified ·
1 Parent(s): be092cd

Add evaluation download and restore instructions

Browse files
Files changed (1) hide show
  1. evaluation/README.md +55 -0
evaluation/README.md ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Evaluation 文件说明
2
+
3
+ Evaluation 内容分为两部分保存:
4
+
5
+ - 镜像大文件:Hugging Face Bucket `KouShi2/ailab-code-evaluation-images`
6
+ - 其余代码、配置和评测数据:Dataset Repo `KouShi2/ailab-code-data` 的 `evaluation/` 目录
7
+
8
+ Bucket 保留以下原始目录结构,所有 TAR 均保持原文件名,不重新压缩:
9
+
10
+ ```text
11
+ tb1/images/
12
+ tb2/images/
13
+ ```
14
+
15
+ ## 完整下载与恢复
16
+
17
+ 先安装并登录 Hugging Face CLI:
18
+
19
+ ```bash
20
+ python3 -m pip install -U hf
21
+ hf auth login
22
+ ```
23
+
24
+ 下载 Dataset Repo 中的代码和评测数据:
25
+
26
+ ```bash
27
+ mkdir -p /mnt/shared-storage-gpfs2/intern-agent-dev/shikou/hf
28
+
29
+ hf download KouShi2/ailab-code-data \
30
+ --repo-type dataset \
31
+ --include "evaluation/**" \
32
+ --local-dir /mnt/shared-storage-gpfs2/intern-agent-dev/shikou/hf
33
+ ```
34
+
35
+ 将 Bucket 中的镜像同步回同一个 `evaluation` 目录:
36
+
37
+ ```bash
38
+ hf buckets sync \
39
+ hf://buckets/KouShi2/ailab-code-evaluation-images \
40
+ /mnt/shared-storage-gpfs2/intern-agent-dev/shikou/hf/evaluation
41
+ ```
42
+
43
+ 恢复完成后的关键路径为:
44
+
45
+ ```text
46
+ /mnt/shared-storage-gpfs2/intern-agent-dev/shikou/hf/evaluation/tb1/images/
47
+ /mnt/shared-storage-gpfs2/intern-agent-dev/shikou/hf/evaluation/tb2/images/
48
+ ```
49
+
50
+ 如果目录中带有 `SHA256SUMS`,进入对应目录后执行:
51
+
52
+ ```bash
53
+ sha256sum -c SHA256SUMS
54
+ ```
55
+