diff options
| author | 2025-12-30 21:07:49 +0800 | |
|---|---|---|
| committer | 2025-12-30 21:08:11 +0800 | |
| commit | 2290d8bc56963e1ed50b6f2bc0e013d2b91ad34b (patch) | |
| tree | 8e2b9142954051bb1e1c084f9c578b25f8422ccd /.github/workflows | |
| parent | f7c53e066207ea4c99b71b6b26e8d179fffc4966 (diff) | |
| download | base-model-2290d8bc56963e1ed50b6f2bc0e013d2b91ad34b.tar.gz base-model-2290d8bc56963e1ed50b6f2bc0e013d2b91ad34b.zip | |
feat: Refine model packaging process to include only necessary inference files
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/publish.yml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f80af6e..e3463b0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -63,10 +63,16 @@ jobs: - name: Package model files run: | - # 直接打包 models/trpg-final 整个目录 + # 创建临时目录,只包含推理需要的文件 + mkdir -p model-package cd models/trpg-final - zip -r ../../model.zip . + cp model.onnx model.onnx.data config.json tokenizer.json tokenizer_config.json special_tokens_map.json vocab.txt ../../model-package/ cd ../.. + + # 打包 + cd model-package + zip -r ../model.zip . + cd .. ls -lh model.zip - uses: actions/upload-artifact@v4 |
