model: using single llm_build per arch#21970
Merged
Merged
Conversation
ggerganov
reviewed
Apr 16, 2026
Comment on lines
+710
to
+711
| struct llm_build_t5encoder : public llm_build_t5<true> { | ||
| llm_build_t5encoder(const llama_model & model, const llm_graph_params & params); |
Member
There was a problem hiding this comment.
Do we need to keep this, instead of using llm_build_t5<true>?
Member
There was a problem hiding this comment.
I think it's there to match the arch name (for the migration script)?
Collaborator
Author
There was a problem hiding this comment.
@ggerganov the t5encoder has its own tensor loader and hparams loader, so I think it make sense to have a dedicated graph builder. The dedicated class will then expanded into llama_model_t5encoder during the migration (via a script), and its hparams/tensors loader will be moved there
6 tasks
Collaborator
Author
|
Should be ok now I guess? @CISC @ggerganov |
ggerganov
approved these changes
Apr 16, 2026
cnsiva
pushed a commit
to saas-home/llama.cpp
that referenced
this pull request
Apr 17, 2026
* model: using single llm_build per arch * fix merge * nits
samuraieng
pushed a commit
to samuraieng/llama.cpp
that referenced
this pull request
Apr 19, 2026
* model: using single llm_build per arch * fix merge * nits
mengqin
pushed a commit
to mengqin/llama.cpp
that referenced
this pull request
Apr 20, 2026
* model: using single llm_build per arch * fix merge * nits
ArberSephirotheca
pushed a commit
to ArberSephirotheca/llama.cpp
that referenced
this pull request
Apr 21, 2026
* model: using single llm_build per arch * fix merge * nits
arthw
pushed a commit
to arthw/llama.cpp
that referenced
this pull request
Apr 23, 2026
* model: using single llm_build per arch * fix merge * nits
rsenthilkumar6
pushed a commit
to rsenthilkumar6/llama.cpp
that referenced
this pull request
May 1, 2026
* model: using single llm_build per arch * fix merge * nits
ljubomirj
pushed a commit
to ljubomirj/llama.cpp
that referenced
this pull request
May 6, 2026
* model: using single llm_build per arch * fix merge * nits
my-other-github-account
pushed a commit
to my-other-github-account/llama.cpp
that referenced
this pull request
May 15, 2026
* model: using single llm_build per arch * fix merge * nits
my-other-github-account
pushed a commit
to my-other-github-account/llama.cpp
that referenced
this pull request
May 15, 2026
* model: using single llm_build per arch * fix merge * nits
fewtarius
pushed a commit
to fewtarius/llama.cpp
that referenced
this pull request
May 30, 2026
* model: using single llm_build per arch * fix merge * nits
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Prepare for #21966
Using one single
llm_build_*class per arch will make the migration a bit easier.Example before:
Example after:
Requirements