How birla-ai-labs/yug works
Yug is a pretrained time-series foundation model for zero-shot probabilistic forecasting. Users load a local or Hub checkpoint through the pipeline, provide one or more series (optionally with covariates), and receive horizon-length quantile forecasts. The pipeline handles rollout and sampling; lower layers prepare inference batches and execute the patch-based model. The README also documents a GluonTS benchmark adapter and optional pandas output. Several internal links are explicit in excerpts or the README; unsampled adapter wiring is shown only as documented.
Main entry points: pipeline.py Forecast pipeline · model.py Patch transformer · base.py Quantile result · forecaster.py Batch forecaster
Components 13
Forecast API
- Forecast pipeline
src/yug/pipeline.py - Quantile result
src/yug/base.py
Inference Runtime
- Batch forecaster
src/yug/forecaster.py - Cached rollout engine
src/yug/engine.py - Frequency and sampling
src/yug/utils.py - Model configuration
src/yug/configs.py - Model checkpoint
Forecast Model
- Patch transformer
src/yug/model.py
Integrations
- GluonTS adapter
src/yug/gluonts_adapter.py - DataFrame output
src/yug/base.py
Other components
- Forecast caller
- Hugging Face Hub
- Benchmark harness
Connections 14
- Forecast caller → Forecast pipeline: calls
README.md - Forecast pipeline → Model checkpoint: loads
src/yug/pipeline.py - Forecast pipeline → Hugging Face Hub: downloads from
src/yug/pipeline.py - Forecast pipeline → Model configuration: uses
src/yug/pipeline.py - Forecast pipeline → Batch forecaster: delegates to
src/yug/pipeline.py - Forecast pipeline → Cached rollout engine: rolls out with
src/yug/pipeline.py - Forecast pipeline → Frequency and sampling: samples via
src/yug/pipeline.py - Batch forecaster → Patch transformer: runs
src/yug/forecaster.py - Cached rollout engine → Patch transformer: decodes with
src/yug/engine.py - Forecast pipeline → Patch transformer: returns forecast
README.md - Forecast pipeline → Quantile result: produces
README.md - Quantile result → DataFrame output: converts to
src/yug/base.py - Forecast caller → GluonTS adapter: uses
README.md - GluonTS adapter → Benchmark harness: predicts for
README.md