Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use tiny-random-minicpmv-2_6 #1000

Merged
Merged
8 changes: 4 additions & 4 deletions tests/python_tests/test_vlm_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
def get_ov_model(model_dir):
if (model_dir / "openvino_language_model.xml").exists():
return model_dir
model_id = "openbmb/MiniCPM-V-2_6"
model_id = "katuni4ka/tiny-random-minicpmv-2_6"
processor = transformers.AutoProcessor.from_pretrained(model_id, trust_remote_code=True)
processor.tokenizer.save_pretrained(model_dir)
ov_tokenizer, ov_detokenizer = openvino_tokenizers.convert_tokenizer(processor.tokenizer, with_detokenizer=True)
Expand Down Expand Up @@ -48,7 +48,7 @@ def test_vlm_pipeline(cache):
def streamer(word: str) -> bool:
return False

model_path = get_ov_model(cache.mkdir("MiniCPM-V-2_6"))
model_path = get_ov_model(cache.mkdir("tiny-random-minicpmv-2_6"))

for links in image_links_for_testing:
images = []
Expand All @@ -69,7 +69,7 @@ def streamer(word: str) -> bool:
@pytest.mark.precommit
@pytest.mark.nightly
def test_vlm_get_tokenizer(cache):
model_path = get_ov_model(cache.mkdir("MiniCPM-V-2_6"))
model_path = get_ov_model(cache.mkdir("tiny-random-minicpmv-2_6"))
pipe = VLMPipeline(str(model_path), "CPU")
tokenizer = pipe.get_tokenizer()
tokenizer.encode("")
Expand All @@ -83,7 +83,7 @@ def test_vlm_get_tokenizer(cache):
])
@pytest.mark.skip("Enable after sampler are enabled")
def test_sampling(config, cache):
model_path = get_ov_model(cache.mkdir("MiniCPM-V-2_6"))
model_path = get_ov_model(cache.mkdir("tiny-random-minicpmv-2_6"))
image = get_image_by_link(image_links[0])
pipe = VLMPipeline(str(model_path), "CPU")
pipe.generate(prompts[0], image=image, generation_config=config)
Loading