diff options
| author | 2025-12-30 20:39:34 +0800 | |
|---|---|---|
| committer | 2025-12-30 20:39:34 +0800 | |
| commit | 298035052b3e3d083b57f5dbac0e86de4f94efba (patch) | |
| tree | 944f38d734f752a5a0f71033ebece38fc5c35839 /pyproject.toml | |
| parent | 92a647ffbb3452a0ed49601177f290e20a88413e (diff) | |
| download | base-model-298035052b3e3d083b57f5dbac0e86de4f94efba.tar.gz base-model-298035052b3e3d083b57f5dbac0e86de4f94efba.zip | |
refactor: Update model download functionality and improve inference module to support automatic model retrieval from GitHub releases
Diffstat (limited to 'pyproject.toml')
| -rw-r--r-- | pyproject.toml | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/pyproject.toml b/pyproject.toml index b92fae3..f9e8216 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -56,22 +56,11 @@ Issues = "https://github.com/HydroRoll-Team/base-model/issues" [tool.hatch.build.targets.wheel] packages = ["src/base_model_trpgner"] -artifacts = [ - "src/base_model_trpgner/**/*.py", - "models/trpg-final/model.onnx", - "models/trpg-final/model.onnx.data", - "models/trpg-final/config.json", - "models/trpg-final/tokenizer.json", - "models/trpg-final/tokenizer_config.json", - "models/trpg-final/special_tokens_map.json", - "models/trpg-final/vocab.txt", -] - -[tool.hatch.build.targets.wheel.shared-data] -"models/trpg-final" = "base_model_trpgner/models/trpg-final" +# 仅包含 Python 源码,模型文件首次运行时自动从 GitHub Release 下载 +artifacts = ["src/base_model_trpgner/**/*.py"] [tool.hatch.build.targets.sdist] -include = ["/src", "/models/trpg-final", "/README.md", "/COPYING"] +include = ["/src", "/README.md", "/COPYING"] [tool.ruff] exclude = [ |
