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
@@ -34,7 +34,7 @@ local CONTEXT_LABELS = { user = "User: ", assistant = "Assistant: " }
local DEFAULT_STREAM_PATH = "choices.*.delta.content"
local DEFAULT_FULL_PATH = "choices.*.message.content"
-- Qwen3Guard-Gen 的输出就是 Safety / Categories / Refusal 三行,宿主 parse_guard_output
-- 守卫模型的输出就是 Safety / Categories / Refusal 三行,宿主 parse_guard_output
-- 按这个格式解析,类别必须落在它的枚举内,否则整条判定按 InvalidModelOutput 失败。
-- 该模型训练时直接收原文,不要再加自定义指令;prompt_prefix 只在确有需要时使用。
-- 输出侧 prompt = 上下文 + 本轮提问,留 4096 让两者都有位置(中文约 1.3k token)
@@ -849,7 +849,7 @@ function plugin.on_request(ctx, request)
local context = render_context(turns, index, config.multiturn_context_bytes)
-- 输出判定要带上本轮提问(含上文):Qwen3Guard 的 response_moderation 用 user 轮做上下文
-- 输出判定要带上本轮提问(含上文):守卫模型的 response_moderation 用 user 轮做上下文
state.input_text = context_prompt(context, current.text, MAX_INPUT_CONTEXT)
if not config.check_input then return { action = "pass" } end