Skip to content

graph : constant topology for tokens/embeddings inputs#18549

Closed
ggerganov wants to merge 2 commits intomasterfrom
gg/graph-avoid-branches-2
Closed

graph : constant topology for tokens/embeddings inputs#18549
ggerganov wants to merge 2 commits intomasterfrom
gg/graph-avoid-branches-2

Conversation

@ggerganov
Copy link
Member

target #18548

A PoC for making the graphs constant with respect to the input type (tokens vs embeddings). The idea is to mix the two inputs by masking the one that is not used in the current batch.

This is just a demo. Will implement a more generic solution by introducing new ggml_select() and ggml_set_skip() calls

@github-actions github-actions bot added the model Model specific label Jan 2, 2026
Base automatically changed from gg/graph-avoid-branches to master January 2, 2026 17:02
@ggerganov ggerganov closed this Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

model Model specific

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant