Repository navigation
Added GGUF Support for Qwen2 Vision Model - #1799
adityaghai07 wants to merge 5 commits into
Conversation
|
@danielhanchen The code demonstrates successful fine-tuning of Qwen2 Vision models (both 7B and 2B variants) and adds support for local deployment and GGUF model uploads to Hugging Face Hub. I collaborated with Captain-T2004 on this issue. Colab Notebooks HuggingFace Repo |
|
@danielhanchen, can you please review it and tell us if any additional changes are required? |
|
Oh that reminded me - is the surgery file from https://github.com/ggml-org/llama.cpp/blob/master/examples/llava/qwen2_vl_surgery.py? Could https://github.com/ggml-org/llama.cpp/blob/master/examples/llava/llava_surgery.py also work somehow? Could you guys instead of copying pasting, rather get the latest - ie: file = requests.get("https://raw.githubusercontent.com/ggml-org/llama.cpp/refs/heads/master/examples/llava/llava_surgery.py").content
with open("surgery.py", "w") as f: f.write(file)You can also use unsloth-zoo's created_module = create_new_function(
f"LlavaSurgery",
source_file,
f"os",
[],
overwrite = True,
) |
GGUF Export Support for Qwen2 Vision Models
Feature Overview
Added direct GGUF export capability for vision finetunes, supporting all available Qwen2 Vision Models.
Implementation Details
Contributors
This feature was developed in collaboration with @Captain-T2004.