How to use WenWW/Sparse8B_TO_DPO_Lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("neuralmagic/Sparse-Llama-3.1-8B-2of4") model = PeftModel.from_pretrained(base_model, "WenWW/Sparse8B_TO_DPO_Lora")
The community tab is the place to discuss and collaborate with the HF community!