Downloads · 30 days
9
16% of all-time downloads
artisokka/tinyllama-dialogsum-finetuned
tinyllama-dialogsum-finetuned is a machine learning model from artisokka. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as mit.
This model is a fine-tuned version of TinyLlama/TinyLlama-1.1B-Chat-v1.0 specifically for dialogue summarization tasks. It was fine-tuned using Parameter-Efficient Fine-Tuning (PEFT) with LoRA on the DialogSum dataset.
Downloads · 30 days
9
16% of all-time downloads
All-time downloads
58
Public
Repo size
72.6 MB
Likes
0
Public
Click a slice to open those files.
.safetensors36.1 MB · 99%
From the Hugging Face model README
This model is a fine-tuned version of TinyLlama/TinyLlama-1.1B-Chat-v1.0 specifically for dialogue summarization tasks. It was fine-tuned using Parameter-Efficient Fine-Tuning (PEFT) with LoRA on the DialogSum dataset.
This model is intended for generating concise and accurate summaries of dialogues. It can be used for various applications, including:
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
model_name = "TinyLlama/TinyLlama-1.1B-Chat-v1.0"
peft_model_id = "artisokka/tinyllama-dialogsum-finetuned"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
model = PeftModel.from_pretrained(model, peft_model_id)
input_text = "Dialogue: ... (your dialogue here) ..."
input_ids = tokenizer(input_text, return_tensors="pt").input_ids.to(model.device)
outputs = model.generate(input_ids, max_length=200)
summary = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(summary)