Downloads · 30 days
24
16% of all-time downloads
riturajpandey739/Qwen3-4B-Text-Summarizer-finetuning
Qwen3-4B-Text-Summarizer-finetuning is a text generation model from riturajpandey739. 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.
Downloads · 30 days
24
16% of all-time downloads
All-time downloads
154
Public
Repo size
540 MB
Likes
0
Public
Click a slice to open those files.
.safetensors529 MB · 97%
From the Hugging Face model README

A State-of-the-Art Dialogue Summarization Model Fine-tuned by Rituraj Pandey
</div>Qwen3-4B-Text-Summarizer-finetuning is a highly efficient, fine-tuned version of the powerful Qwen/Qwen3-4B (4 Billion Parameter) Large Language Model. It has been specifically engineered to handle the complex task of Abstractive Dialogue Summarization.
Unlike standard summarizers that struggle with informal language, slang, and speaker transitions, this model leverages the advanced reasoning capabilities of the Qwen3 architecture, adapted via Rank-Stabilized LoRA (RSLoRA) to produce concise, factual, and coherent summaries of conversations.
| Feature | Specification |
|---|---|
| Base Model | Qwen/Qwen3-4B-Instruct |
| Architecture | Causal Decoder-Only Transformer |
| Quantization | 4-bit (BitsAndBytes) |
| Adapter Rank | 64 (High Capacity) |
| Alpha | 32 (Rank Stabilized) |
| Target Modules | All Linear Layers |
| Training Framework | Unsloth + TRL + PEFT |
For 2x faster inference, use the unsloth library.
from unsloth import FastLanguageModel
import torch
repo_id = "riturajpandey739/Qwen3-4B-Text-Summarizer-finetuning"
# Load model
model, tokenizer = FastLanguageModel.from_pretrained(
model_name = repo_id,
max_seq_length = 2048,
dtype = None,
load_in_4bit = True,
)
FastLanguageModel.for_inference(model)
# Define Prompt Template
prompt_template = """Below is a conversation between people. Write a concise summary of the conversation.
### Dialogue:
{}
### Summary:
"""
# Inference
dialogue = """
Rituraj: The model is working perfectly on Colab.
Scientist: That is great news. Did you push it to the hub?
Rituraj: Yes, I just updated the README as well.
"""
inputs = tokenizer([prompt_template.format(dialogue)], return_tensors = "pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens = 128, temperature = 0.1)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))