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

[Lora] Cannot convert falcon lora to GGUF. #3319

Closed
Ph0rk0z opened this issue Sep 23, 2023 · 0 comments · Fixed by #3333
Closed

[Lora] Cannot convert falcon lora to GGUF. #3319

Ph0rk0z opened this issue Sep 23, 2023 · 0 comments · Fixed by #3333

Comments

@Ph0rk0z
Copy link

Ph0rk0z commented Sep 23, 2023

Expected Behavior

convert-lora-to-gguf.py converts a HF lora adapter bin to GGUF format.

Current Behavior

Spits out the error Error: unrecognized tensor

Environment and Context

I think at least some stuff has to be added to:

HF_SUBLAYER_TO_GGML = {
    "self_attn.q_proj": "attn_q",
    "self_attn.k_proj": "attn_k",
    "self_attn.v_proj": "attn_v",
    "self_attn.o_proj": "attn_output",
    "mlp.gate_proj": "ffn_gate",
    "mlp.down_proj": "ffn_down",
    "mlp.up_proj": "ffn_up",
    "input_layernorm": "attn_norm",
    "post_attention_layernorm": "ffn_norm",
}

And maybe some other llama specific things changed down the line but I have no idea of what the names are supposed to be or where to find them.

Now that merging adapters is possible, this would let all of the falcon 180b tunes work without downloading 100GB+ each.

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

Successfully merging a pull request may close this issue.

1 participant