Model architecture configuration.
Execution providers to try, in order.
Default: ['webgpu', 'wasm']
onnxruntime-web CDN version for browser WASM fallback. Default: matches the package's peerDependency version.
Optionallogger: WebEngineLoggerOptional structured logger for diagnostics. When omitted, provider selection messages are silenced (only the final loaded provider is logged).
Set a custom WASM binary path for onnxruntime-web.
Required when running in Node.js (not a browser) since the default
CDN URL won't work. Point this to the dist/ directory of the
onnxruntime-web package.
Load the ONNX model.
URL to the ONNX model file, or an ArrayBuffer.
Optionaloptions: { skipWarmup?: boolean }Run inference for a batch of patched time series.
Aligned with TimesFMNodeEngine.forward: each batch element is processed sequentially via the ONNX session and results are returned as per-element arrays in the RawModelOutput.
Builds the tokenizer input identically to the Node.js engine: each 64-dim patch is [patch_values(32), patch_mask(32)] where mask=0 means "visible" and mask=1 means "padding/ignored".
Release all resources.
Whether the engine is loaded and ready.
Browser-compatible inference engine backed by onnxruntime-web.
Supports WASM, WebGPU, and WebGL backends with automatic fallback. Accepts model URLs (fetched) or pre-loaded ArrayBuffers.