Skip to content

Add Wasm fallback while running llms #97

Description

@sauravpanda

Currently we use MLC which needs webgpu and also force webgpu in TTS and whisper. But we can fallback to onnx models and wasm device mode if we cant find the relevant items.

Activity

  1. self-assigned this
    on Feb 9, 2025
  2. sauravpanda commented on Apr 15, 2026

    @sauravpanda
    OwnerAuthor

    Fixed in #302. TransformersEngineWrapper now calls detectBestDevice() before loading — probes navigator.gpu.requestAdapter() and falls back to 'cpu' (ONNX WASM) automatically when WebGPU is unavailable. No API changes; callers can still pass options.device to override.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions