Model Card for checkpoint_models
This model is a fine-tuned version of google/gemma-3-270m-it. It has been trained using TRL.
This model takes string input and returns structured output.
Example,
Input: "Hello, my name is Feroz!! I visited a beautiful eating place yesterday. It was a rustic wooden table set with a bowl of creamy tomato soup, a golden grilled cheese sandwich, and a tall glass of iced lemonade. However, when I got home, I also had a Diet Coke"
Output:
food_or_drink: 1 \n tags: fi \n foods: creamy tomato soup, grilled cheese sandwich, iced lemonade \n drinks: Diet Coke
Quick start
from transformers import pipeline
gen = pipeline("text-generation", model="ferozk0333/Text-Extraction-NER-FoodExtract-Gemma-3-270M-Fine-Tuned-v1", device_map="auto")
msg = [{"role": "user", "content": "A bowl of tomato soup with a glass of iced lemonade"}]
print(gen(msg, max_new_tokens=64, do_sample=False)[0]["generated_text"][-1]["content"])
Training procedure
This model was trained with SFT.
Framework versions
- TRL: 1.16.0
- Transformers: 5.20.2
- Pytorch: 2.11.0+cu130
- Datasets: 4.8.5
- Tokenizers: 0.23.3
Citations
Cite TRL as:
@software{vonwerra2020trl,
title = {{TRL: Transformers Reinforcement Learning}},
author = {von Werra, Leandro and Belkada, Younes and Tunstall, Lewis and Beeching, Edward and Thrush, Tristan and Lambert, Nathan and Huang, Shengyi and Rasul, Kashif and Gallouédec, Quentin},
license = {Apache-2.0},
url = {https://github.com/huggingface/trl},
year = {2020}
}