Register missing korean/el/th PP-OCRv5_mobile_rec for HPI (gpu_cuda12/paddle311)#5163
Open
ddoron9 wants to merge 2 commits into
Open
Register missing korean/el/th PP-OCRv5_mobile_rec for HPI (gpu_cuda12/paddle311)#5163ddoron9 wants to merge 2 commits into
ddoron9 wants to merge 2 commits into
Conversation
… paddle311) gpu_cuda12/paddle311 was missing korean_/el_/th_ PP-OCRv5_mobile_rec which are present in gpu_cuda12/paddle30, paddle31 and in every cpu_x64 / gpu_cuda11 bucket. Because HPI normalizes Paddle >= 3.1.0 to the paddle311 bucket, backend selection for these models on CUDA 12 failed with "'<model>' is not a known model.". Restores parity with paddle31. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Thanks for your contribution! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
gpu_cuda12/paddle311inpaddlex/inference/models/runners/hpi/hpi_model_info_collection.jsonis missing three PP-OCRv5 multilingual recognition models —korean_PP-OCRv5_mobile_rec,el_PP-OCRv5_mobile_rec,th_PP-OCRv5_mobile_rec— that are present in every other environment/version bucket. As a result, HPI backend selection fails for these models on CUDA 12 with PaddlePaddle ≥ 3.1.0.Symptom
Building an HPI predictor for
korean_PP-OCRv5_mobile_recon a GPU + CUDA 12 environment with PaddlePaddle ≥ 3.1.0 raises:Disabling HPI works, so the model itself is fine — it is simply not registered in the HPI prior-knowledge collection for this bucket.
Root cause
suggest_inference_backend_and_config()inpaddlex/inference/models/runners/hpi/backend.pynormalizes any Paddle ≥ 3.1.0 to thepaddle311knowledge bucket:It then looks up
collection[env]["paddle311"][model_name]. Forenv = gpu_cuda12, thepaddle311bucket is missing the three models above — they exist ingpu_cuda12/paddle30andgpu_cuda12/paddle31, and in everycpu_x64/gpu_cuda11bucket — so the lookup hits the "is not a known model" branch.Per-bucket model count (and presence of the
korean/el/thPP-OCRv5 mobile rec models):Fix
Add the three missing entries to
gpu_cuda12/paddle311, mirroringgpu_cuda12/paddle31(backends["onnxruntime", "paddle"]). This restores exact key parity betweengpu_cuda12/paddle311andgpu_cuda12/paddle31.Verification
json.load()succeeds on the edited file.set(gpu_cuda12/paddle311) == set(gpu_cuda12/paddle31)after the change (278 → 281 models).+12lines (three entries).Related
'PP-OCRv6_small_det' is not a known model for hpi(same registration-gap class).'latin_PP-OCRv5_mobile_rec' is not a known model when enable_hpi=True(same class).