Skip to content

Instantly share code, notes, and snippets.

@engamrfarrag
engamrfarrag / merge_qlora_with_quantized_model.py
Created October 13, 2024 20:50 — forked from ChrisHayduk/merge_qlora_with_quantized_model.py
Merging QLoRA weights with quantized model
"""
The code below combines approaches published by both @eugene-yh and @jinyongyoo on Github.
Thanks for the contributions guys!
"""
import torch
import peft