Downloads · 30 days
11
12% of all-time downloads
asrith05/finetuned_slm_t2_withdomain
finetuned_slm_t2_withdomain 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 with explicit domain labels and enhanced diversity.
Downloads · 30 days
11
12% of all-time downloads
All-time downloads
90
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 with explicit domain labels and enhanced diversity.
Domain: {domain}\n{key: value, ...}\nOutput:from transformers import AutoTokenizer, AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained("asrith05/finetuned_slm_t2_withdomain")
tokenizer = AutoTokenizer.from_pretrained("asrith05/finetuned_slm_t2_withdomain")
# Example: Sports with domain label
prompt = '''Domain: sports
Team1: Lakers, Score1: 108, Team2: Warriors, Score2: 90
Output:'''
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: "Domain: sports\nTeam1: Lakers, Score1: 108, Team2: Warriors, Score2: 90\nOutput: The Lakers defeated the Warriors with a final score of 108 to 90."
Domain: sports
Team1: Mumbai Indians, Score1: 185, Team2: Chennai Super Kings, Score2: 180
Output: Mumbai Indians won against Chennai Super Kings with a score of 185 to 180.
Domain: weather
City: Hyderabad, Temperature: 32, Condition: sunny, Day: Monday
Output: On Monday, Hyderabad experienced sunny weather with a temperature of 32 degrees.
Domain: travel
Person: Priya, City: Bangalore, Transport: flight, Duration: 2
Output: Priya traveled to Bangalore by flight, which took 2 hours.
Domain: movies
Movie: RRR, Genre: Action, Rating: 8.2, Year: 2022
Output: RRR is an Action movie from 2022 with a rating of 8.2.
Domain: products
Product: OnePlus, Brand: OnePlus, Price: 45000, Rating: 4.3
Output: The OnePlus smartphone by OnePlus is priced at ₹45,000 with a rating of 4.3 stars.
| Feature | Standard Model | With Domain Labels |
|---|---|---|
| Domain Context | Implicit | Explicit Labels |
| Generation Accuracy | Good | Enhanced |
| Domain Consistency | Variable | Guaranteed |
| Training Efficiency | Standard | Domain-Guided |
| Output Quality | Good | Domain-Optimized |
@model{finetuned_slm_t2_withdomain,
title={Fine-tuned SLM T2 With Domain Labels: Multi-Domain Structured Data Generation},
author={Asrith},
year={2024},
url={https://huggingface.co/asrith05/finetuned_slm_t2_withdomain}
}
This model builds upon the DeepSeek V3 architecture and was trained on carefully curated diverse datasets. Special thanks to the open-source community for providing the foundational tools and frameworks that made this work possible.
Note: This model is designed specifically for structured data-to-text generation with domain awareness. For best results, always include the domain label in your input format.