Downloads · 30 days
0
theprint/TiTan-Llama-3.2-1B
TiTan-Llama-3.2-1B is a text generation model from theprint. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
A fine-tuned Llama 3.2 1B model, specialized in generating short conversation titles and relevant tags.
Downloads · 30 days
0
Access
Public
Updated Jul 25, 2025
Parameters
1.2B
2.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.5 GB · 99%
From the Hugging Face model README
A fine-tuned Llama 3.2 1B model, specialized in generating short conversation titles and relevant tags.
This model is a fine-tuned version of unsloth/Llama-3.2-1B using the Unsloth framework with LoRA (Low-Rank Adaptation) for efficient training.
Title and tag generation.
The titles-n-tags set was specifically created for finetuning models on titling and tagging. This was done by generating two titles and two sets of tags for each entry, and using a combination of a judge LLM and a scoring algorithm to determine the winning combination.
from unsloth import FastLanguageModel
import torch
# Load model and tokenizer
model, tokenizer = FastLanguageModel.from_pretrained(
model_name="theprint/TiTan-Llama-3.2-1B",
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-Llama-3.2-1B",
torch_dtype=torch.float16,
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("theprint/TiTan-Llama-3.2-1B")
# 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)
Quantized GGUF versions are available in the gguf/ directory for use with llama.cpp:
TiTan-Llama-3.2-1B-f16.gguf (2364.7 MB) - 16-bit float (original precision, largest file)TiTan-Llama-3.2-1B-q3_k_m.gguf (658.8 MB) - 3-bit quantization (medium quality)TiTan-Llama-3.2-1B-q4_k_m.gguf (770.3 MB) - 4-bit quantization (medium, recommended for most use cases)TiTan-Llama-3.2-1B-q5_k_m.gguf (869.3 MB) - 5-bit quantization (medium, good quality)TiTan-Llama-3.2-1B-q6_k.gguf (974.5 MB) - 6-bit quantization (high quality)TiTan-Llama-3.2-1B-q8_0.gguf (1259.9 MB) - 8-bit quantization (very high quality)# Download a quantized version (q4_k_m recommended for most use cases)
wget https://huggingface.co/theprint/TiTan-Llama-3.2-1B/resolve/main/gguf/TiTan-Llama-3.2-1B-q4_k_m.gguf
# Run with llama.cpp
./llama.cpp/main -m TiTan-Llama-3.2-1B-q4_k_m.gguf -p "Your prompt here" -n 256
May provide incorrect information.
If you use this model, please cite:
@misc{titan_llama_3.2_1b,
title={TiTan-Llama-3.2-1B: Fine-tuned unsloth/Llama-3.2-1B},
author={theprint},
year={2025},
publisher={Hugging Face},
url={https://huggingface.co/theprint/TiTan-Llama-3.2-1B}
}