From 1c1a732752b5aadd1d6aa4be898fe8d6412511b4 Mon Sep 17 00:00:00 2001 From: Wing Lian Date: Mon, 22 Jan 2024 13:28:42 -0500 Subject: [PATCH] enclose none check --- src/axolotl/utils/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/axolotl/utils/data.py b/src/axolotl/utils/data.py index 805ce889e7..4cf5323d8f 100644 --- a/src/axolotl/utils/data.py +++ b/src/axolotl/utils/data.py @@ -121,7 +121,7 @@ def load_tokenized_prepared_datasets( + str( int( -1 - if cfg.eval_sample_packing is None + if (cfg.eval_sample_packing is None) else cfg.eval_sample_packing ) )