Commit a3ee41f
Fix the onnx checker to use model path when model size > 2gib (#502)
## What does this PR do?
**Type of change:** Bug Fix
**Overview:** There was a failure during quantization for fp32 whisper
large model.
`Error:
ValueError: This protobuf of onnx model is too large (>2GiB). Call
check_model with model path instead.`
Essentially the bug was that while using the checker, we can only give
model object as input if model size < 2gb, otherwise the path to model
needs to be given as input. So, I changed the input given to the checker
according to size of model in trt_utils.py.
## Testing
Tried quantizing after the fix. The quantization is working after
applying the fix with no errors.
Signed-off-by: Hrishith Thadicherla <[email protected]>1 parent b182526 commit a3ee41f
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
338 | | - | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
339 | 345 | | |
340 | 346 | | |
341 | 347 | | |
| |||
0 commit comments