microsoft / microsoft/onnxruntime-inference-examples

How do I load models with external data in web/wasm?

Open
#225 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1.7k
Forks
414
Avg merge
1d 6h
Merged PRs (30d)
14

Description

await ort.InferenceSession.create(... allows to pass a single file, but the model is split into multiple external _data files. Is it possible to load the files in wasm?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the web/wasm entry point ort.InferenceSession.create and inspect the related web examples and model-loading documentation. Determine whether models split across external _data files can be loaded there; done means documenting or demonstrating a supported way to load all required files, or clearly recording that it is unsupported.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, wasm
Domain
machine-learning, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.