Upload folder using huggingface_hub
Browse files- README.md +28 -0
- config.json +26 -0
- model.safetensors +3 -0
README.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: mlx
|
| 3 |
+
tags:
|
| 4 |
+
- mlx
|
| 5 |
+
- time-series
|
| 6 |
+
- forecasting
|
| 7 |
+
- tirex
|
| 8 |
+
base_model: NX-AI/TiRex
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# kunal732/TiRex-mlx
|
| 12 |
+
|
| 13 |
+
This model was converted from [`NX-AI/TiRex`](https://huggingface.co/NX-AI/TiRex)
|
| 14 |
+
using [MLX-Swift-TS](https://github.com/kunal732/MLX-Swift-TS).
|
| 15 |
+
|
| 16 |
+
## Use with MLX-Swift-TS
|
| 17 |
+
|
| 18 |
+
```swift
|
| 19 |
+
import MLXTimeSeries
|
| 20 |
+
|
| 21 |
+
let forecaster = try await TimeSeriesForecaster.loadFromHub(id: "kunal732/TiRex-mlx")
|
| 22 |
+
let input = TimeSeriesInput.univariate(historicalValues)
|
| 23 |
+
let prediction = forecaster.forecast(input: input, predictionLength: 64)
|
| 24 |
+
```
|
| 25 |
+
|
| 26 |
+
## Original Model
|
| 27 |
+
|
| 28 |
+
[NX-AI/TiRex](https://huggingface.co/NX-AI/TiRex)
|
config.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_type": "tirex",
|
| 3 |
+
"ts_model_class": "TiRexModel",
|
| 4 |
+
"hidden_size": 512,
|
| 5 |
+
"num_layers": 12,
|
| 6 |
+
"input_format": "patches",
|
| 7 |
+
"output_format": "quantiles",
|
| 8 |
+
"context_length": 2048,
|
| 9 |
+
"prediction_length": 64,
|
| 10 |
+
"embedding_dim": 512,
|
| 11 |
+
"input_patch_size": 32,
|
| 12 |
+
"output_patch_size": 32,
|
| 13 |
+
"num_heads": 4,
|
| 14 |
+
"ffn_proj_factor": 2.6667,
|
| 15 |
+
"quantiles": [
|
| 16 |
+
0.1,
|
| 17 |
+
0.2,
|
| 18 |
+
0.3,
|
| 19 |
+
0.4,
|
| 20 |
+
0.5,
|
| 21 |
+
0.6,
|
| 22 |
+
0.7,
|
| 23 |
+
0.8,
|
| 24 |
+
0.9
|
| 25 |
+
]
|
| 26 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:00c8ddee8aba9592a465428e85e7369c42ea262fe25fa3ba03cfd4726ddbd933
|
| 3 |
+
size 70598937
|