models: 完整权重按新目录名入库(LFS),清理 qwen3 命名与旧路径

- models/{small_model,large_model,large_model_lora} 整树入库,权重/分词器走 Git LFS(约 17 GB)
- .gitattributes 改用 models/** 通配;.gitignore 放行 models 下的 tokenizer_config.json
- config: llm[].file 指向 models/small_model,删除含 qwen3 的注释
- docs/plugins.md、tests/test_config.py 同步新路径;LoRA 卡去掉 base_model 私有路径字段
- 补入 intent_bench / shieldagent_review / result.json 等实验脚本与结果
This commit is contained in:
agcl committed 2026-11-27 13:41:00 +00:00
1 parent 594dc0f6b2
commit a372a7b285
55 files changed
+164063 -93

No files matched your search

+2 -2
View File
@@ -42,7 +42,7 @@ def check_model_dir(path: pathlib.Path) -> bool:
config_json = path / "config.json"
passed &= ok("config.json 存在") if config_json.is_file() else fail("config.json 缺失")
if config_json.is_file():
# 宿主按 Qwen3Guard 的 Safety/Categories 文本解析,换别的 guard 模型会全部 503
# 宿主按守卫模型的 Safety/Categories 文本解析,换别的 guard 模型会全部 503
try:
cfg = json.loads(config_json.read_text(encoding="utf-8"))
except (OSError, ValueError):
@@ -51,7 +51,7 @@ def check_model_dir(path: pathlib.Path) -> bool:
if "qwen" in model_type.lower():
passed &= ok("model_type", model_type)
else:
print(f" WARN model_type={model_type or '?'};宿主解析器按 Qwen3Guard 格式工作,"
print(f" WARN model_type={model_type or '?'};宿主解析器按守卫模型的输出格式工作,"
"其它 guard 模型会解析失败")
weights = [p for p in path.iterdir() if p.suffix in WEIGHT_SUFFIXES]