Skip to content

Commit 8ea90db

Browse files
committed
add _convert_tokens_to_ids
1 parent b375a5c commit 8ea90db

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/openvino/test_modeling.py

+4
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,10 @@ def test_pipeline(self, model_arch):
570570
"trust_remote_code": True,
571571
}
572572
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=model_arch in self.REMOTE_CODE_MODELS)
573+
574+
if model_arch == "qwen":
575+
tokenizer._convert_tokens_to_ids = lambda x: 0
576+
573577
model = OVModelForCausalLM.from_pretrained(
574578
model_id, export=True, use_cache=False, compile=False, **model_kwargs
575579
)

0 commit comments

Comments
 (0)