pmolchanov commited on
Commit
dd7b952
·
verified ·
1 Parent(s): 28ef867

Update modeling_hymba.py

Browse files
Files changed (1) hide show
  1. 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(f"use_precomputed_states {use_precomputed_states}; {index} {self.D}, {delta_bias} ")
 
 
 
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