File size: 2,927 Bytes
35d5890
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2ee89ea
35d5890
 
 
 
 
 
 
 
 
 
 
 
 
2ee89ea
35d5890
 
 
 
2ee89ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
---
language: zh
license: mit
tags:
- kronos
- financial-modeling
- time-series
- cryptocurrency
- stock-prediction
- pytorch
- transformers
datasets:
- custom
metrics:
- mse
- mae
widget:
- text: "Financial time series prediction"
---

# Kronos Tokenizer - Fine-tuned on Custom Dataset

This is a fine-tuned version of [Kronos](https://huggingface.co/NeoQuasar/Kronos-Tokenizer-base) tokenizer,
adapted for better performance on custom financial datasets.

## Model Details

- **Model Type**: Tokenizer
- **Base Model**: NeoQuasar/Kronos-Tokenizer-base
- **Fine-tuned For**: Financial Time Series Prediction
- **Architecture**: Transformer-based with custom tokenization
- **Input**: OHLCV (Open, High, Low, Close, Volume, Amount) data
- **Output**: Multi-step time series predictions

## Training Details

- **Training Data**: Crypto Dataset (BTC, ETH, SOL, XAU)
- **Time Range**: 2022-01-21 to 2025-09-16
- **Frequency**: 5-minute intervals
- **Sequence Length**: 90 historical points
- **Prediction Horizon**: 10 future points

## Usage

### For Tokenizer
```python
from model.kronos import KronosTokenizer

tokenizer = KronosTokenizer.from_pretrained("NeoQuasar/Kronos-Tokenizer-base")
# Your tokenization code here
```

### For Predictor
```python
from model.kronos import Kronos, KronosTokenizer, KronosPredictor

tokenizer = KronosTokenizer.from_pretrained("NeoQuasar/Kronos-Tokenizer-base")
model = Kronos.from_pretrained("NeoQuasar/Kronos-Tokenizer-base")
predictor = KronosPredictor(model, tokenizer, device="cuda")

# Your prediction code here
predictions = predictor.predict(...)
```

### With the Original Repository
```python
# Clone the Kronos repository
git clone https://github.com/shiyu-coder/Kronos.git
cd Kronos

# Use the fine-tuned models
python examples/use_finetuned_model.py \
    --csv_data your_data.csv \
    --lookback 400 \
    --pred_len 120
```

## Performance

This fine-tuned model shows improved performance on the target domain compared to the base model:

- **Domain Adaptation**: Specialized for the training dataset characteristics
- **Numerical Stability**: Improved convergence during fine-tuning
- **Inference Speed**: Optimized for the target sequence lengths

## Limitations

- Optimized for 5-minute financial data intervals
- May require re-tuning for different time frequencies
- Performance may vary on datasets with different statistical properties

## Citation

```bibtex
@misc{shi2025kronos,
      title={Kronos: A Foundation Model for the Language of Financial Markets},
      author={Yu Shi and Zongliang Fu and Shuo Chen and Bohan Zhao and Wei Xu and Changshui Zhang and Jian Li},
      year={2025},
      eprint={2508.02739},
      archivePrefix={arXiv},
      primaryClass={q-fin.ST},
      url={https://arxiv.org/abs/2508.02739},
}
```

## Contact

For questions or issues, please open an issue on the [Kronos GitHub repository](https://github.com/shiyu-coder/Kronos).