Instructions to use amaye15/chronos-rs-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use amaye15/chronos-rs-gguf with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf amaye15/chronos-rs-gguf:F16 # Run inference directly in the terminal: llama cli -hf amaye15/chronos-rs-gguf:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf amaye15/chronos-rs-gguf:F16 # Run inference directly in the terminal: llama cli -hf amaye15/chronos-rs-gguf:F16
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf amaye15/chronos-rs-gguf:F16 # Run inference directly in the terminal: ./llama-cli -hf amaye15/chronos-rs-gguf:F16
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf amaye15/chronos-rs-gguf:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf amaye15/chronos-rs-gguf:F16
Use Docker
docker model run hf.co/amaye15/chronos-rs-gguf:F16
- LM Studio
- Jan
- Ollama
How to use amaye15/chronos-rs-gguf with Ollama:
ollama run hf.co/amaye15/chronos-rs-gguf:F16
- Unsloth Studio
How to use amaye15/chronos-rs-gguf with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for amaye15/chronos-rs-gguf to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for amaye15/chronos-rs-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for amaye15/chronos-rs-gguf to start chatting
- Docker Model Runner
How to use amaye15/chronos-rs-gguf with Docker Model Runner:
docker model run hf.co/amaye15/chronos-rs-gguf:F16
- Lemonade
How to use amaye15/chronos-rs-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull amaye15/chronos-rs-gguf:F16
Run and chat with the model
lemonade run user.chronos-rs-gguf-F16
List all available models
lemonade list
- Atomic Chat
chronos-rs
Pure Rust converter and inference engine for amazon/chronos-2.
Pre-converted GGUF files are available at amaye15/chronos-rs-gguf. Produces GGUF v3 files and runs native forecasting β no Python required.
Build
cargo build --release
Convert
Downloads the model from HuggingFace and writes a GGUF file:
# F16 (recommended β good precision/size trade-off)
./target/release/chronos-rs convert --model amazon/chronos-2 --dtype f16 --output gguf/chronos-f16.gguf
# Q8_0 (smallest, ~2.8Γ compression vs F16)
./target/release/chronos-rs convert --dtype q8 --output gguf/chronos-q8.gguf
# F32 (full precision)
./target/release/chronos-rs convert --dtype f32 --output gguf/chronos-f32.gguf
To convert all dtypes at once:
./scripts/convert_all.sh
HuggingFace token (optional for public models):
HF_TOKEN=hf_... ./scripts/convert_all.sh
Inspect tensors
Print all tensor names and shapes from a .safetensors checkpoint:
./target/release/chronos-rs inspect-tensors models/model.safetensors
Infer
Run univariate quantile forecasting from a GGUF file:
echo '{"context": [1.0, 1.2, 1.5, 1.3, 1.8, 2.0, 1.9, 2.1], "horizon": 64}' \
| ./target/release/chronos-rs infer \
--gguf gguf/chronos-f16.gguf \
--config models/config.json
Output is JSON in an OpenAI-compatible forecast format:
{
"id": "forecast-000001932b7a1234",
"object": "forecast",
"created": 1749686400,
"model": "chronos",
"choices": [{
"index": 0,
"forecast": {
"point": [2.1, 2.3, 2.5, "..."],
"quantiles": {
"0.10": [1.8, 2.0, 2.2, "..."],
"0.50": [2.1, 2.3, 2.5, "..."],
"0.90": [2.4, 2.6, 2.8, "..."]
}
},
"finish_reason": "stop"
}],
"usage": {"context_length": 8, "forecast_length": 64}
}
point is the median (q0.5) forecast; all quantile levels from config.json are included.
Batch inference β pass multiple series as a nested array to get one Choice per series:
echo '{"context": [[1.0, 1.2, 1.5], [2.0, 2.2, 2.5]], "horizon": 64}' \
| ./target/release/chronos-rs infer \
--gguf gguf/chronos-f16.gguf \
--config models/config.json
Python bindings
Install with maturin inside a virtual environment:
python -m venv .venv && source .venv/bin/activate
pip install maturin
maturin develop --features python
import chronos_rs
model = chronos_rs.Chronos("gguf/chronos-f16.gguf", "models/config.json")
result = model.forecast([1.0, 1.2, 1.5, 1.3, 1.8, 2.0], horizon=64)
fc = result["choices"][0]["forecast"]
point = fc["point"] # median forecast
q10 = fc["quantiles"]["0.10"] # 10th-percentile
q90 = fc["quantiles"]["0.90"] # 90th-percentile
# Batch β one Choice per series
result = model.forecast([[1.0, 1.2, 1.5], [2.0, 2.2, 2.5]], horizon=64)
forecast returns a Python dict in the same OpenAI-compatible format as the CLI.
Architecture notes
Chronos-2 is an encoder-only bidirectional model:
- Input: Time series values are instance-normalized, patched, and concatenated with time encodings and observation masks
- Encoder: Alternating
TimeSelfAttention+GroupSelfAttention+FeedForwardblocks, all with T5-style RMSNorm - RoPE: Standard Llama rotate_half (
[-x[half:], x[:half]]), unlike Toto which uses xPos - Attention: Scale = 1.0 (no
1/βdscaling, per the original implementation) - Output: Last
n_output_patcheshidden states β ResidualBlock β quantile predictions
For batch=1 (univariate inference), GroupSelfAttention reduces to a position-wise v β o projection.
- Downloads last month
- 28
Model tree for amaye15/chronos-rs-gguf
Base model
amazon/chronos-2