namespace-Pt commited on
Commit
cb864b5
1 Parent(s): deaf631

Upload modeling_beacon.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. modeling_beacon.py +1 -1
modeling_beacon.py CHANGED
@@ -244,7 +244,7 @@ class Memory(torch.nn.Module):
244
  beacon_ratio = beacon_ratio[minimum_length_index]
245
  else:
246
  beacon_ratio = max(beacon_ratio)
247
- logger.warning(f"Failed to find valid fold window and size for sequence length {sequence_length}, as the maximum theoretical length is {max(max_lengths)}. Fall back to use the maximum one: {beacon_ratio}.")
248
  self._ratio = beacon_ratio
249
  else:
250
  beacon_ratio = self._ratio
 
244
  beacon_ratio = beacon_ratio[minimum_length_index]
245
  else:
246
  beacon_ratio = max(beacon_ratio)
247
+ # logger.warning(f"Failed to find valid fold window and size for sequence length {sequence_length}, as the maximum theoretical length is {max(max_lengths)}. Fall back to use the maximum one: {beacon_ratio}.")
248
  self._ratio = beacon_ratio
249
  else:
250
  beacon_ratio = self._ratio