mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-23 06:12:50 +08:00
Update patcher.py
Former-commit-id: 708aa5e098b0be90c9dfe6a30b9912883e3bcc04
This commit is contained in:
parent
4781b63edb
commit
fb14d57e97
@ -101,7 +101,7 @@ def patch_model(
|
|||||||
if model_args.resize_vocab:
|
if model_args.resize_vocab:
|
||||||
resize_embedding_layer(model, tokenizer)
|
resize_embedding_layer(model, tokenizer)
|
||||||
|
|
||||||
if model_args.visual_inputs and model_args.autocast_projector:
|
if model_args.visual_inputs:
|
||||||
autocast_projector_dtype(model, model_args)
|
autocast_projector_dtype(model, model_args)
|
||||||
|
|
||||||
if is_trainable:
|
if is_trainable:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user