forecast-web
    Preparing search index...

    Interface ForecastProviderProps

    The same options as loadForecaster, plus eager.

    interface ForecastProviderProps {
        cache?: boolean;
        children?: ReactNode;
        device?: Device;
        dtype?: Dtype;
        eager?: boolean;
        model?: ModelId;
        revision?: string;
        wasmPaths?: string;
        weights?: string;
        worker?: boolean;
    }

    Hierarchy

    • Omit<LoadOptions, "onProgress" | "signal">
      • ForecastProviderProps
    Index
    cache?: boolean

    Store downloads in the Cache API. Defaults to true.

    children?: ReactNode
    device?: Device
    dtype?: Dtype
    eager?: boolean

    Load on mount instead of on first use. Defaults to false.

    model?: ModelId

    Which model to run. Defaults to "timesfm-2.5".

    revision?: string

    Hugging Face revision. Ignored for base URLs. Defaults to the commit of the published weights this release was verified against, or "main" for a custom weights repo.

    wasmPaths?: string

    Where onnxruntime-web fetches its .wasm files. Defaults to jsDelivr for the installed version.

    weights?: string

    Hugging Face repo id, or a base URL that contains config.json and onnx/. Defaults to the model's published weights.

    worker?: boolean

    Run inference in a Web Worker. Defaults to true where Worker exists.