Instructions to use seongbo/timer-3b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use seongbo/timer-3b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="seongbo/timer-3b")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("seongbo/timer-3b") model = AutoModelForSeq2SeqLM.from_pretrained("seongbo/timer-3b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use seongbo/timer-3b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "seongbo/timer-3b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "seongbo/timer-3b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/seongbo/timer-3b
- SGLang
How to use seongbo/timer-3b 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 "seongbo/timer-3b" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "seongbo/timer-3b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "seongbo/timer-3b" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "seongbo/timer-3b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use seongbo/timer-3b with Docker Model Runner:
docker model run hf.co/seongbo/timer-3b
TIMER 3B
TIMER is a dialogue agent for timely response generation: given a conversation, it first predicts when to respond (the time interval before the next turn) and then generates what to respond, conditioned on that interval.
- Paper: From What to Respond to When to Respond: Timely Response Generation for Open-domain Dialogue Agents (Findings of EACL 2027)
- Code: https://github.com/sb-jang/timelychat
- Data: https://huggingface.co/datasets/seongbo/timelychat
- Base model: COSMO-xl, a T5-based (encoder-decoder) 3B dialogue model
- License: Apache 2.0
Input format
Each turn is written as <spk> SPEAKER: <time> INTERVAL later <utt> UTTERANCE; the first turn has no interval. To predict the interval, end the input with the target speaker and <time>; the model generates the interval and then the response.
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("seongbo/timer-3b")
model = AutoModelForSeq2SeqLM.from_pretrained("seongbo/timer-3b")
prompt = (
"<spk> A: <utt> I'm about to head out for dinner with my friends. "
"<spk> B: <time> 0 minutes later <utt> Have fun! Where are you going? "
"<spk> A: <time> 0 minutes later <utt> A new Italian place downtown. "
"<spk> B: <time>"
)
inputs = tokenizer(prompt, return_tensors="pt")
output = model.generate(**inputs, max_new_tokens=100, num_beams=3, no_repeat_ngram_size=2)
print(tokenizer.decode(output[0], skip_special_tokens=True))
To generate a response for a given interval instead, end the input with, e.g., <spk> B: <time> 1 hour later <utt>.
Training
Fine-tuned with a multi-task objective that jointly learns interval prediction and time-conditioned response generation on the 55K-dialogue TimelyChat training set (Section 5 and Appendix C.1 of the paper).
Limitations
The model is trained on synthetic, English, event-driven dialogues and has not been validated on real conversations. It trails much larger LLMs such as GPT-4o in naturalness and coherence. See the Limitations section of the paper.
Citation
@inproceedings{jang-etal-2027-timely,
title = {From What to Respond to When to Respond: Timely Response Generation for Open-domain Dialogue Agents},
author = {Jang, Seongbo and Jeon, Minjin and Lee, Jaehoon and Lee, Seonghyeon and Lee, Dongha and Yu, Hwanjo},
booktitle = {Findings of the Association for Computational Linguistics: EACL 2027},
year = {2027}
}
- Downloads last month
- 4
Model tree for seongbo/timer-3b
Base model
allenai/cosmo-xl
docker model run hf.co/seongbo/timer-3b