feat: initialize project with Python 3.10 and feature retrieval module

This commit is contained in:
2026-02-01 12:11:11 +08:00
parent 9e9070bdb4
commit cf83c09165
7 changed files with 2792 additions and 324 deletions

34
pyproject.toml Normal file
View File

@@ -0,0 +1,34 @@
[project]
name = "mini-nav"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"accelerate>=1.12.0",
"datasets>=4.5.0",
"h5py>=3.15.1",
"httpx[socks]>=0.28.1",
"torch>=2.10.0",
"torchvision>=0.25.0",
"transformers>=5.0.0",
]
[dependency-groups]
dev = [
"pytest>=9.0.2",
"pytest-mpi>=0.6",
]
[[tool.uv.index]]
name = "pytorch-cu130"
url = "https://download.pytorch.org/whl/cu130"
explicit = true
[tool.uv.sources]
torch = [
{ index = "pytorch-cu130", marker = "sys_platform == 'linux' or sys_platform == 'win32'" },
]
torchvision = [
{ index = "pytorch-cu130", marker = "sys_platform == 'linux' or sys_platform == 'win32'" },
]