[VLDB' 25] ChatTS: Aligning Time Series with LLMs via Synthetic Data for Enhanced Understanding and Reasoning
ChatTS
focuses on
Understanding and Reasoning
about time series, much like what vision/video/audio-MLLMs do.
This is a
Qwen3-8B
version of
ChatTS-14B
, with some minor bug fixes and improvements on short time series length and instructions following capabilities.
Web Demo
The Web Demo of ChatTS is available at HuggingFace Spaces:
Key Features
ChatTS is a Multimodal LLM built natively for time series as a core modality:
✅
Native support for multivariate time series
✅
Flexible input
: Supports multivariate time series with
different lengths
and
flexible dimensionality
✅
Conversational understanding + reasoning
:
Enables interactive dialogue over time series to explore insights about time series
✅
Preserves raw numerical values
:
Can answer
statistical questions
, such as
"How large is the spike at timestamp t?"
✅
Easy integration with existing LLM pipelines
, including support for
vLLM
.
Example Application
Here is an example of a ChatTS application, which allows users to interact with a LLM to understand and reason about time series data:
from transformers import AutoModelForCausalLM, AutoTokenizer, AutoProcessor
import torch
import numpy as np
hf_model = "bytedance-research/ChatTS-14B"# Load the model, tokenizer and processor# For pre-Ampere GPUs (like V100) use `_attn_implementation='eager'`
model = AutoModelForCausalLM.from_pretrained(hf_model, trust_remote_code=True, device_map="auto", torch_dtype='float16')
tokenizer = AutoTokenizer.from_pretrained(hf_model, trust_remote_code=True)
processor = AutoProcessor.from_pretrained(hf_model, trust_remote_code=True, tokenizer=tokenizer)
# Create time series and prompts
timeseries = np.sin(np.arange(256) / 10) * 5.0
timeseries[100:] -= 10.0
prompt = f"I have a time series length of 256: <ts><ts/>. Please analyze the local changes in this time series."# Apply Chat Template
prompt = f"""<|im_start|>systemYou are a helpful assistant.<|im_end|><|im_start|>user{prompt}<|im_end|><|im_start|>assistant"""# Convert to tensor
inputs = processor(text=[prompt], timeseries=[timeseries], padding=True, return_tensors="pt")
# Model Generate
outputs = model.generate(**inputs, max_new_tokens=300)
print(tokenizer.decode(outputs[0][len(inputs['input_ids'][0]):], skip_special_tokens=True))
@article{xie2024chatts,
title={ChatTS: Aligning Time Series with LLMs via Synthetic Data for Enhanced Understanding and Reasoning},
author={Xie, Zhe and Li, Zeyan and He, Xiao and Xu, Longlong and Wen, Xidao and Zhang, Tieying and Chen, Jianjun and Shi, Rui and Pei, Dan},
journal={arXiv preprint arXiv:2412.03104},
year={2024}
}
Runs of bytedance-research ChatTS-8B on huggingface.co
1.7K
Total runs
-193
24-hour runs
-204
3-day runs
-271
7-day runs
507
30-day runs
More Information About ChatTS-8B huggingface.co Model
ChatTS-8B huggingface.co is an AI model on huggingface.co that provides ChatTS-8B's model effect (), which can be used instantly with this bytedance-research ChatTS-8B model. huggingface.co supports a free trial of the ChatTS-8B model, and also provides paid use of the ChatTS-8B. Support call ChatTS-8B model through api, including Node.js, Python, http.
ChatTS-8B huggingface.co is an online trial and call api platform, which integrates ChatTS-8B's modeling effects, including api services, and provides a free online trial of ChatTS-8B, you can try ChatTS-8B online for free by clicking the link below.
bytedance-research ChatTS-8B online free url in huggingface.co:
ChatTS-8B is an open source model from GitHub that offers a free installation service, and any user can find ChatTS-8B on GitHub to install. At the same time, huggingface.co provides the effect of ChatTS-8B install, users can directly use ChatTS-8B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.