[project] name = "semif-serve" version = "0.1.2" description = "HTTP wrapper around SemIf's direct and shared option-logit scorers" requires-python = ">=3.12" dependencies = [ "fastapi==0.118.0", "uvicorn==0.37.0", ] [project.optional-dependencies] # The real engine. Pulls torch 2.10.0 (cu128) and transformers 5.17.0 through SemIf's exact pins. model = [ "semif-phase1 @ git+https://github.com/TheoLeeCJ/SemIf-OpenJev@23cf1f39fc9534fe81437200959b6dfc7106e45a", # Same pin SemIf declares, taken from the cu128 index: SemIf's committed predictions report # torch 2.10.0+cu128, and cu128 carries sm_120 kernels for the Blackwell cards. "torch==2.10.0", ] [dependency-groups] dev = ["pytest==8.4.2", "httpx==0.28.1"] [build-system] requires = ["setuptools>=68"] build-backend = "setuptools.build_meta" [tool.setuptools.packages.find] where = ["src"] [tool.pytest.ini_options] testpaths = ["tests"] [[tool.uv.index]] name = "pytorch-cu128" url = "https://download.pytorch.org/whl/cu128" explicit = true [tool.uv.sources] torch = { index = "pytorch-cu128" }