Downloads · 30 days
14
33% of all-time downloads
abhi0619/qwen25-coder-15b-instruct-lora-humaneval
qwen25-coder-15b-instruct-lora-humaneval is a text generation model from abhi0619. Use it when you need the model to write or continue text. It is set up for peft.
This repository contains a LoRA adapter fine-tuned on HumanEval-style Python function synthesis tasks.
Downloads · 30 days
14
33% of all-time downloads
All-time downloads
43
Public
Repo size
15.8 MB
Likes
0
Public
Click a slice to open those files.
.json11.4 MB · 72%
From the Hugging Face model README
This repository contains a LoRA adapter fine-tuned on HumanEval-style Python function synthesis tasks.
Qwen/Qwen2.5-Coder-1.5B-Instructadapter_model.safetensorsadapter_config.jsontokenizer.jsontokenizer_config.jsonchat_template.jinjafrom transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model_id = "Qwen/Qwen2.5-Coder-1.5B-Instruct"
adapter_repo = "abhi0619/qwen25-coder-15b-instruct-lora-humaneval"
tokenizer = AutoTokenizer.from_pretrained(adapter_repo)
base_model = AutoModelForCausalLM.from_pretrained(base_model_id)
model = PeftModel.from_pretrained(base_model, adapter_repo)