Skip to content

Commit f492c94

Browse files
authored
Requirements update (#851)
* Requirements update * Code change to tricker workers * update
1 parent 322000d commit f492c94

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pkg/llms_from_scratch/ch02.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def __getitem__(self, idx):
3333

3434
def create_dataloader_v1(txt, batch_size=4, max_length=256,
3535
stride=128, shuffle=True, drop_last=True, num_workers=0):
36+
3637
# Initialize the tokenizer
3738
tokenizer = tiktoken.get_encoding("gpt2")
3839

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ matplotlib >= 3.7.1 # ch04; ch06; ch07
66
tensorflow>=2.16.2; sys_platform == 'darwin' and platform_machine == 'x86_64' # Intel macOS
77
tensorflow >= 2.18.0; sys_platform != 'darwin' or platform_machine != 'x86_64' # ch05; ch06; ch07
88
tqdm >= 4.66.1 # ch05; ch07
9-
numpy >= 1.26, < 2.1 # dependency of several other libraries like torch and pandas
9+
numpy >= 1.26 # dependency of several other libraries like torch and pandas
1010
pandas >= 2.2.1 # ch06
1111
psutil >= 5.9.5 # ch07; already installed automatically as dependency of torch

0 commit comments

Comments
 (0)