Skip to content

Comments

refactor: Metadata#1190

Merged
laggui merged 17 commits intotracel-ai:mainfrom
wingertge:refactor/metadata
Feb 17, 2026
Merged

refactor: Metadata#1190
laggui merged 17 commits intotracel-ai:mainfrom
wingertge:refactor/metadata

Conversation

@wingertge
Copy link
Collaborator

Refactors metadata to make Strides opaque and migrate Shape to cubecl-zspace so it can be shared. Uses SmallVec with an inline size of 5, matching the hardcoded 5D limit of TMA on Nvidia cards. This covers almost every ML op, and has relatively little overhead for 99% of all cases (most tensors are 4D in modern architectures, both for vision and attention).

This also includes the changes to supported_line_sizes from #1188, but not the actual implementation of long vectors since that can't be tested yet.

Validate your PR with burn.

It is important that you make sure that you don't introduce any bugs in burn.

Instructions

  • Create a new branch or fork of the burn repo
  • Update the main Cargo.toml with this PR hash.
  • Fix any broken tests or compilation errors in burn.
  •  Submit a PR in burn with your fixes and link it here.

Copy link
Member

@nathanielsimard nathanielsimard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@laggui laggui merged commit edc576e into tracel-ai:main Feb 17, 2026
5 checks passed
@wingertge wingertge deleted the refactor/metadata branch February 17, 2026 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants