mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2026-07-28 11:46:09 +08:00
[fix] Fix MiniCPM-V-4.6 image preprocessing behavior (#10478)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user