forked from JieGenius/OculiChatDA
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2. 模型路径更新 3. DR0代表健康改为非糖尿病视网膜病变 4. 将cuda版本信息检测放到app.py,避免多次执行
- Loading branch information
Showing
7 changed files
with
139 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import sys | ||
import os | ||
import ruamel.yaml | ||
|
||
mstr = ruamel.yaml.scalarstring.DoubleQuotedScalarString | ||
|
||
MODEL_DIR = "../merged/" | ||
yaml = ruamel.yaml.YAML() | ||
yaml.preserve_quotes = True | ||
yaml.default_flow_style = False | ||
file_name = 'metafile.yml' | ||
# 读取YAML文件内容 | ||
with open(file_name, 'r') as file: | ||
data = yaml.load(file) | ||
data['Models'] = [] | ||
for file in os.listdir(MODEL_DIR): | ||
if file == "metafile.yml": continue | ||
data['Models'].append({ | ||
"Name": mstr(file), | ||
"Results": [dict(Task=mstr("Text Generation"), Dataset=mstr("none"))], | ||
"Weights": mstr(file), | ||
}) | ||
|
||
# 将修改后的数据写回文件 | ||
with open(os.path.join(MODEL_DIR, file_name), 'w') as file: | ||
yaml.dump(data, file) | ||
|
||
print("Modifications saved to the file.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
Collections: | ||
- Name: "OculiChatDA" | ||
License: "Apache-2.0" | ||
Framework: "[]" | ||
Paper: {} | ||
Code: | ||
URL: "https://github.com/JieGenius/OculiChatDA" | ||
Models: | ||
- Name: "config.json" | ||
Results: | ||
- Task: "Text Generation" | ||
Dataset: "none" | ||
- Name: "configuration_internlm.py" | ||
Results: | ||
- Task: "Text Generation" | ||
Dataset: "none" | ||
- Name: "generation_config.json" | ||
Results: | ||
- Task: "Text Generation" | ||
Dataset: "none" | ||
- Name: "modeling_internlm2.py" | ||
Results: | ||
- Task: "Text Generation" | ||
Dataset: "none" | ||
- Name: "pytorch_model-00001-of-00008.bin" | ||
Results: | ||
- Task: "Text Generation" | ||
Dataset: "none" | ||
- Name: "pytorch_model-00002-of-00008.bin" | ||
Results: | ||
- Task: "Text Generation" | ||
Dataset: "none" | ||
- Name: "pytorch_model-00003-of-00008.bin" | ||
Results: | ||
- Task: "Text Generation" | ||
Dataset: "none" | ||
- Name: "pytorch_model-00004-of-00008.bin" | ||
Results: | ||
- Task: "Text Generation" | ||
Dataset: "none" | ||
- Name: "pytorch_model-00005-of-00008.bin" | ||
Results: | ||
- Task: "Text Generation" | ||
Dataset: "none" | ||
- Name: "pytorch_model-00006-of-00008.bin" | ||
Results: | ||
- Task: "Text Generation" | ||
Dataset: "none" | ||
- Name: "pytorch_model-00007-of-00008.bin" | ||
Results: | ||
- Task: "Text Generation" | ||
Dataset: "none" | ||
- Name: "pytorch_model-00008-of-00008.bin" | ||
Results: | ||
- Task: "Text Generation" | ||
Dataset: "none" | ||
- Name: "special_tokens_map.json" | ||
Results: | ||
- Task: "Text Generation" | ||
Dataset: "none" | ||
- Name: "tokenization_internlm.py" | ||
Results: | ||
- Task: "Text Generation" | ||
Dataset: "none" | ||
- Name: "tokenizer_config.json" | ||
Results: | ||
- Task: "Text Generation" | ||
Dataset: "none" | ||
- Name: "tokenizer.model" | ||
Results: | ||
- Task: "Text Generation" | ||
Dataset: "none" | ||
- Name: "pytorch_model.bin.index.json" | ||
Results: | ||
- Task: "Text Generation" | ||
Dataset: "none" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters