Downloads · 30 days
14
20% of all-time downloads
asrith05/finetuned_slm_t2
finetuned_slm_t2 is a text generation model from asrith05. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
This model is fine-tuned for generating natural language sentences from structured data without domain labels.
Downloads · 30 days
14
20% of all-time downloads
All-time downloads
71
Public
Parameters
109M
437 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors437 MB · 99%
From the Hugging Face model README
This model is fine-tuned for generating natural language sentences from structured data without domain labels.
Generate a sentence from this data: {key: value, ...}from transformers import AutoTokenizer, AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained("asrith05/finetuned_slm_t2")
tokenizer = AutoTokenizer.from_pretrained("asrith05/finetuned_slm_t2")
# Example: Sports data
prompt = "Generate a sentence from this data: {Team1: 'Lakers', Score1: 108, Team2: 'Warriors', Score2: 90}"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=50, temperature=0.8)
result = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(result)
# Expected: "Generate a sentence from this data: {Team1: 'Lakers', Score1: 108, Team2: 'Warriors', Score2: 90} The Lakers won the game against the Warriors with a final score of 108 to 90."
Generate a sentence from this data: {Team1: 'Mumbai Indians', Score1: 185, Team2: 'Chennai Super Kings', Score2: 180}
Generate a sentence from this data: {City: 'Hyderabad', Temperature: 32, Condition: 'sunny', Day: 'Monday'}
Generate a sentence from this data: {Person: 'Priya', City: 'Bangalore', Transport: 'flight', Duration: 2}
Generate a sentence from this data: {Movie: 'RRR', Genre: 'Action', Rating: 8.2, Year: 2022}
Generate a sentence from this data: {Product: 'iPhone', Brand: 'Apple', Price: 999, Rating: 4.5}
@model{finetuned_slm_t2,
title={Fine-tuned SLM T2: Structured Data Generation},
author={Asrith},
year={2024},
url={https://huggingface.co/asrith05/finetuned_slm_t2}
}