Commit ·
083e8aa
1
Parent(s): b11efde
Remove unsupported mm_processor_kwargs parameter
Browse filesThe mm_processor_kwargs parameter caused vLLM to fail with OSError
when loading the image processor. Keeping other fixes:
- max_tokens=4096 (recommended by model card)
- enable_prefix_caching=False (recommended by model card)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- lighton-ocr2.py +0 -1
lighton-ocr2.py
CHANGED
|
@@ -341,7 +341,6 @@ def main(
|
|
| 341 |
limit_mm_per_prompt={"image": 1}, # One image per prompt
|
| 342 |
enforce_eager=False, # Use torch.compile for better performance
|
| 343 |
enable_prefix_caching=False, # Recommended by model card
|
| 344 |
-
mm_processor_kwargs={"cache_gb": 0}, # Disable multimodal processor caching
|
| 345 |
)
|
| 346 |
|
| 347 |
# LightOnOCR-2 recommended sampling parameters
|
|
|
|
| 341 |
limit_mm_per_prompt={"image": 1}, # One image per prompt
|
| 342 |
enforce_eager=False, # Use torch.compile for better performance
|
| 343 |
enable_prefix_caching=False, # Recommended by model card
|
|
|
|
| 344 |
)
|
| 345 |
|
| 346 |
# LightOnOCR-2 recommended sampling parameters
|