Skip to content

Add EMBEDDING and COMPILE AllocationType enum values#17

Closed
Chenguang-Zhu wants to merge 1 commit into
facebookresearch:mainfrom
Chenguang-Zhu:export-D103992612
Closed

Add EMBEDDING and COMPILE AllocationType enum values#17
Chenguang-Zhu wants to merge 1 commit into
facebookresearch:mainfrom
Chenguang-Zhu:export-D103992612

Conversation

@Chenguang-Zhu

Copy link
Copy Markdown
Member

Summary:
Enum-only diff. Adds two new categories to AllocationType:

  • EMBEDDING = 10 — sparse embedding parameters (TBE tables,
    sharded EBC init).
  • COMPILE = 11 — graph-compile-time allocations (Inductor /
    Dynamo / AOTAutograd).

No rules emit these values yet, so this diff is behavior-neutral.
MemoryUsage.per_category_alloc_sum is a defaultdict(float)
keyed by AllocationType, so it accepts the new keys naturally
without any additional wiring.

Differential Revision: D103992612

Summary:
Enum-only diff. Adds two new categories to `AllocationType`:

- `EMBEDDING = 10` — sparse embedding parameters (TBE tables,
  sharded EBC init).
- `COMPILE = 11` — graph-compile-time allocations (Inductor /
  Dynamo / AOTAutograd).

No rules emit these values yet, so this diff is behavior-neutral.
`MemoryUsage.per_category_alloc_sum` is a `defaultdict(float)`
keyed by `AllocationType`, so it accepts the new keys naturally
without any additional wiring.

Differential Revision: D103992612
@meta-cla meta-cla Bot added the cla signed label May 8, 2026
@meta-codesync

meta-codesync Bot commented May 8, 2026

Copy link
Copy Markdown

@Chenguang-Zhu has exported this pull request. If you are a Meta employee, you can view the originating Diff in D103992612.

@meta-codesync

meta-codesync Bot commented May 8, 2026

Copy link
Copy Markdown

This pull request has been merged in abacf38.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant