TiTan
Collection
Smaller models, fine tuned on generating titles and tags.
•
9 items
•
Updated
•
1
A fine-tuned Gemma 3 270M model, tuned for generating conversation titles and tags.
This model is a fine-tuned version of google/gemma-3-270m-it using the Unsloth framework with LoRA (Low-Rank Adaptation) for efficient training.
Title and tag generation.
Quantized GGUF versions are available in the theprint/TiTan-Gemma3-0.27B-GGUF repo.
TiTan-Gemma3-0.27B-f16.gguf
(837.7 MB) - 16-bit float (original precision, largest file)TiTan-Gemma3-0.27B-q3_k_m.gguf
(320.8 MB) - 3-bit quantization (medium quality)TiTan-Gemma3-0.27B-q4_k_m.gguf
(351.4 MB) - 4-bit quantization (medium, recommended for most use cases)TiTan-Gemma3-0.27B-q5_k_m.gguf
(368.0 MB) - 5-bit quantization (medium, good quality)TiTan-Gemma3-0.27B-q6_k.gguf
(439.9 MB) - 6-bit quantization (high quality)TiTan-Gemma3-0.27B-q8_0.gguf
(448.0 MB) - 8-bit quantization (very high quality)The titles-n-tags set was specifically created for finetuning models on titling and tagging.
from unsloth import FastLanguageModel
import torch
# Load model and tokenizer
model, tokenizer = FastLanguageModel.from_pretrained(
model_name="theprint/TiTan-Gemma3-0.27B",
max_seq_length=4096,
dtype=None,
load_in_4bit=True,
)
# Enable inference mode
FastLanguageModel.for_inference(model)
# Example usage
inputs = tokenizer(["Your prompt here"], return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=256, temperature=0.7)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model = AutoModelForCausalLM.from_pretrained(
"theprint/TiTan-Gemma3-0.27B",
torch_dtype=torch.float16,
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("theprint/TiTan-Gemma3-0.27B")
# Example usage
messages = [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Your question here"}
]
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt", add_generation_prompt=True)
outputs = model.generate(inputs, max_new_tokens=256, temperature=0.7, do_sample=True)
response = tokenizer.decode(outputs[0][inputs.shape[-1]:], skip_special_tokens=True)
print(response)
# Download a quantized version (q4_k_m recommended for most use cases)
wget https://huggingface.co/theprint/TiTan-Gemma3-0.27B/resolve/main/gguf/TiTan-Gemma3-0.27B-q4_k_m.gguf
# Run with llama.cpp
./llama.cpp/main -m TiTan-Gemma3-0.27B-q4_k_m.gguf -p "Your prompt here" -n 256
May provide incorrect information.
If you use this model, please cite:
@misc{titan_gemma3_0.27b,
title={TiTan-Gemma3-0.27B: Fine-tuned google/gemma-3-270m-it},
author={theprint},
year={2025},
publisher={Hugging Face},
url={https://huggingface.co/theprint/TiTan-Gemma3-0.27B}
}