pytorch / pytorch/executorch

How to run a executorch model directly from memory instead of saving it as a disk file

Open
#12,749 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

module: extension
Dominant language
Python
Stars
5k
Forks
1.2k
Avg merge
2d 10h
Merged PRs (30d)
581

Description

📚 The doc issue

Hi,

I wanted to know if there is any ExecuTorch runtime API that can accept a *.pte model available in the memory (in some sort of a buffer format) and use it to do load and infer?

So far, I could only find a few which require the model to be passed as a disk file.

Suggest a potential alternative/fix

No response

Contributor guide

Open the contributing guide

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 by reviewing the ExecuTorch runtime APIs for loading a .pte model, focusing on the file-based entry points mentioned in the issue. Determine whether an in-memory buffer can be passed for loading and inference, then document the supported approach or limitation with a minimal usage example.

Written by the indexing model from the issue text.

Assessment

Tech stack
pytorch
Domain
machine-learning
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.