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:
1 parent
594dc0f6b2
commit
a372a7b285
55 files changed
+164063
-93
No files matched your search
@@ -25,13 +25,13 @@ def test_configuration_and_paths(tmp_path, monkeypatch):
|
||||
@pytest.mark.parametrize("absolute", [False, True])
|
||||
def test_model_path_uses_working_directory(tmp_path, monkeypatch, absolute):
|
||||
workdir = tmp_path / "service"
|
||||
model_dir = workdir / "models" / "guard_model"
|
||||
model_dir = workdir / "models" / "small_model"
|
||||
model_dir.mkdir(parents=True)
|
||||
config_dir = tmp_path / "config"
|
||||
config_dir.mkdir()
|
||||
plugin = config_dir / "guard.lua"
|
||||
plugin.write_text("return {}", encoding="utf-8")
|
||||
model_path = model_dir.as_posix() if absolute else "models/guard_model"
|
||||
model_path = model_dir.as_posix() if absolute else "models/small_model"
|
||||
config = config_dir / "config.yaml"
|
||||
config.write_text(
|
||||
f"upstream: http://agent:8000\nllm:\n - id: guard\n type: guard\n"
|
||||
@@ -51,11 +51,11 @@ def test_missing_model_does_not_fall_back_to_config_directory(tmp_path, monkeypa
|
||||
workdir = tmp_path / "service"
|
||||
workdir.mkdir()
|
||||
config_dir = tmp_path / "config"
|
||||
(config_dir / "models" / "guard_model").mkdir(parents=True)
|
||||
(config_dir / "models" / "small_model").mkdir(parents=True)
|
||||
config = config_dir / "config.yaml"
|
||||
config.write_text(
|
||||
"upstream: http://agent:8000\nllm:\n - id: guard\n type: guard\n"
|
||||
" file: models/guard_model\n",
|
||||
" file: models/small_model\n",
|
||||
encoding="utf-8",
|
||||
)
|
||||
monkeypatch.chdir(workdir)
|
||||
|
||||
Reference in new issue
Block a user