Instructions to use NX-AI/TiRex-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TiRex-2
How to use NX-AI/TiRex-2 with TiRex-2:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Download config.json from NX-AI/TiRex-2: direct link, hf CLI and curl.
- Browser
- Download file 1.64 kB
-
https://huggingface.co/NX-AI/TiRex-2/resolve/main/config.json
- Command line
-
hf download hf://NX-AI/TiRex-2/config.json
-
curl -L -o config.json https://huggingface.co/NX-AI/TiRex-2/resolve/main/config.json
1.64 kB
| { | |
| "num_blocks": 12, | |
| "embedding_dim": 512, | |
| "input_patch_size": 32, | |
| "output_patch_size": 32, | |
| "input_ff_dim": 2048, | |
| "h_expand": 4, | |
| "context_len": 2048, | |
| "future_len": 320, | |
| "dropout": 0.1, | |
| "quantiles": [ | |
| 0.1, | |
| 0.2, | |
| 0.3, | |
| 0.4, | |
| 0.5, | |
| 0.6, | |
| 0.7, | |
| 0.8, | |
| 0.9 | |
| ], | |
| "act_func": "torch.nn.SiLU", | |
| "use_qk_norm": true, | |
| "tokenizer_cfg": { | |
| "input_patch_size": 32, | |
| "output_patch_size": 32, | |
| "input_patch_stride": 32 | |
| }, | |
| "scaler_cfg": { | |
| "use_arcsinh": true, | |
| "binaryaware": true | |
| }, | |
| "stack_out_norm_config": { | |
| "eps": 1e-07 | |
| }, | |
| "tta_diff": true, | |
| "stack_config": { | |
| "templates": { | |
| "slstm_attn": { | |
| "time_mixer": { | |
| "model_type": "bi-slstm", | |
| "embedding_dim": 512, | |
| "num_heads": 4, | |
| "rnn_backend": "flashrnn-cuda", | |
| "num_slstm_heads": 4 | |
| }, | |
| "variate_mixer": { | |
| "embedding_dim": 512, | |
| "num_heads": 4 | |
| }, | |
| "dropout": 0.1, | |
| "eps": 1e-07 | |
| }, | |
| "mlstm_attn": { | |
| "time_mixer": { | |
| "model_type": "bi-mlstm", | |
| "embedding_dim": 512, | |
| "num_heads": 4, | |
| "rnn_backend": "flashrnn-cuda" | |
| }, | |
| "variate_mixer": { | |
| "embedding_dim": 512, | |
| "num_heads": 4 | |
| }, | |
| "dropout": 0.1, | |
| "eps": 1e-07 | |
| } | |
| }, | |
| "recipe": [ | |
| "mlstm_attn", | |
| "slstm_attn", | |
| "mlstm_attn", | |
| "slstm_attn", | |
| "mlstm_attn", | |
| "slstm_attn", | |
| "mlstm_attn", | |
| "slstm_attn", | |
| "mlstm_attn", | |
| "slstm_attn", | |
| "mlstm_attn", | |
| "slstm_attn" | |
| ] | |
| } | |
| } | |