DEG-5B-E2B-1019 / source /pyproject.toml
gcoderw's picture
DEG-5B-E2B-1019 v0.2 (multimodal)
f8dbde1 verified
Raw History Blame Contribute Delete
1.07 kB
[project]
name = "deg"
version = "0.1.0"
description = "Schema-driven decide/extract/generate filler: JSON Schema in, valid JSON out, new tokens only where x-generate says so"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"jsonschema>=4.23,<5",
]
[project.optional-dependencies]
datagen = ["aiohttp>=3.10,<4", "pyarrow>=15"]
model = [
"torch==2.14.0",
"transformers>=5.17,<6",
"flash-linear-attention==0.5.2",
"fla-core==0.5.2",
"safetensors",
"regex",
"pillow", # deg.media: image files for the Gemma 4 image processor
]
bench = ["xgrammar==0.2.8", "jinja2"]
server = ["opentelemetry-api>=1.30,<2"]
# the stock OpenAI SDK, for clients and for the stock-SDK round-trip tests
sdk = ["openai>=3.26,<4"]
[dependency-groups]
dev = ["pytest>=8", "ruff>=0.11"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/deg"]
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "I"]
[tool.pytest.ini_options]
testpaths = ["tests"]