-
Notifications
You must be signed in to change notification settings - Fork 833
Expand file tree
/
Copy pathpyproject.toml
More file actions
92 lines (76 loc) · 2.3 KB
/
Copy pathpyproject.toml
File metadata and controls
92 lines (76 loc) · 2.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Copyright (c) Sebastian Raschka under Apache License 2.0 (see LICENSE.txt)
# Source for "Build a Reasoning Model (From Scratch)": https://mng.bz/lZ5B
# Code repository: https://github.com/rasbt/reasoning-from-scratch
[tool.setuptools.dynamic]
version = { attr = "reasoning_from_scratch.__version__" }
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "reasoning_from_scratch"
dynamic = ["version"]
description = "Reasoning Models From Scratch"
readme = "README.md"
authors = [
{ name = "Sebastian Raschka" }
]
license = { file = "LICENSE" }
requires-python = ">=3.10,<3.15"
dependencies = [
"jupyterlab>=4.4.7",
"torch>=2.10,<3", # 2.10.0 is the version originally used in the book
"tokenizers>=0.21.2",
"nbformat>=5.10.4",
"setuptools>=61.0",
"sympy>=1.14.0", # For verifier in ch03
"matplotlib>=3.10.7",
]
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Intended Audience :: Developers",
"Operating System :: OS Independent"
]
[dependency-groups]
dev = [
"pytest>=8.3.5",
"ruff>=0.4.4",
"pytest-ruff>=0.5",
"huggingface-hub>=1.0",
"safetensors>=0.7",
"transformers>=4.53.0",
"twine>=6.1.0",
"build>=1.2.2.post1",
]
[project.optional-dependencies]
extra = [
"datasets>=4.1.1", # Appendix F, MMLU
"chainlit>=2.8.3; python_version < '3.14'", # Appendix G, Chat UI
]
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F"]
[tool.pytest.ini_options]
norecursedirs = ["run_notebook_diffs"]
[tool.setuptools.packages.find]
where = ["."]
include = ["reasoning_from_scratch", "reasoning_from_scratch.*"]
[tool.uv]
exclude-newer = "7 days" # Requires a newer uv; run `uv self update` if this fails to parse
[tool.uv.sources]
reasoning = { workspace = true }
reasoning-from-scratch = { workspace = true }
torch = [
{ index = "pytorch-cu130", marker = "sys_platform == 'linux' and platform_machine == 'aarch64'" },
]
[[tool.uv.index]]
name = "pytorch-cu130"
url = "https://download.pytorch.org/whl/cu130"
explicit = true
[tool.uv.workspace]
members = [
".",
]