Downloads · 30 days
10
11% of all-time downloads
umut-celik/vehicle-title-t5-small
vehicle-title-t5-small is a text generation model from umut-celik. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as cc-by-nc-4.0.
[](https://huggingface.co/google-t5/t5-small) [](https://creativecommons.org/licenses/by-nc/4.0/) [](https://huggingface.co/docs/transformers)
Downloads · 30 days
10
11% of all-time downloads
All-time downloads
89
Public
Parameters
60.5M
243 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors484 MB · 100%
From the Hugging Face model README
A fine-tuned t5-small sequence-to-sequence model that extracts structured vehicle information (year, make, model) from free-form vehicle listing titles.
| Property | Value |
|---|---|
| Base Model | google-t5/t5-small |
| Parameters | ~60 million |
| Model Size | ~231 MB (safetensors) |
| Task | Text-to-text generation |
| Input | Raw vehicle title with instruction prefix |
| Output | Structured string: Year: XXXX | Make: XXXX | Model: XXXX |
Input:
extract vehicle info: New 2023 Yamaha YZ450F Monster Energy Edition
Output:
Year: 2023 | Make: Yamaha | Model: YZ450F
(year, make, model) tuplesThis model targets vehicle title parsing; it is not a general-purpose language model.
| Property | Value |
|---|---|
| Source | Private dealership inventory export |
| Total Samples | ~200,000 |
| Train/Val Split | 90% / 10% |
| Status | Proprietary; not released |
Fields used from source data:
onlineTitle (free-text input)catalogYear, catalogMake, catalogModel (target labels)| Hyperparameter | Value |
|---|---|
| Epochs | 3 |
| Batch Size | 32 |
| Learning Rate | 2e-4 |
| Weight Decay | 0.01 |
| Max Input Length | 256 tokens |
| Max Target Length | 128 tokens |
| Optimizer | AdamW (via Seq2SeqTrainer) |
| Gradient Checkpointing | Enabled |
| Component | Specification |
|---|---|
| Device | Apple MacBook Pro |
| Chip | Apple M1 Max |
| Backend | PyTorch MPS |
| Training Time | ~5 hours |
Evaluated on 19,793 held-out validation samples from the private corpus.
| Metric | Score |
|---|---|
| Exact String Match | 55.53% |
| Year Accuracy | 98.06% |
| Make Accuracy | 98.78% |
| Model Accuracy | 56.49% |
Field-wise accuracies are computed by parsing the generated string and comparing each field independently against ground truth.
from transformers import T5Tokenizer, T5ForConditionalGeneration
MODEL_ID = "umut-celik/vehicle-title-t5-small"
tokenizer = T5Tokenizer.from_pretrained(MODEL_ID, legacy=False)
model = T5ForConditionalGeneration.from_pretrained(MODEL_ID)
model.eval()
def predict_vehicle(title: str) -> str:
input_text = "extract vehicle info: " + title
inputs = tokenizer(
input_text,
return_tensors="pt",
truncation=True,
max_length=256,
)
outputs = model.generate(**inputs, max_length=128)
return tokenizer.decode(outputs[0], skip_special_tokens=True)
# Example
title = "New 2023 Yamaha YZ450F Monster Energy Edition"
print(predict_vehicle(title))
# Output: Year: 2023 | Make: Yamaha | Model: YZ450F
def parse_prediction(text: str) -> dict:
parts = {}
for segment in text.split("|"):
segment = segment.strip()
if ":" in segment:
key, value = segment.split(":", 1)
parts[key.strip().lower()] = value.strip()
return parts
result = parse_prediction("Year: 2023 | Make: Yamaha | Model: YZ450F")
# {'year': '2023', 'make': 'Yamaha', 'model': 'YZ450F'}
model field is lower than year and make; complex or uncommon model names are harder to extractThis model is released under the CC-BY-NC-4.0 license. Commercial use is not permitted without explicit authorization.
@misc{celik2024vehicletitle,
author = {Celik, Umut},
title = {Vehicle Title to Year/Make/Model Extraction with T5-small},
year = {2024},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/umut-celik/vehicle-title-t5-small}}
}