Downloads · 30 days
10
15% of all-time downloads
EvaanLi/qwen3-1.7b-backward-lora
qwen3-1.7b-backward-lora is a text generation model from EvaanLi. Use it when you need the model to write or continue text. It is set up for peft.
This adapter turns Qwen3-1.7B into a backward model that generates an instruction from a given response. It is used in the self-alignment pipeline to create synthetic instruction-response pairs from unlabeled answers.
Downloads · 30 days
10
15% of all-time downloads
All-time downloads
65
Public
Repo size
221 MB
Likes
0
Public
Click a slice to open those files.
.pt140 MB · 55%
From the Hugging Face model README
This adapter turns Qwen3-1.7B into a backward model that generates an instruction from a given response. It is used in the self-alignment pipeline to create synthetic instruction-response pairs from unlabeled answers.
Causal LM with loss applied only on the instruction tokens.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base = "Qwen/Qwen3-1.7B"
adapter = "EvaanLi/qwen3-1.7b-backward-lora"
tokenizer = AutoTokenizer.from_pretrained(base, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(base, trust_remote_code=True)
model = PeftModel.from_pretrained(model, adapter)
This adapter is for instruction generation only and is not intended for direct instruction-following.