File size: 1,743 Bytes
98f6291 1910337 98f6291 1910337 98f6291 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | [build-system]
requires = ["hatchling==1.27.0"]
build-backend = "hatchling.build"
[project]
name = "openthai-systemone-onnx"
version = "0.1.0"
description = "Dynamic ONNX Runtime export and drop-in client for OpenThai-SystemOne"
readme = "README.md"
requires-python = ">=3.12,<3.13"
license = {file = "LICENSE"}
authors = [{name = "OpenThai-SystemOne ONNX contributors"}]
dependencies = [
"huggingface-hub==1.5.0",
"numpy==2.3.3",
"onnxruntime==1.30.0",
"openthai-systemone @ git+https://github.com/iapp-technology/openthai-systemone.git@5d04bcca0c58bd10e7dac2d3d369d8f760bea6cf",
"torch==2.8.0",
"transformers @ git+https://github.com/huggingface/transformers.git@856157a2f3e9594954310df18fdccc31ffddebe9",
]
[project.optional-dependencies]
tools = [
"onnx==1.19.0",
"onnx-ir==0.1.3",
"onnxruntime-genai==0.16.0",
"safetensors==0.8.0",
]
dev = [
"pytest==8.4.2",
"pytest-cov==7.0.0",
]
benchmark = [
"datasets>=3.0.0,<5",
"laya==0.3.20",
"tqdm>=4.66,<5",
]
[project.scripts]
openthai-systemone-export = "openthai_systemone_onnx_tools.export:main"
openthai-systemone-quantize = "openthai_systemone_onnx_tools.quantize:main"
openthai-systemone-validate = "openthai_systemone_onnx_tools.validation:main"
openthai-systemone-upload = "openthai_systemone_onnx_tools.upload:main"
[tool.hatch.build.targets.wheel]
packages = ["src/openthai_systemone_onnx", "src/openthai_systemone_onnx_tools"]
[tool.hatch.metadata]
allow-direct-references = true
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-ra"
markers = [
"artifact: requires an exported ONNX artifact",
"parity: loads the source PyTorch model and ONNX graph",
"slow: high-memory 65,536-token parity validation",
]
[tool.uv]
package = true
|