Skip to content

Instantly share code, notes, and snippets.

View Espacio-root's full-sized avatar

Abdullah Danish Espacio-root

View GitHub Profile
@ChrisHayduk
ChrisHayduk / merge_qlora_with_quantized_model.py
Last active November 13, 2024 10:49
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