You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to merge lora adapter with pretrained weights? #399
I have trained an adapter for Qwen2 and pushed it to huggingface hub after using auto train. Now I don’t have access to the virtual machine that created the adapter. But, I have access to the adapter. How do I merge this adapter with the original Qwen2 model?
So sorry on the delay @johnyquest7 - just relocated to SF so the slowness. You can try loading the adapter itself through FastLanguageModel.from_pretrained(adapter) then doing the saving to 16bit
Activity
danielhanchen commentedon May 1, 2024
Oh our Colab notebooks on the bottom have this! See https://github.com/unslothai/unsloth/wiki#saving-models-to-16bit-for-vllm
Ie:
johnyquest7 commentedon Jun 25, 2024
I have trained an adapter for Qwen2 and pushed it to huggingface hub after using auto train. Now I don’t have access to the virtual machine that created the adapter. But, I have access to the adapter. How do I merge this adapter with the original Qwen2 model?
danielhanchen commentedon Jul 1, 2024
So sorry on the delay @johnyquest7 - just relocated to SF so the slowness. You can try loading the adapter itself through
FastLanguageModel.from_pretrained(adapter)then doing the saving to 16bitStudio: price the shared banded mask reserve at long Inkling 2 context
Studio: price Inkling 2 quantized KV by what the bundled llama.cpp ru…
Studio: do not count an older build's reserve surplus as Inkling 2 re…
Studio: keep Inkling 2 compute regrowth free under --fit on (unslotha…