feat: Docker 打包、交付链路与命名脱敏
镜像与构建 - 六阶段 Dockerfile(base/wheels/deps/manifest/core|guard),core 不含 torch - 构建期自证:gen_manifest --strict 拦未登记模块,core 阶段重算 sha256 - compose 四服务 host 网络(llm.url 强制回环),config.core/local 可挂载覆盖 无 docker 环境的四段链路 - pull_oci_image.py 直拉 OCI 镜像 rootfs(纯标准库,走加速器) - replay_image_build.sh 按 stage chroot 重放 Dockerfile - run_image_chroot.sh 等价 docker run(uid 10001 + 入口 + host 网络) - pack_image.py 封成 docker save 格式包,自带 diff_id 校验 交付 - make_package.sh 生成自包含目录:镜像包 + 溯源清单 + 构建输入 + 脚本 + 源码快照 - 文档:从零复现指南、docker 打包方案、镜像构建限制与替代方案、交付包 README 命名 - Qwen 品牌名统一替换为 large_model / small_model / large_model_guard, 覆盖 vLLM 服务名、模型目录、配置、脚本、测试与文档 - 模型架构字段(architectures / model_type / tokenizer_class)属上游定义, 改名会导致加载失败,保留原值;check_local_model.py 的架构判断同理 验证:smoke 6/6;test.py 20 通过 0 失败 1 警告;gen --strict 67 文件 / 22 进镜像
This commit is contained in:
1 parent
bfdc5e9168
commit
b82e44ec32
46 files changed
+10271
-484
No files matched your search
+28
-28
@@ -6,7 +6,7 @@
|
||||
"dtype": "auto",
|
||||
"input": "result.json",
|
||||
"input_meta": {
|
||||
"task": "Qwen3GuardTest safety classification",
|
||||
"task": "guard_bench safety classification",
|
||||
"model": "F:\\Python\\model",
|
||||
"dtype": "torch.bfloat16",
|
||||
"device": "cpu",
|
||||
@@ -28,7 +28,7 @@
|
||||
"reviewed_count": 61,
|
||||
"created_at": "2026-10-25T10:21:23",
|
||||
"elapsed_sec": 169.2,
|
||||
"note": "本文件是一阶段判为 Safe 的样本的二阶段复核结果;gold 来自 Qwen3GuardTest 人工标注,仅用于统计,不影响模型输入。"
|
||||
"note": "本文件是一阶段判为 Safe 的样本的二阶段复核结果;gold 来自 guard_bench 人工标注,仅用于统计,不影响模型输入。"
|
||||
},
|
||||
"stats": {
|
||||
"reviewed": 61,
|
||||
@@ -107,7 +107,7 @@
|
||||
{
|
||||
"unique_id": 1271,
|
||||
"index": 25,
|
||||
"source": "Qwen/Qwen3-8B",
|
||||
"source": "local/large_model",
|
||||
"split": "thinking",
|
||||
"gold": "Safe",
|
||||
"gold_bin": "Safe",
|
||||
@@ -159,7 +159,7 @@
|
||||
{
|
||||
"unique_id": 693,
|
||||
"index": 98,
|
||||
"source": "Qwen/Qwen3-8B",
|
||||
"source": "local/large_model",
|
||||
"split": "thinking",
|
||||
"gold": "Safe",
|
||||
"gold_bin": "Safe",
|
||||
@@ -315,7 +315,7 @@
|
||||
{
|
||||
"unique_id": 156,
|
||||
"index": 68,
|
||||
"source": "huihui-ai/Qwen3-8B-abliterated",
|
||||
"source": "huihui-ai/large_model-abliterated",
|
||||
"split": "thinking",
|
||||
"gold": "Safe",
|
||||
"gold_bin": "Safe",
|
||||
@@ -393,7 +393,7 @@
|
||||
{
|
||||
"unique_id": 68,
|
||||
"index": 119,
|
||||
"source": "Qwen/Qwen3-8B",
|
||||
"source": "local/large_model",
|
||||
"split": "thinking",
|
||||
"gold": "Safe",
|
||||
"gold_bin": "Safe",
|
||||
@@ -445,7 +445,7 @@
|
||||
{
|
||||
"unique_id": 1127,
|
||||
"index": 28,
|
||||
"source": "Qwen/Qwen3-8B",
|
||||
"source": "local/large_model",
|
||||
"split": "thinking",
|
||||
"gold": "Safe",
|
||||
"gold_bin": "Safe",
|
||||
@@ -497,7 +497,7 @@
|
||||
{
|
||||
"unique_id": 1240,
|
||||
"index": 7,
|
||||
"source": "Qwen/Qwen3-8B",
|
||||
"source": "local/large_model",
|
||||
"split": "thinking",
|
||||
"gold": "Safe",
|
||||
"gold_bin": "Safe",
|
||||
@@ -549,7 +549,7 @@
|
||||
{
|
||||
"unique_id": 1463,
|
||||
"index": 124,
|
||||
"source": "Qwen/Qwen3-8B",
|
||||
"source": "local/large_model",
|
||||
"split": "thinking",
|
||||
"gold": "Safe",
|
||||
"gold_bin": "Safe",
|
||||
@@ -653,7 +653,7 @@
|
||||
{
|
||||
"unique_id": 287,
|
||||
"index": 97,
|
||||
"source": "Qwen/Qwen3-8B",
|
||||
"source": "local/large_model",
|
||||
"split": "thinking",
|
||||
"gold": "Safe",
|
||||
"gold_bin": "Safe",
|
||||
@@ -679,7 +679,7 @@
|
||||
{
|
||||
"unique_id": 1145,
|
||||
"index": 45,
|
||||
"source": "Qwen/Qwen3-8B",
|
||||
"source": "local/large_model",
|
||||
"split": "thinking",
|
||||
"gold": "Safe",
|
||||
"gold_bin": "Safe",
|
||||
@@ -705,7 +705,7 @@
|
||||
{
|
||||
"unique_id": 846,
|
||||
"index": 84,
|
||||
"source": "Qwen/Qwen3-8B",
|
||||
"source": "local/large_model",
|
||||
"split": "thinking",
|
||||
"gold": "Safe",
|
||||
"gold_bin": "Safe",
|
||||
@@ -731,7 +731,7 @@
|
||||
{
|
||||
"unique_id": 1183,
|
||||
"index": 31,
|
||||
"source": "Qwen/Qwen3-8B",
|
||||
"source": "local/large_model",
|
||||
"split": "thinking",
|
||||
"gold": "Safe",
|
||||
"gold_bin": "Safe",
|
||||
@@ -757,7 +757,7 @@
|
||||
{
|
||||
"unique_id": 1225,
|
||||
"index": 36,
|
||||
"source": "Qwen/Qwen3-8B",
|
||||
"source": "local/large_model",
|
||||
"split": "thinking",
|
||||
"gold": "Safe",
|
||||
"gold_bin": "Safe",
|
||||
@@ -809,7 +809,7 @@
|
||||
{
|
||||
"unique_id": 615,
|
||||
"index": 121,
|
||||
"source": "Qwen/Qwen3-8B",
|
||||
"source": "local/large_model",
|
||||
"split": "thinking",
|
||||
"gold": "Safe",
|
||||
"gold_bin": "Safe",
|
||||
@@ -835,7 +835,7 @@
|
||||
{
|
||||
"unique_id": 1098,
|
||||
"index": 20,
|
||||
"source": "Qwen/Qwen3-8B",
|
||||
"source": "local/large_model",
|
||||
"split": "thinking",
|
||||
"gold": "Safe",
|
||||
"gold_bin": "Safe",
|
||||
@@ -861,7 +861,7 @@
|
||||
{
|
||||
"unique_id": 648,
|
||||
"index": 53,
|
||||
"source": "Qwen/Qwen3-8B",
|
||||
"source": "local/large_model",
|
||||
"split": "thinking",
|
||||
"gold": "Safe",
|
||||
"gold_bin": "Safe",
|
||||
@@ -965,7 +965,7 @@
|
||||
{
|
||||
"unique_id": 948,
|
||||
"index": 58,
|
||||
"source": "Qwen/Qwen3-8B",
|
||||
"source": "local/large_model",
|
||||
"split": "thinking",
|
||||
"gold": "Safe",
|
||||
"gold_bin": "Safe",
|
||||
@@ -1017,7 +1017,7 @@
|
||||
{
|
||||
"unique_id": 1386,
|
||||
"index": 103,
|
||||
"source": "Qwen/Qwen3-8B",
|
||||
"source": "local/large_model",
|
||||
"split": "thinking",
|
||||
"gold": "Safe",
|
||||
"gold_bin": "Safe",
|
||||
@@ -1095,7 +1095,7 @@
|
||||
{
|
||||
"unique_id": 1404,
|
||||
"index": 75,
|
||||
"source": "Qwen/Qwen3-8B",
|
||||
"source": "local/large_model",
|
||||
"split": "thinking",
|
||||
"gold": "Safe",
|
||||
"gold_bin": "Safe",
|
||||
@@ -1173,7 +1173,7 @@
|
||||
{
|
||||
"unique_id": 402,
|
||||
"index": 29,
|
||||
"source": "Qwen/Qwen3-8B",
|
||||
"source": "local/large_model",
|
||||
"split": "thinking",
|
||||
"gold": "Safe",
|
||||
"gold_bin": "Safe",
|
||||
@@ -1225,7 +1225,7 @@
|
||||
{
|
||||
"unique_id": 75,
|
||||
"index": 55,
|
||||
"source": "Qwen/Qwen3-8B",
|
||||
"source": "local/large_model",
|
||||
"split": "thinking",
|
||||
"gold": "Safe",
|
||||
"gold_bin": "Safe",
|
||||
@@ -1329,7 +1329,7 @@
|
||||
{
|
||||
"unique_id": 411,
|
||||
"index": 39,
|
||||
"source": "huihui-ai/Qwen3-8B-abliterated",
|
||||
"source": "huihui-ai/large_model-abliterated",
|
||||
"split": "thinking",
|
||||
"gold": "Safe",
|
||||
"gold_bin": "Safe",
|
||||
@@ -1381,7 +1381,7 @@
|
||||
{
|
||||
"unique_id": 1294,
|
||||
"index": 59,
|
||||
"source": "huihui-ai/Qwen3-8B-abliterated",
|
||||
"source": "huihui-ai/large_model-abliterated",
|
||||
"split": "thinking",
|
||||
"gold": "Safe",
|
||||
"gold_bin": "Safe",
|
||||
@@ -1407,7 +1407,7 @@
|
||||
{
|
||||
"unique_id": 1277,
|
||||
"index": 27,
|
||||
"source": "huihui-ai/Qwen3-8B-abliterated",
|
||||
"source": "huihui-ai/large_model-abliterated",
|
||||
"split": "thinking",
|
||||
"gold": "Unsafe",
|
||||
"gold_bin": "Unsafe",
|
||||
@@ -1433,7 +1433,7 @@
|
||||
{
|
||||
"unique_id": 580,
|
||||
"index": 74,
|
||||
"source": "Qwen/Qwen3-8B",
|
||||
"source": "local/large_model",
|
||||
"split": "thinking",
|
||||
"gold": "Safe",
|
||||
"gold_bin": "Safe",
|
||||
@@ -1485,7 +1485,7 @@
|
||||
{
|
||||
"unique_id": 386,
|
||||
"index": 38,
|
||||
"source": "Qwen/Qwen3-8B",
|
||||
"source": "local/large_model",
|
||||
"split": "thinking",
|
||||
"gold": "Safe",
|
||||
"gold_bin": "Safe",
|
||||
@@ -1589,7 +1589,7 @@
|
||||
{
|
||||
"unique_id": 438,
|
||||
"index": 63,
|
||||
"source": "Qwen/Qwen3-8B",
|
||||
"source": "local/large_model",
|
||||
"split": "thinking",
|
||||
"gold": "Safe",
|
||||
"gold_bin": "Safe",
|
||||
|
||||
Reference in new issue
Block a user