Skip to content

Can't reproduce perplexity on LLaMA3-8B #50

@Swiminn

Description

@Swiminn

Hello, thank you for releasing the code.
I tried to reproduce the results reported in the SpinQuant paper, but I’m seeing a notable gap in perplexity for the LLaMA3-8B model W4A4KV4 experiment.

My setup is as follows: I didn’t change any code and strictly followed the training and evaluation commands provided in the README. The environment was CUDA 12.1, PyTorch 2.5.1, Python 3.9, and I ran everything on an A100 (80GB) GPU.

When I trained following the repository’s instructions and using 10_optimize_ratation.sh and 2_eval_ptq.sh, I obtained a perplexity of 8.0, while the paper reports 7.3. When I used the rotation matrices provided in the GitHub repository directly, the perplexity increased slightly to 8.5.

I double-checked that the same evaluation scripts were used. Could you please clarify whether there are any additional steps that are required to achieve the reported 7.3 perplexity?

Thank you for your work and for sharing the implementation.

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