fix #3077
This commit is contained in:
1 parent
eb259cc573
commit
aee634cd20
7 files changed
+37
-16
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user