parent
c12b8f24b6
commit
16b9412e80
1 changed files with 1 additions and 0 deletions
|
|
@ -121,6 +121,7 @@ class _BaseAutoModelClass:
|
|||
model = model.to("cpu")
|
||||
model = ggml_convert_low_bit(model, qtype, optimize_model)
|
||||
model.config.update({"bigdl_transformers_low_bit": q_k})
|
||||
model.config.update({"tie_word_embeddings": False})
|
||||
|
||||
# add save_low_bit to pretrained model dynamically
|
||||
import types
|
||||
|
|
|
|||
Loading…
Reference in a new issue