Skip to content

v0.5.0: faster inference and request queuing

Latest

Choose a tag to compare

@daidahao daidahao released this 09 Nov 10:44
· 4 commits to main since this release
720a979

What's Changed

Forecasting and performance

  • ⭐️🚀 Faster GPU inference for small batches with CUDA Graphs and improved Triton kernels in #80, contributed by Martin Loretz and Zhihao Dai:
    • Graph replays accelerate small batches by up to 5×. Enabled by default for up to 32 variate rows on CUDA; disable with load_model(..., cuda_graphs=False).
    • Triton sLSTM kernels replace FlashRNN, with FP32 states and PyTorch fallbacks. Removed the flashrnn dependency.
    • Triton mLSTM kernels replace mlstm_kernels. Removed the mlstm_kernels dependency.
    • CUDA Toolkit is no longer required. On Linux, a C compiler is needed for kernel compilation; on Windows, PyTorch fallbacks are used. See FAQ for details.
    • Fused sLSTM gate and mLSTM input projections; existing checkpoints adapt on load.
    • pad_context=False now pads to a multiple of 4 patches to reduce compilation and CUDA Graph capture overhead.
    • Added kernel and CUDA Graph tests. Benchmark scores remain unchanged.
  • ⭐️🚀 Faster GPU inference for medium batches: Preprocessing now runs on the CPU and handles all target rows at once, with trend detection via a closed-form least-squares fit. GPU forecasts of 32–512 series are 1.5–1.9× faster with identical outputs, in #111, contributed by Daniil Yefimov.
  • ⭐️🤖 Forecasting skill: Added a forecasting skill with Claude Code and Codex plugins, including dataframe and tensor examples in #84, contributed by Zhihao Dai.
  • Monotonic quantile forecasts: Sort predictions across quantile levels to prevent quantile crossings in #101, contributed by Martin Loretz.

Deployment

  • ⭐️🚀 Inference server request queuing: Concurrent requests are queued and batched across configurable model workers (MODEL_WORKERS), increasing throughput by up to 33× on CPU and 22× on GPU. Requests that exceed the queue wait limit (MAX_QUEUE_WAIT_S) receive HTTP 503, in #114, contributed by Martin Loretz.
  • ⭐️📦 Smaller GPU Docker image: Switching to python:3.12-slim without the CUDA Toolkit reduces image size by about 60% (26.3 GB → 10.3 GB). CPU/GPU images now share the same virtualenv setup and healthcheck, in #119, contributed by Daniil Yefimov.
  • ⭐️🔄 ONNX inference: Added an 📙 ONNX inference guide for univariate and multivariate forecasts on CPU and GPU in #75, contributed by Suad0.

Breaking changes

  • ‼️‼️ Legacy checkpoint support removed: Checkpoints must be in json and safetensors formats, in #112, contributed by Martin Loretz and Zhihao Dai.
    • Legacy yaml and ckpt formats are no longer supported. Use tirex-2<0.5.0 for legacy checkpoints, or convert them locally with this script.
  • ‼️ GPU Docker user changed: Both images run as appuser (UID 1000). Update GPU volume mounts from /home/ubuntu/... to /home/appuser/..., in #119, contributed by Daniil Yefimov.
  • Removed the legacy conversion script in #113. Use the archived version.
  • Moved example and benchmark dependencies from pip extras to Pixi environments and updated setup docs and notebooks in #115, contributed by Zhihao Dai.

Dependencies and development

  • ⭐️📖 Added an In-Context Learning guide: how extending the context and adding covariates improves forecasting in #69, contributed by Maria Zuliani and Zhihao Dai.
  • Migrated the documentation site to Zensical, preserving the classic theme, API reference, and existing preview/build commands, and added docs-build-clean Pixi task in #123, contributed by Zhihao Dai.
  • PyYAML is no longer a direct runtime dependency; it remains explicitly required in the Pixi test and example environments, in #112, contributed by Martin Loretz and Zhihao Dai.
  • Simplified Pixi CUDA setup, removed CUDA Toolkit dependencies, added pixi run build, and validated minimum dependency versions in #117, contributed by Zhihao Dai.
  • Enabled Triton floating-point fusion in Pixi and modernized build license metadata in #117, contributed by Zhihao Dai.
  • Simplified model code and tests in #80, contributed by Martin Loretz:
    • Replaced the FlashRNN layer with sLSTMLayer in slstm_block.py.
    • Removed xLSTMMixedConfig and xLSTMLargeConfig; BiXLSTM now takes plain arguments.
    • Renamed conv_mLSTMLayerConfig to mLSTMLayerConfig.
    • Removed unused feed-forward and norm options.
    • Switched CPU reference tests to relative norms to tolerate BF16 rounding differences across machines.

Security and CI

  • Added Python 3.15 preview testing and refreshed Pixi dependencies in #116, contributed by Zhihao Dai.
  • Added plugin CI checks for manifest validation, Codex installation, package contents, and version bumps in #100, contributed by Zhihao Dai.
  • Simplified Docker image builds and consolidated CI to test CPU/GPU images before publishing in #82, contributed by Zhihao Dai.
  • Updated CA certificates and CI tooling for the eMudhra/emSign security incident in #83, contributed by Zhihao Dai.
  • Changed Dependabot updates to monthly and disabled separate inference dependency updates in #96 and #108, contributed by Zhihao Dai and Daniil Yefimov.

New Contributors

Full Changelog: v0.4.0...v0.5.0