forecast-web
    Preparing search index...

    Interface LoadOptions

    Options for loadForecaster.

    interface LoadOptions {
        cache?: boolean;
        device?: Device;
        dtype?: Dtype;
        model?: ModelId;
        onProgress?: (p: Progress) => void;
        revision?: string;
        signal?: AbortSignal;
        wasmPaths?: string;
        weights?: string;
        worker?: boolean;
    }
    Index
    cache?: boolean

    Store downloads in the Cache API. Defaults to true.

    device?: Device
    dtype?: Dtype
    model?: ModelId

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

    onProgress?: (p: Progress) => void
    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.

    signal?: AbortSignal
    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.