Skip to content

Commit ddbaf0d

Browse files
authored
Use test mode arg in ch07 (rasbt#713)
1 parent 8b3e4b2 commit ddbaf0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ch07/01_main-chapter-code/gpt_instruction_finetuning.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def main(test_mode=False):
175175
val_data = data[train_portion + test_portion:]
176176

177177
# Use very small subset for testing purposes
178-
if args.test_mode:
178+
if test_mode:
179179
train_data = train_data[:10]
180180
val_data = val_data[:10]
181181
test_data = test_data[:10]

0 commit comments

Comments
 (0)