Update modeling_hymba.py
Browse files- modeling_hymba.py +5 -2
modeling_hymba.py
CHANGED
|
@@ -1714,8 +1714,11 @@ class HymbaBlock(nn.Module):
|
|
| 1714 |
|
| 1715 |
if ssm_state is not None and cache_params is not None:
|
| 1716 |
cache_params.ssm_states[self.layer_idx].copy_(ssm_state)
|
| 1717 |
-
except:
|
| 1718 |
-
print(
|
|
|
|
|
|
|
|
|
|
| 1719 |
|
| 1720 |
scan_outputs = scan_outputs.transpose(1, 2)
|
| 1721 |
|
|
|
|
| 1714 |
|
| 1715 |
if ssm_state is not None and cache_params is not None:
|
| 1716 |
cache_params.ssm_states[self.layer_idx].copy_(ssm_state)
|
| 1717 |
+
except Exception as e:
|
| 1718 |
+
print("\n\n\n\n")
|
| 1719 |
+
print(e)
|
| 1720 |
+
print(f"use_precomputed_states {use_precomputed_states}; {index} {self.D}, {time_proj_bias} ")
|
| 1721 |
+
print("\n\n\n\n")
|
| 1722 |
|
| 1723 |
scan_outputs = scan_outputs.transpose(1, 2)
|
| 1724 |
|