Skip to content

Instantly share code, notes, and snippets.

@darkman111a
darkman111a / merge_qlora_with_quantized_model.py
Created August 29, 2023 07: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