-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
failures during experimental feature parallel compile #6250
Comments
Hi @vladmandic , thank you for reporting this. The parallel compilation experimental feature, we only test for one model, if there's a couple models, the state may get messed up because of the async call (this line |
yup, that does the trick! and compile definitely speeds up time to first inference - some ~30% in my tests using simple models i do wish there was a way to determine ahead of time if model can be executed synchronously for reference:
|
any update on supporting models that require async execution? |
any progress update for this parallel compilation? |
Hi, @vladmandic Apologize for the delayed response and we're re-visiting our older issues and checking whether those issues got resolved or not as of now so May I know are you still looking for the solution or your issue got resolved ? If issue still persists after trying with latest version of TFJs please let us know with error log and code snippet to replicate the same issue from our end ? Could you please confirm if this issue is resolved for you ? Please feel free to close the issue if it is resolved ? Thank you! |
Yes, this issue is still valid and there has been no updates from TFJS team. |
testing new experimental feature from PR #5826 Add functions for parallel compilation
which was recently merged into main branch
im loading number of small models and attempting to run pre-compile and i'm getting errors on all attempts
here ive documented 3 different failures:
compile fails on some models with a totally random message such as:
(and works fine on some models)
compile completes without errors, but later actual code execution in js fails:
(same code works just fine if there is no pre-compile)
which happens in a trivial function that runs
tf.image.resizeBilinear
followed bytf.div
to normalize input tensorcompile completes without errors, but later model inference fails with the same error as above
actual backtrace shows that it happens during
execute
call and kernel op in model that triggers error is a simplesub
(same model executes without issues if there is no pre-compile)
my function that runs precompile on all models is:
The text was updated successfully, but these errors were encountered: