Skip to content

Instantly share code, notes, and snippets.

@sacdroid
sacdroid / merge_qlora_with_quantized_model.py
Created April 10, 2024 00:36 — 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