mirror of
https://github.com/turboderp-org/exllamav2.git
synced 2026-04-20 14:29:28 +00:00
Allow key prefix for lm_head (Gemma3)
This commit is contained in:
@@ -145,7 +145,7 @@ class ExLlamaV2:
|
||||
normalize_unq = bool(cfg.norm_head)
|
||||
)
|
||||
if archparams.keys["lm_head"] != "lm_head":
|
||||
head.alt_key = archparams.keys["lm_head"]
|
||||
head.alt_key = cfg.arch.lm_prefix + archparams.keys["lm_head"]
|
||||
self.modules += [head]
|
||||
|
||||
# Compile dictionary of modules
|
||||
|
||||
Reference in New Issue
Block a user