Downloads · 30 days
14
33% of all-time downloads
fs90/Qwen3-1.7B-alpaca-cleaned-lora
Qwen3-1.7B-alpaca-cleaned-lora is a text generation model from fs90. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
Fine-tuned LoRA adapters for unsloth/Qwen3-1.7B-unsloth-bnb-4bit using supervised fine-tuning.
Downloads · 30 days
14
33% of all-time downloads
All-time downloads
43
Public
Repo size
151 MB
Likes
0
Public
Click a slice to open those files.
.safetensors69.8 MB · 81%
From the Hugging Face model README
Fine-tuned LoRA adapters for unsloth/Qwen3-1.7B-unsloth-bnb-4bit using supervised fine-tuning.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
# Load base model
base_model = AutoModelForCausalLM.from_pretrained(
"unsloth/Qwen3-1.7B-unsloth-bnb-4bit",
load_in_4bit=True,
device_map="auto"
)
# Load LoRA adapters
model = PeftModel.from_pretrained(base_model, "path/to/lora")
tokenizer = AutoTokenizer.from_pretrained("unsloth/Qwen3-1.7B-unsloth-bnb-4bit")
# Generate
messages = [{"role": "user", "content": "Your question here"}]
input_ids = tokenizer.apply_chat_template(messages, return_tensors="pt").to("cuda")
outputs = model.generate(input_ids, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
model_name="path/to/lora",
max_seq_length=4096,
dtype=None,
load_in_4bit=True,
)
# For inference
FastLanguageModel.for_inference(model)
# Generate
messages = [{"role": "user", "content": "Your question here"}]
inputs = tokenizer.apply_chat_template(messages, tokenize=True, return_tensors="pt").to("cuda")
outputs = model.generate(input_ids=inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Training dataset: yahma/alpaca-cleaned
Please refer to the dataset documentation for licensing and usage restrictions.
To create a standalone merged model:
from unsloth import FastLanguageModel
# Load model with LoRA
model, tokenizer = FastLanguageModel.from_pretrained(
model_name="path/to/lora",
max_seq_length=4096,
dtype=None,
load_in_4bit=True,
)
# Save merged 16-bit model
model.save_pretrained_merged("merged_model", tokenizer, save_method="merged_16bit")
# Or save as GGUF for llama.cpp/Ollama
model.save_pretrained_gguf("model.gguf", tokenizer, quantization_method="q4_k_m")
This model is based on unsloth/Qwen3-1.7B-unsloth-bnb-4bit and trained on yahma/alpaca-cleaned. Please refer to the original model and dataset licenses for usage terms.
Trained by: Farhan Syah
Training pipeline:
Base components:
If you use this model, please cite:
@misc{qwen3_1.7b_alpaca_cleaned_lora,
author = {Farhan Syah},
title = {Qwen3-1.7B-alpaca-cleaned Fine-tuned with LoRA},
year = {2025},
note = {Fine-tuned using Unsloth: https://github.com/unslothai/unsloth},
howpublished = {\url{https://github.com/farhan-syah/unsloth-finetuning}}
}