浏览代码

Use test mode arg in ch07 (#713)

Sebastian Raschka 4 月之前
父节点
当前提交
ddbaf0d83e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ch07/01_main-chapter-code/gpt_instruction_finetuning.py

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

@@ -175,7 +175,7 @@ def main(test_mode=False):
     val_data = data[train_portion + test_portion:]
 
     # Use very small subset for testing purposes
-    if args.test_mode:
+    if test_mode:
         train_data = train_data[:10]
         val_data = val_data[:10]
         test_data = test_data[:10]