pytorch / pytorch/executorch

Why are models like Llama implemented again in examples/models/ ?

Open
#11,130 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hi everyone,

I noticed that in executorch, the models are also implemented in examples/model/ which are used for exporting the model to ExportedProgram. My question is how is this model implementation different from HF implementation and also the optimum-executorch flow for exporting the models.

cc @mergennachin @iseeyuan @lucylq @helunwencser @tarun292 @kimishpatel @jackzhxng

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

Read the model implementations under examples/model/ and compare them with the referenced Hugging Face implementation and the optimum-executorch export flow. This issue is complete when the documentation clearly explains why the examples contain separate model implementations and how they differ from those export paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
documentation, machine-learning
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.