This commit is contained in:
hiyouga committed 2024-04-01 21:35:18 +08:00
1 parent eb259cc573
commit aee634cd20
7 files changed
+37 -16

No files matched your search

+1 -1
View File
@@ -331,7 +331,7 @@ def patch_model(
):
gen_config.do_sample = True
if model_args.resize_vocab:
if is_trainable and model_args.resize_vocab:
_resize_embedding_layer(model, tokenizer)
if is_trainable: