OpenThai-SystemOne-ONNX / pyproject.toml
imtk's picture
Publish validated FP32, INT8, and INT4 ONNX Runtime bundle
1910337 verified
Raw History Blame Contribute Delete
1.74 kB
[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