clip: update PaddleOCR model loader parameters to prevent OOM during warmup

This commit is contained in:
megemini 2025-12-19 12:51:29 +08:00
parent b4cde7c7d9
commit 64f0a46e1c
1 changed files with 2 additions and 0 deletions

View File

@ -1194,6 +1194,8 @@ struct clip_model_loader {
case PROJECTOR_TYPE_PADDLEOCR:
{
hparams.proj_scale_factor = 2;
hparams.set_limit_image_tokens(8, 1024);
hparams.set_warmup_n_tokens(256); // avoid OOM on warmup
} break;
default:
break;