Instructions to use acon96/Little-Titles with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use acon96/Little-Titles with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="acon96/Little-Titles") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("acon96/Little-Titles") model = AutoModelForMultimodalLM.from_pretrained("acon96/Little-Titles", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use acon96/Little-Titles with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "acon96/Little-Titles" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "acon96/Little-Titles", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/acon96/Little-Titles
- SGLang
How to use acon96/Little-Titles with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "acon96/Little-Titles" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "acon96/Little-Titles", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "acon96/Little-Titles" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "acon96/Little-Titles", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use acon96/Little-Titles with Docker Model Runner:
docker model run hf.co/acon96/Little-Titles
Little Titles
Little Titles is a fine-tuned Qwen/Qwen3.5-0.8B-Base model that generates a concise title for a user request or chat conversation. The goal is to provide a compact, but accurate, model for generating chat titles.
Usage
Input contract
The saved tokenizer chat template is intentionally restrictive. Each request must contain exactly one user message, optionally preceded by one system message. It does not accept multi-turn conversations, prior assistant messages, or tools. To title a full conversation, serialize or summarize that conversation into the content of the single user message.
Set add_generation_prompt=True when calling the Transformers chat template. Without a system message, the template uses: Generate a short title describing the following user request.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "acon96/Little-Titles"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
messages = [{"role": "user", "content": "Help me plan a three-day trip to Kyoto."}]
inputs = tokenizer.apply_chat_template(
messages, add_generation_prompt=True, return_tensors="pt", return_dict=True
).to(model.device)
output = model.generate(**inputs, max_new_tokens=32, do_sample=False)
title = tokenizer.decode(output[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True)
print(title.strip())
To supply a custom instruction, prepend one system message while retaining one user message:
messages = [
{"role": "system", "content": "Return a concise, action-oriented title."},
{"role": "user", "content": "Help me plan a three-day trip to Kyoto."},
]
Deployment with vLLM
Serve the model through an OpenAI-compatible API:
vllm serve acon96/Little-Titles \
--host 0.0.0.0 \
--port 8000 \
--max-model-len 32768
Then request a title through /v1/chat/completions:
curl http://localhost:8000/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{
"model": "acon96/Little-Titles",
"messages": [{"role": "user", "content": "Help me plan a three-day trip to Kyoto."}],
"temperature": 0,
"max_tokens": 32
}'
Training
The fine-tuning configuration is available in
training-config.yml. It uses
SupraLabs/chat-titles-filtered-115K and Axolotl to fine-tune the base model.
Evaluation
We compare Little Titles with a reference title supplied by the ogrnz/chat-titles dataset. Gemma 4 26B A4B rated each pair for accuracy, relevance, and concise usefulness.
Across 10,000 paired judgments, Little Titles won 4,831 comparisons versus 3,531 reference-title wins (1,638 ties). Its decisive-pair win rate was 57.8% (95% CI: 56.7%–58.8%; exact one-sided sign test $p = 2.81 \times 10^{-46}$), so it was preferred more often than the reference title in this evaluation.
This is exploratory evidence: Little Titles was always Candidate A, so candidate-position bias may affect this result.
- Downloads last month
- 25