Skip to content
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

error in runing sample hello_world program IPU part #74

Open
Parikshit01 opened this issue Apr 24, 2024 · 2 comments
Open

error in runing sample hello_world program IPU part #74

Parikshit01 opened this issue Apr 24, 2024 · 2 comments
Assignees

Comments

@Parikshit01
Copy link

while running the sample code from https://github.com/amd/RyzenAI-SW/tree/main/tutorial/hello_world, i am getting following error. Please help me to resolve it
image

@uday610
Copy link
Collaborator

uday610 commented Apr 27, 2024

Hi @Parikshit01 ,
This seems to be a setup issue at your end because this issue is not reproduced here.

You can check this old issue and try the suggestion from this post, such as pip install jupyter to see if that resolves your problem.

I think you should be able to run another example like "Getting Started Resnet," which may confirm issues specific to this example setup only.

Thanks

@vgodsoe
Copy link
Collaborator

vgodsoe commented May 31, 2024

Hi @Parikshit01,
I was able to reproduce your issue, and this is what fixed it for me. If you'd like to give it a try and let me know if it works on your end, that would be great!

In the quantization section in Step 3, update it to the following. As well, you'll want to restart the Jupyter Notebook before rerunning all the cells so that there's no cached data.

vai_q_onnx.quantize_static(
    input_model_path,
    output_model_path,
    calibration_data_reader=None,
    quant_format=vai_q_onnx.QuantFormat.QDQ,
    calibrate_method=vai_q_onnx.PowerOfTwoMethod.MinMSE,
    activation_type=vai_q_onnx.QuantType.QUInt8,
    weight_type=vai_q_onnx.QuantType.QInt8,
    enable_ipu_cnn=True,
    extra_options={'ActivationSymmetric': True}
)

Thanks,
Victoria

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants