重构eval代码

This commit is contained in:
lzy
2025-05-28 15:43:50 +08:00
parent 9f5318c23d
commit 9abd8fc1c5
39 changed files with 2468 additions and 166 deletions

View File

@@ -0,0 +1,36 @@
# API配置
api:
key: "sk-oYh3Xrhg8oDY2gW02c966f31C84449Ad86F9Cd9dF6E64a8d"
base_url: "https://vip.apiyi.com/v1"
temperature: 0
max_retries: 10
# 支持多个模型
models:
- "qwen-max-2025-01-25"
- "gpt-4o"
# 或者使用单个模型(向后兼容)
# model: "qwen-max-2025-01-25"
# 系统提示词
system_prompt: "You are an expert in the field of materials science, adept at answering questions related to fundamental aspects of materials science, including material structure, properties, processing, and applications."
# 评估配置
evaluation:
max_workers: 8
input_file: "/home/ubuntu/50T/LYT/MatBench/layer1/ALL-merge/merged.json"
# 输出配置
output:
base_dir: "results"
auto_timestamp: true
filename_template: "{model}.json"
summary_filename: "summary.json"
# 输出格式选项
export_formats:
- "json" # 详细JSON结果
- "csv" # CSV表格
- "excel" # Excel表格需要openpyxl
# 日志配置
logging:
level: "INFO"
format: "%(asctime)s - %(name)s - %(levelname)s - %(message)s"