Skip to content

Issues about QuaRot on Dream-Base #1

@hhhhhhy5

Description

@hhhhhhy5

Thanks for the excellent work.
It seems that there is something wrong with QuaRot on Dream-base. I modified w_bits and a_bits to 4 and ran command below:
python $DIRPATH/QuaRot/fake_quant/main.py --model $MODEL_PATH \ --a_bits 4 --v_bits 16 --k_bits 16 --w_bits 4 --w_clip \ --rotate --tasks piqa \
only got 52.77 accuracy, which is nearly random.
To further investigate, I ran fp 16 without "--rotate", that is python $DIRPATH/QuaRot/fake_quant/main.py --model $MODEL_PATH \ --a_bits 16 --v_bits 16 --k_bits 16 --w_bits 16 \ --tasks piqa \
got the right accuracy 74.
But I ran fp16 with "--rotate", that is python $DIRPATH/QuaRot/fake_quant/main.py --model $MODEL_PATH \ --a_bits 16 --v_bits 16 --k_bits 16 --w_bits 16 --rotate \ --tasks piqa \
only got 53.53.

Have you tested quarot on Dream?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions