Views
No views yet
Mhondoro-Tokenizer-2k is part of the Mhondoro family of open-source foundation models for
financial time-series forecasting, released by Louis Chifura.| Model | Tokenizer | Context | Params |
|---|---|---|---|
| Mhondoro-mini | Mhondoro-Tokenizer-2k | 2048 | 4.1M |
| Mhondoro-small | Mhondoro-Tokenizer-base | 512 | 24.7M |
| Mhondoro-base | Mhondoro-Tokenizer-base | 512 | 102.3M |
1from model.mhondoro import Mhondoro, MhondoroTokenizer, MhondoroPredictor
2
3tokenizer = MhondoroTokenizer.from_pretrained("chifural/Mhondoro-Tokenizer-base")
4model = Mhondoro.from_pretrained("chifural/Mhondoro-small")
5predictor = MhondoroPredictor(model=model, tokenizer=tokenizer, device="cuda:0")
6
7forecast = predictor.predict(
8 df=ohlcv_dataframe,
9 x_timestamp=context_timestamps,
10 y_timestamp=forecast_timestamps,
11 pred_len=120,
12)