Downloads · 30 days
13
10% of all-time downloads
ankitkushwaha90/Qwen3-1.7BSFTLoRA
Qwen3-1.7BSFTLoRA is a text generation model from ankitkushwaha90. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
A supervised fine-tuned (SFT) version of Qwen3-1.7B trained using LoRA (Low-Rank Adaptation) with the TRL SFTTrainer. This model is designed for instruction-following tasks while keeping the number of trainable parame…
Downloads · 30 days
13
10% of all-time downloads
All-time downloads
128
Public
Parameters
1.7B
3.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3.4 GB · 100%
From the Hugging Face model README
A supervised fine-tuned (SFT) version of Qwen3-1.7B trained using LoRA (Low-Rank Adaptation) with the TRL SFTTrainer. This model is designed for instruction-following tasks while keeping the number of trainable parameters low through parameter-efficient fine-tuning (PEFT).
| Property | Value |
|---|---|
| Base Model | Qwen/Qwen3-1.7B |
| Architecture | Qwen3ForCausalLM |
| Fine-tuning Method | Supervised Fine-Tuning (SFT) |
| PEFT Method | LoRA |
| Framework | Transformers + TRL + PEFT |
| Precision | bfloat16 |
| Library | Hugging Face Transformers |
| Training | SFTTrainer |
The model is based on Qwen3-1.7B with the following architecture:
Qwen3ForCausalLMThe model was fine-tuned using Parameter-Efficient Fine-Tuning (PEFT) with LoRA.
Training stack:
from datasets import load_dataset
from transformers import (
AutoTokenizer,
AutoModelForCausalLM,
)
from peft import (
LoraConfig,
get_peft_model,
)
from trl import (
SFTTrainer,
SFTConfig,
)
This model is intended for:
from transformers import AutoTokenizer, AutoModelForCausalLM
model_name = "ankitkushwaha90/<your-model-name>"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
messages = [
{
"role": "user",
"content": "Explain what LoRA fine-tuning is."
}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=512,
temperature=0.7,
top_p=0.95,
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
If you use this model in your research or applications, please cite:
@software{qwen3_1_7b_sft_lora,
author = {Ankit Kushwaha},
title = {Qwen3-1.7B SFT LoRA},
year = {2026},
publisher = {Hugging Face},
url = {https://huggingface.co/ankitkushwaha90}
}
This model is built upon the excellent Qwen3-1.7B base model and fine-tuned using the Hugging Face ecosystem, including:
Special thanks to the Qwen and Hugging Face teams for providing open-source tooling and models.