Skip to content

Commit f6dd3f0

Browse files
feat: add github action (#14)
* feat: add github action * feat: update github actions * ci: test auto-update hf&ms * ci: update github actions * ci: test auto-update * ci: update github actions' * ci: test auto-update * ci: update github actions * ci: test auto-update * ci: test auto-update
1 parent d90497a commit f6dd3f0

File tree

6 files changed

+181
-113
lines changed

6 files changed

+181
-113
lines changed

.github/workflows/sync_hf_ms.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Sync to HF and ModelScope
2+
3+
on:
4+
push:
5+
paths:
6+
- 'sft_model_eval/**'
7+
8+
jobs:
9+
sync:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout current repo
13+
uses: actions/checkout@v4
14+
with:
15+
lfs: true
16+
fetch-depth: 0
17+
18+
- name: Setup Git and LFS
19+
run: |
20+
git config --global user.name "GitHub Action"
21+
git config --global user.email "[email protected]"
22+
git lfs install --skip-repo
23+
24+
- name: Sync to HuggingFace
25+
env:
26+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
27+
run: |
28+
GIT_LFS_SKIP_SMUDGE=1 git clone "https://oauth2:[email protected]/datasets/yj12869741/SeedBench" hf_repo
29+
30+
cd hf_repo
31+
git config lfs.url "https://oauth2:[email protected]/datasets/yj12869741/SeedBench.git/info/lfs"
32+
33+
rm -rf one-shot zero-shot
34+
cp -r ../sft_model_eval/one-shot ../sft_model_eval/zero-shot .
35+
36+
if [ -z "$(git status --porcelain)" ]; then
37+
echo "No changes detected in HuggingFace repo"
38+
else
39+
echo "Changes detected, pushing to HuggingFace"
40+
git add .
41+
git commit -m "Update sft_model_eval from GitHub"
42+
43+
git lfs push origin main
44+
git push origin main
45+
fi
46+
47+
- name: Sync to ModelScope
48+
env:
49+
MODELSCOPE_TOKEN: ${{ secrets.MODELSCOPE_TOKEN }}
50+
run: |
51+
GIT_LFS_SKIP_SMUDGE=1 git clone "https://oauth2:[email protected]/datasets/y12869741/SeedBench.git" ms_repo
52+
53+
cd ms_repo
54+
git config lfs.url "https://oauth2:[email protected]/datasets/y12869741/SeedBench.git/info/lfs"
55+
56+
rm -rf one-shot zero-shot
57+
cp -r ../sft_model_eval/one-shot ../sft_model_eval/zero-shot .
58+
59+
if [ -z "$(git status --porcelain)" ]; then
60+
echo "No changes detected in ModelScope repo"
61+
else
62+
echo "Changes detected, pushing to ModelScope"
63+
git add .
64+
git commit -m "Update sft_model_eval from GitHub"
65+
66+
git lfs push origin master
67+
git push origin master
68+
fi

sft_model_eval/one-shot/1-2.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1964,7 +1964,7 @@
19641964
"question": "Gmzf_CCCHs主要参与哪些激素介导的信号通路?\nA. GA介导的信号通路\nB. JA介导的信号通路\nC. ABA介导的信号通路\nD. SA介导的信号通路",
19651965
"answer": "B, C",
19661966
"split": {
1967-
"level1": "GWAS",
1967+
"level1": "Gwas",
19681968
"level2": "Glycine max"
19691969
},
19701970
"task_type": "key_multiple_choice"
@@ -1974,7 +1974,7 @@
19741974
"question": "以下哪种性状在单一环境中具有最高的广义遗传力?\nA. 种子产量每株(SYP)\nB. 100粒种子重量(HSW)\nC. 根系长度\nD. 植株高度",
19751975
"answer": "B",
19761976
"split": {
1977-
"level1": "GWAS",
1977+
"level1": "Gwas",
19781978
"level2": "Glycine max"
19791979
},
19801980
"task_type": "key_multiple_choice"
@@ -1984,7 +1984,7 @@
19841984
"question": "以下哪些性状在Chr.04的单倍型等位基因中表现出显著差异?\nA. 叶面积\nB. SPP(每荚种子数)\nC. PPP(每株荚数)\nD. 株高",
19851985
"answer": "B, C",
19861986
"split": {
1987-
"level1": "GWAS",
1987+
"level1": "Gwas",
19881988
"level2": "Glycine max"
19891989
},
19901990
"task_type": "key_multiple_choice"
@@ -1994,7 +1994,7 @@
19941994
"question": "以下哪些基因在大豆根组织中表现出最高的表达水平?\nA. Glyma.09g051100\nB. Glyma.01g220600\nC. Glyma.05g225700\nD. Glyma.11g209100",
19951995
"answer": "D, A, B, C",
19961996
"split": {
1997-
"level1": "GWAS",
1997+
"level1": "Gwas",
19981998
"level2": "Glycine max"
19991999
},
20002000
"task_type": "key_multiple_choice"
@@ -2574,7 +2574,7 @@
25742574
"question": "MLM和FarmCPU模型在P值方面的表现如何?\nA. 产生的P值与预期P值相似\nB. 有效控制错误关联\nC. 产生的P值与预期P值不符\nD. 无法控制错误关联",
25752575
"answer": "A, B",
25762576
"split": {
2577-
"level1": "GWAS",
2577+
"level1": "Gwas",
25782578
"level2": "Zea mays L."
25792579
},
25802580
"task_type": "key_multiple_choice"
@@ -2784,7 +2784,7 @@
27842784
"question": "植物基因组中基因复制的常见类型包括哪些?\nA. 片段复制\nB. 逆转录复制\nC. 串联复制\nD. 单一基因复制",
27852785
"answer": "C, A",
27862786
"split": {
2787-
"level1": "GWAS",
2787+
"level1": "Gwas",
27882788
"level2": "Glycine max"
27892789
},
27902790
"task_type": "key_multiple_choice"
@@ -2794,7 +2794,7 @@
27942794
"question": "MCScanX工具用于分析什么?\nA. 基因复制\nB. 基因表达\nC. 基因突变\nD. 基因组测序",
27952795
"answer": "A",
27962796
"split": {
2797-
"level1": "GWAS",
2797+
"level1": "Gwas",
27982798
"level2": "Glycine max"
27992799
},
28002800
"task_type": "key_multiple_choice"

sft_model_eval/one-shot/1-3.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2314,7 +2314,7 @@
23142314
"question": "在HY15环境中,与JP14相比,大豆种子的正常幼苗率(NSR)平均值________。",
23152315
"answer": "较低",
23162316
"split": {
2317-
"level1": "GWAS",
2317+
"level1": "Gwas",
23182318
"level2": "Glycine max"
23192319
},
23202320
"task_type": "key_blank_fill"
@@ -2324,7 +2324,7 @@
23242324
"question": "在HY15环境中,与JP14相比,大豆种子的电导率(EC)平均值________。",
23252325
"answer": "较高",
23262326
"split": {
2327-
"level1": "GWAS",
2327+
"level1": "Gwas",
23282328
"level2": "Glycine max"
23292329
},
23302330
"task_type": "key_blank_fill"
@@ -2334,7 +2334,7 @@
23342334
"question": "在多个环境和不同的GWAS模型中稳定检测到的SNP被称为________。",
23352335
"answer": "稳定的多性状关联(MTAs)",
23362336
"split": {
2337-
"level1": "GWAS",
2337+
"level1": "Gwas",
23382338
"level2": "Glycine max"
23392339
},
23402340
"task_type": "key_blank_fill"
@@ -2344,7 +2344,7 @@
23442344
"question": "SNP AX-93793,210 是使用四种不同的GWAS模型识别的,这些模型包括________。",
23452345
"answer": "BLINK, FarmCPU, GLM, 和 MLMM",
23462346
"split": {
2347-
"level1": "GWAS",
2347+
"level1": "Gwas",
23482348
"level2": "Glycine max"
23492349
},
23502350
"task_type": "key_blank_fill"
@@ -3504,7 +3504,7 @@
35043504
"question": "GRMZM2G016477基因被预测编码为一种富含亮氨酸重复的________。 ",
35053505
"answer": "受体样蛋白激酶",
35063506
"split": {
3507-
"level1": "GWAS",
3507+
"level1": "Gwas",
35083508
"level2": "Zea mays L."
35093509
},
35103510
"task_type": "key_blank_fill"
@@ -3514,7 +3514,7 @@
35143514
"question": "被识别为根分枝负调控因子的两个基因是________和________。",
35153515
"answer": "Zm00001d050783,Zm00001d017751",
35163516
"split": {
3517-
"level1": "GWAS",
3517+
"level1": "Gwas",
35183518
"level2": "Zea mays L."
35193519
},
35203520
"task_type": "key_blank_fill"
@@ -3524,7 +3524,7 @@
35243524
"question": "在种子萌发过程中,Zm00001d003657 的表达模式是________。",
35253525
"answer": "下调",
35263526
"split": {
3527-
"level1": "GWAS",
3527+
"level1": "Gwas",
35283528
"level2": "Zea mays L."
35293529
},
35303530
"task_type": "key_blank_fill"
@@ -3534,7 +3534,7 @@
35343534
"question": "Zm00001d029793 编码的是一种________。",
35353535
"answer": "glutathione S-transferase F9",
35363536
"split": {
3537-
"level1": "GWAS",
3537+
"level1": "Gwas",
35383538
"level2": "Zea mays L."
35393539
},
35403540
"task_type": "key_blank_fill"
@@ -3544,7 +3544,7 @@
35443544
"question": "在 SCL326 中,Zm00001d017932 在种子萌发期间的表达是________。",
35453545
"answer": "上调",
35463546
"split": {
3547-
"level1": "GWAS",
3547+
"level1": "Gwas",
35483548
"level2": "Zea mays L."
35493549
},
35503550
"task_type": "key_blank_fill"
@@ -4054,7 +4054,7 @@
40544054
"question": "大多数Gmzf_CCCH基因(116个中的104个)定位于________。 ",
40554055
"answer": "细胞核",
40564056
"split": {
4057-
"level1": "GWAS",
4057+
"level1": "Gwas",
40584058
"level2": "Glycine max"
40594059
},
40604060
"task_type": "key_blank_fill"
@@ -4064,7 +4064,7 @@
40644064
"question": "Branch Number (BN) 受________和________的影响。 ",
40654065
"answer": "G, G × E",
40664066
"split": {
4067-
"level1": "GWAS",
4067+
"level1": "Gwas",
40684068
"level2": "Glycine max"
40694069
},
40704070
"task_type": "key_blank_fill"
@@ -4074,7 +4074,7 @@
40744074
"question": "显著的SNP(AX-93793,210)位于________号染色体上。",
40754075
"answer": "11",
40764076
"split": {
4077-
"level1": "GWAS",
4077+
"level1": "Gwas",
40784078
"level2": "Glycine max"
40794079
},
40804080
"task_type": "key_blank_fill"
@@ -4084,7 +4084,7 @@
40844084
"question": "极度敏感的大豆种质在碱性处理下与对照组相比,________显著减少。",
40854085
"answer": "地上部分和根部生物量",
40864086
"split": {
4087-
"level1": "GWAS",
4087+
"level1": "Gwas",
40884088
"level2": "Glycine max"
40894089
},
40904090
"task_type": "key_blank_fill"
@@ -4094,7 +4094,7 @@
40944094
"question": "在对357个大豆地方品种进行分组时,使用了________算法来根据相似性进行分组。 ",
40954095
"answer": "K-means聚类",
40964096
"split": {
4097-
"level1": "GWAS",
4097+
"level1": "Gwas",
40984098
"level2": "Glycine max"
40994099
},
41004100
"task_type": "key_blank_fill"
@@ -4104,7 +4104,7 @@
41044104
"question": "在识别出的三个组中,组I包含________个地方品种。 ",
41054105
"answer": "92",
41064106
"split": {
4107-
"level1": "GWAS",
4107+
"level1": "Gwas",
41084108
"level2": "Glycine max"
41094109
},
41104110
"task_type": "key_blank_fill"

0 commit comments

Comments
 (0)