Downloads · 30 days
7
16% of all-time downloads
richofwanga/ChatTS-14B
ChatTS-14B is a text generation model from richofwanga. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
<div style="display:flex;justify-content: center" <a href="https://github.com/NetmanAIOps/ChatTS"<img alt="github" src="https://img.shields.io/badge/Code-GitHub-blue"</a <a href="https://arxiv.org/abs/2412.03104"<img…
Downloads · 30 days
7
16% of all-time downloads
All-time downloads
43
Public
Repo size
149 GB
Likes
0
Public
Click a slice to open those files.
.bin29.8 GB · 100%
From the Hugging Face model README
[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 repo provides code, datasets and model for ChatTS: ChatTS: Aligning Time Series with LLMs via Synthetic Data for Enhanced Understanding and Reasoning.
The Web Demo of ChatTS-14B-0801 is available at HuggingFace Spaces:
ChatTS is a Multimodal LLM built natively for time series as a core modality:
Here is an example of a ChatTS application, which allows users to interact with a LLM to understand and reason about time series data:

README.md in the ChatTS repository.HuggingFace):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|>system
You 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))
Please download the legacy ChatTS-14B model to reproduce the results in the paper.
This model is licensed under the Apache License 2.0.
@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}
}