Project setup

This commit is contained in:
Craig
2025-04-29 10:19:22 +01:00
parent dd4583d737
commit 608c345ee3
5 changed files with 1852 additions and 0 deletions

32
pyproject.toml Normal file
View File

@@ -0,0 +1,32 @@
[project]
name = "attention-from-scratch"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"ipykernel>=6.29.5",
"jupyter>=1.1.1",
"notebook>=7.4.1",
"numpy>=2.2.5",
"torch>=2.6.0",
]
[tool.uv.sources]
torch = [
{ index = "pytorch-cu124", marker = "sys_platform == 'linux'" },
]
torchvision = [
{ index = "pytorch-cu124", marker = "sys_platform == 'linux'" },
]
[[tool.uv.index]]
name = "pytorch-cu124"
url = "https://download.pytorch.org/whl/cu124"
explicit = true
[dependency-groups]
dev = [
"pre-commit>=4.2.0",
]