Downloads · 30 days
9
16% of all-time downloads
catalin-pangaleanu/qwen25coder-7b-lora-adapter
qwen25coder-7b-lora-adapter is a text generation model from catalin-pangaleanu. Use it when you need the model to write or continue text. It is set up for peft.
This repository provides a LoRA adapter for Qwen/Qwen2.5-Coder-7B-Instruct, developed for Python coding assistance. The adapter is intended to support code-focused questions in a repository-grounded setting.
Downloads · 30 days
9
16% of all-time downloads
All-time downloads
56
Public
Repo size
31.6 MB
Likes
0
Public
Click a slice to open those files.
.safetensors20.2 MB · 64%
From the Hugging Face model README
This repository provides a LoRA adapter for Qwen/Qwen2.5-Coder-7B-Instruct, developed for Python coding assistance. The adapter is intended to support code-focused questions in a repository-grounded setting.
Qwen/Qwen2.5-Coder-7B-Instructr): 16q_proj, k_proj, v_proj, o_projThis artifact contains the adapter weights only and is not a standalone model. It must be loaded together with the corresponding base model.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model_id = "Qwen/Qwen2.5-Coder-7B-Instruct"
adapter_path = "path/to/adapter"
tokenizer = AutoTokenizer.from_pretrained(adapter_path)
base_model = AutoModelForCausalLM.from_pretrained(base_model_id)
model = PeftModel.from_pretrained(base_model, adapter_path)