-
Notifications
You must be signed in to change notification settings - Fork 307
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
Fail to modify graph of transformers models #686
Comments
I recently found that ArmNN does not support layer norm. If this is the issue, it'd be nice if the error reflected that |
@kylesayrs just like BuildGuideNative.md |
Hi @kylesayrs , |
Thanks for the responses. I doubt this directly the issue, since I've seen this "backend missing" warning before with resnets with no issues running. I've downloaded the prebuilt binaries, is there any documentation on what needs to be done to use them? I'd rather not build the delegate if I can avoid it, but I agree that it seems like libarmnn.so is not being found. Could its path be specified in Thanks |
We have this quick start guide or this slightly more in-depth guide that might be able to help you. Adding the directory of the libarmnn.so to the LD_LIBRARY_PATH should be sufficient for the application to find it |
Thanks @ArmRyan, those resources are very helpful. I've added the libraries to my LD_LIBRARY_PATH and no longer get the warning, but outside of that nothing has changed
|
On Raspberry Pi I got the error |
Hey @kylesayrs, I'm sorry for the delay, but did you run with the latest prebuilt binaries? If not, could you try again please with these? I cannot see where this warning is coming from. I am also surprised that it is coming up as an error as well. It should not prevent you from doing what you would like when it is a warning. |
Hi @kylesayrs I'm closing this as inactive, if you still need help then please reopen the issue or else create a new one. Best regards, |
Hi, any tips on debugging or working around this issue would be appreciated.
Issue: ArmNN fails to modify tflite graph of transformer models. This issue occurs with many transformer models, but this is best reproduced with the GPT2 model.
ArmNN version:
ArmNN v29.0.0
, release v22.05.01, prebuilt binaries for x86ACL version: Not downloaded
TfLite version:
tensorflow == 2.10.0rc0
System OS: Linux
Device: Graviton gen 1 (ec2 a1)
Download
gpt2-64.tflite
(instructions here)There is also a second method to do this that produces the same results
Attempt to set up interpreter
Console output
This error is pretty unhelpful. This model (and other transformer models) work fine with XNNPACK. I've tried with a both
CpuAcc
andCpuRef
backends. Any theories or insights are appreciated!The text was updated successfully, but these errors were encountered: