pytorch / pytorch/executorch

Reducing memory footprint of Llama models for Executorch

Open
#8,547 4 comments 1 reaction 1 assignee View on GitHub

@tarun292 is already working on this.

Since Mar 6, 2025.

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

Description

🚀 The feature, motivation and pitch

Spoke with Ali on Discord and creating this thread based on that discussion.

The model I am currently using is Llama 3.2 3B Instruct SpinQuant. Although it works great for my usecase in terms of functionality, I am concerned about the memory footprint since it consumes 3GB of memory right now.

There are companies out there that help with reducing the memory usage (Pruna AI for example). But they don't support converting the model to Executorch format. Can I get some help from the Executorch team in this regard? The help could be in these forms and I believe all of the Executorch community would benefit from this:

  1. Support (in terms of scripts etc) for converting a Pruna quantized model to Executorch format that anybody can use.
  2. Directly make available a Pruna quantized model in Executorch format for everyone to use.
Alternatives

No response

Additional context

No response

RFC (Optional)

No response

cc @mergennachin @cccclai @helunwencser @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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.