Repository navigation
Load GLM-5-Next GGUFs converted with the earlier glm5next arch name #239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1015,10 +1015,10 @@ static const std::map<llm_tensor, llm_tensor_info> LLM_TENSOR_INFOS = { | |
| {LLM_TENSOR_DFLASH_SELECTOR_HIDDEN, {LLM_TENSOR_LAYER_OUTPUT, GGML_OP_MUL_MAT}}, | ||
| }; | ||
|
|
||
| LLM_KV::LLM_KV(llm_arch arch, const char * suffix) : arch(arch), suffix(suffix) {} | ||
| LLM_KV::LLM_KV(llm_arch arch, const char * suffix, const char * prefix) : arch(arch), suffix(suffix), prefix(prefix) {} | ||
|
|
||
| std::string LLM_KV::operator()(llm_kv kv) const { | ||
| std::string name = ::format(LLM_KV_NAMES.at(kv), LLM_ARCH_NAMES.at(arch)); | ||
| std::string name = ::format(LLM_KV_NAMES.at(kv), prefix ? prefix : LLM_ARCH_NAMES.at(arch)); | ||
|
|
||
| if (suffix != nullptr) { | ||
| name += "."; | ||
|
|
@@ -1069,6 +1069,10 @@ llm_arch llm_arch_from_string(const std::string & name) { | |
| } | ||
| } | ||
|
|
||
| if (name == "glm5next") { // pre-upstream converter | ||
| return LLM_ARCH_GLM5_NEXT; | ||
|
Comment on lines
+1072
to
+1073
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When Useful? React with 👍 / 👎. |
||
| } | ||
|
|
||
| return LLM_ARCH_UNKNOWN; | ||
| } | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This compatibility fix has no automated regression coverage for either affected path: loading a model whose architecture and hyperparameter prefix are
glm5next, or loading an mmproj that uses projector typeglm5next,swiglu_limit, and no pixel-budget keys. Existing architecture and mtmd tests can still pass if either alias path stops working, so add synthetic legacy-metadata cases that fail on the parent commit and verify both loaders.Useful? React with 👍 / 👎.