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

Anole-HF cannot be converted to Anole-Torch accurately #45

Open
Hritikbansal opened this issue Oct 25, 2024 · 0 comments
Open

Anole-HF cannot be converted to Anole-Torch accurately #45

Hritikbansal opened this issue Oct 25, 2024 · 0 comments

Comments

@Hritikbansal
Copy link

Hritikbansal commented Oct 25, 2024

Hi,

I converted Anole-HF (https://huggingface.co/leloy/Anole-7b-v0.1-hf) to Anole-torch using bin_to_pth.py script.

I observe that the {q/k}_norm.weight, {q/k}_norm.bias, self_attn.{q/k}_proj.weight params do not match between the converted Anole-torch (from HF) and the original Anole-torch (Anole-7b-v0.1) shared as a part of this repo.

I believe that this is due to some special operations (permute and t()) that convert_chameleon_weights_to_hf.py performs on the Torch checkpoint to give the HF checkpoint, which the bin_to_pth.py does not revert.

Can you fix the bin_to_pth file for accurate conversion?

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

1 participant