[fix] Fix MiniCPM-V-4.6 image preprocessing behavior (#10478)

This commit is contained in:
马境远
2026-05-12 11:35:23 +08:00
committed by GitHub
parent 53e77a9bfa
commit ca50f22c38
3 changed files with 30 additions and 135 deletions

View File

@@ -205,9 +205,6 @@ class HuggingfaceEngine(BaseEngine):
gen_kwargs.pop("image_sizes", None)
if getattr(model.config, "model_type", None) == "minicpmv4_6":
gen_kwargs["downsample_mode"] = os.getenv("DOWNSAMPLE_MODE", "16x")
return gen_kwargs, prompt_length
@staticmethod