Skip to content

Commit b3e44eb

Browse files
authored
Merge branch 'main' into imdb
2 parents 3685cf8 + 18c6b97 commit b3e44eb

File tree

3 files changed

+19
-15
lines changed

3 files changed

+19
-15
lines changed

.github/workflows/basic-tests-old-pytorch.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test PyTorch 2.2 and 2.6
1+
name: Test PyTorch 2.3 and 2.5
22

33
on:
44
push:
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-latest
2424
strategy:
2525
matrix:
26-
pytorch-version: [ 2.3.0, 2.6.0 ]
26+
pytorch-version: [ 2.3.0, 2.5.0 ]
2727

2828
steps:
2929
- uses: actions/checkout@v4

pyproject.toml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,22 @@ description = "Implement a ChatGPT-like LLM in PyTorch from scratch, step by ste
99
readme = "README.md"
1010
requires-python = ">=3.10,<=3.13"
1111
dependencies = [
12-
"torch>=2.2.2,<2.6; sys_platform == 'darwin' and platform_machine == 'x86_64'", # Intel macOS
13-
"torch>=2.3.0; sys_platform != 'darwin' or platform_machine != 'x86_64'",
14-
"jupyterlab>=4.0",
15-
"tiktoken>=0.5.1",
16-
"matplotlib>=3.7.1",
17-
"tensorflow>=2.16.2; sys_platform == 'darwin' and platform_machine == 'x86_64'", # Intel macOS
18-
"tensorflow>=2.18.0; sys_platform != 'darwin' or platform_machine != 'x86_64'",
19-
"tqdm>=4.66.1",
20-
"numpy>=1.26,<2.1",
21-
"pandas>=2.2.1",
22-
"pip>=25.0.1",
23-
"pytest>=8.3.5",
12+
"torch>=2.2.2,<2.6; sys_platform == 'darwin' and platform_machine == 'x86_64' and python_version < '3.13'",
13+
"torch>=2.2.2; sys_platform == 'darwin' and platform_machine == 'arm64'",
14+
"torch>=2.2.2; sys_platform == 'linux'",
15+
"torch>=2.2.2; sys_platform == 'win32'",
16+
"tensorflow>=2.16.2; sys_platform == 'darwin' and platform_machine == 'x86_64'",
17+
"tensorflow>=2.18.0; sys_platform == 'darwin' and platform_machine == 'arm64'",
18+
"tensorflow>=2.18.0; sys_platform == 'linux'",
19+
"tensorflow>=2.18.0; sys_platform == 'win32'",
20+
"jupyterlab>=4.0",
21+
"tiktoken>=0.5.1",
22+
"matplotlib>=3.7.1",
23+
"tqdm>=4.66.1",
24+
"numpy>=1.26,<2.1",
25+
"pandas>=2.2.1",
26+
"pip>=25.0.1",
27+
"pytest>=8.3.5",
2428
]
2529

2630
[tool.uv.sources]

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
torch>=2.2.2,<2.6; sys_platform == 'darwin' and platform_machine == 'x86_64' # Intel macOS
2-
torch >= 2.3.0; sys_platform != 'darwin' or platform_machine != 'x86_64' # all chapters
2+
torch >= 2.2.2; sys_platform != 'darwin' or platform_machine != 'x86_64' # all chapters
33
jupyterlab >= 4.0 # all
44
tiktoken >= 0.5.1 # ch02; ch04; ch05
55
matplotlib >= 3.7.1 # ch04; ch06; ch07

0 commit comments

Comments
 (0)