Skip to content

Quark tutorial errors: install quark separately, requirements.txt, and model path variables, imagenet dataset, broken links #289

@bconsolvo

Description

@bconsolvo

Looking at this tutorial: https://github.com/amd/RyzenAI-SW/blob/main/tutorial/quark_quantization/docs/quark_quant_readme.md, here are a few questions and issues:

  • Why do I need to install AMD Quark separately if I already have Ryzen AI? It comes with it, correct?

  • Need to have a cd ryzenai-sw\tutorial\quark_quantization to get to the right folder first. The README should just be right there, and just have a dropdown for simple/advanced.

  • This is misspelled: pip install -r requirement.txt

  • For the model paths found here: https://github.com/amd/RyzenAI-SW/blob/main/tutorial/quark_quantization/docs/quark_quant_readme.md#input-model, these variables do not work in the command line. I am not sure what this line is for.

input_model_path = "models\\resnet50.onnx"  
output_model_path = "models\\resnet50_quant.onnx" 

To prepare the test data, please check the download section of the main website: https://huggingface.co/datasets/imagenet-1k/tree/main/data. You need to register and download val_images.tar.gz."

python advanced_quark_quantize.py --model_input models/mobilenetv2.onnx --model_output models/mobilenetv2_quant.onnx
Traceback (most recent call last):
  File "C:\Users\User\bconsolv\amd_ryzenai-sw\tutorial\quark_quantization\advanced_quark_quantize.py", line 82, in <module>
    main(args)
  File "C:\Users\User\bconsolv\amd_ryzenai-sw\tutorial\quark_quantization\advanced_quark_quantize.py", line 20, in main
    if args.adaround:
       ^^^^^^^^^^^^^
AttributeError: 'Namespace' object has no attribute 'adaround'

All examples run into this error right now in this tutorial.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions