You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception has occurred: ValueError
could not broadcast input array from shape (84934656,) into shape (9216,)
File "C:\Users\admin\Desktop\convert_model.py", line 15, in
model = OVModelForCausalLM.from_pretrained(model_id, export=True,quantization_config=quantization_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: could not broadcast input array from shape (84934656,) into shape (9216,)
source code:
from optimum.intel import OVModelForCausalLM,OVWeightQuantizationConfig
from transformers import AutoTokenizer
Exception has occurred: ValueError
could not broadcast input array from shape (84934656,) into shape (9216,)
File "C:\Users\admin\Desktop\convert_model.py", line 15, in
model = OVModelForCausalLM.from_pretrained(model_id, export=True,quantization_config=quantization_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: could not broadcast input array from shape (84934656,) into shape (9216,)
source code:
from optimum.intel import OVModelForCausalLM,OVWeightQuantizationConfig
from transformers import AutoTokenizer
model_id = "./Phi-3.5-mini-instruct"
quantization_config = OVWeightQuantizationConfig(
bits=4,
sym=True,
quant_method="awq",
scale_estimation=True,
group_size=-1,
gptq=True,
dataset="wikitext2"
)
model = OVModelForCausalLM.from_pretrained(model_id, export=True,quantization_config=quantization_config)
tokenizer = AutoTokenizer.from_pretrained(model_id)
save_directory = "./Phi3.5-ov-awq-gptq"
model.save_pretrained(save_directory)
tokenizer.save_pretrained(save_directory)
What shall I do?
The text was updated successfully, but these errors were encountered: