File tree Expand file tree Collapse file tree 4 files changed +5
-14
lines changed Expand file tree Collapse file tree 4 files changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ jobs:
138
138
rm -rf /root/.cache/aistudio/
139
139
cd /workspace/PaddleFormers && git config --global --add safe.directory $PWD
140
140
source $work_dir/../../../proxy
141
- timeout 50m bash scripts/unit_test/ci_unit.sh ${paddle_whl}
141
+ timeout 100m bash scripts/unit_test/ci_unit.sh ${paddle_whl}
142
142
'
143
143
fi
144
144
Original file line number Diff line number Diff line change 30
30
class LlamaTokenizer (PretrainedTokenizer ):
31
31
model_input_names = ["input_ids" , "attention_mask" , "position_ids" ]
32
32
resource_files_names = {
33
- "vocab_file" : "sentencepiece.bpe .model" ,
33
+ "vocab_file" : "tokenizer .model" ,
34
34
}
35
35
pretrained_resource_files_map = {
36
36
"vocab_file" : {
Original file line number Diff line number Diff line change @@ -230,13 +230,6 @@ def resolve_file_path(
230
230
endpoint = endpoint ,
231
231
)
232
232
if is_available :
233
- import json
234
-
235
- with open (
236
- "/root/paddlejob/workspace/env_run/fujinji/erniekit/mine_test/download_source/download_kwargs.json" ,
237
- "w" ,
238
- ) as f :
239
- json .dump (download_kwargs , f )
240
233
cached_file = hf_hub_download (
241
234
** download_kwargs ,
242
235
)
Original file line number Diff line number Diff line change 24
24
# repo_id = "PaddleNLP/DeepSeek-R1-Distill-Qwen-1.5B"
25
25
# filename = "model.safetensors"
26
26
# revision = "master"
27
- # local_dir = "./local/model"
27
+ # cache_dir = "./local/model"
28
28
29
29
# # 调用待测试的函数
30
30
# result = resolve_file_path(
31
31
# repo_id=repo_id,
32
32
# filenames=filename,
33
33
# revision=revision,
34
34
# download_hub="aistudio",
35
- # local_dir=local_dir ,
35
+ # cache_dir=cache_dir ,
36
36
# )
37
37
38
38
# # 验证结果
39
- # print(result)
40
- # self.assertEqual(result, f"{local_dir}/{filename}")
39
+ # self.assertEqual(result, f"{cache_dir}/{repo_id}/{filename}")
41
40
42
41
# def test_aistudio_download_transformer(self):
43
42
# # 设置测试数据
55
54
# )
56
55
57
56
# # 验证结果
58
- # print(result)
59
57
# self.assertEqual(result, f"{cache_dir}/{filename}")
60
58
61
59
You can’t perform that action at this time.
0 commit comments