fix setting clamp_qkv value in OLMo conversion
This commit is contained in:
parent
853d06ffe2
commit
00f3fb6bc2
1 changed files with 3 additions and 2 deletions
|
@ -2764,8 +2764,9 @@ class OlmoModel(Model):
|
||||||
def set_gguf_parameters(self):
|
def set_gguf_parameters(self):
|
||||||
super().set_gguf_parameters()
|
super().set_gguf_parameters()
|
||||||
self.gguf_writer.add_layer_norm_eps(1e-5)
|
self.gguf_writer.add_layer_norm_eps(1e-5)
|
||||||
if "clip_qkv" in self.hparams is not None:
|
clip_qkv = self.hparams.get("clip_qkv")
|
||||||
self.gguf_writer.add_clamp_kqv(self.hparams["clip_qkv"])
|
if clip_qkv is not None:
|
||||||
|
self.gguf_writer.add_clamp_kqv(clip_qkv)
|
||||||
|
|
||||||
# Same as super class, but permuting q_proj, k_proj
|
# Same as super class, but permuting q_proj, k_proj
|
||||||
# Copied from: LlamaModel
|
# Copied from: LlamaModel
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue