convert : fix jamba conv1d shape squeezing
This commit is contained in:
parent
2bcaf64e8e
commit
908e6559d6
|
|
@ -5055,6 +5055,9 @@ class JambaModel(TextModel):
|
||||||
|
|
||||||
new_name = self.map_tensor_name(name)
|
new_name = self.map_tensor_name(name)
|
||||||
|
|
||||||
|
if self.match_model_tensor_name(new_name, gguf.MODEL_TENSOR.SSM_CONV1D, bid):
|
||||||
|
data_torch = data_torch.squeeze()
|
||||||
|
|
||||||
if name.endswith(".A_log"):
|
if name.endswith(".A_log"):
|
||||||
logger.debug("A_log --> A ==> " + new_name)
|
logger.debug("A_log --> A ==> " + new_name)
|
||||||
data_torch = -torch.exp(data_torch)
|
data_torch = -torch.exp(data_torch)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue