Add segments for bpte
Open
@Gasoonjia is already working on this.
Since Nov 20, 2025.
- Dominant language
- Python
- Stars
- 5k
- Forks
- 1.2k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 581
Description
Currently, bpte schema stores program data as bytes inside the flatbuffer. This causes high latency and memory usage when converting llms ~1GB into bpte files, as we go through the flatbuffer json conversion.
We can follow the executorch schema and move the program into segments to avoid the flatbuffer conversion of large byte strings.
Program-data separation is a solution (without weights, program is small) but this is not a guaranteed solution for all users.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.