d-matrix-user commited on
Commit
521b8c4
·
verified ·
1 Parent(s): 4d1dc86

Update modeling_llama.py

Browse files
Files changed (1) hide show
  1. modeling_llama.py +2 -2
modeling_llama.py CHANGED
@@ -1102,8 +1102,8 @@ class LlamaModel(LlamaPreTrainedModel):
1102
  return None
1103
 
1104
  dtype, device = input_tensor.dtype, input_tensor.device
1105
- #min_dtype = torch.finfo(dtype).min
1106
- min_dtype = -10000
1107
  sequence_length = input_tensor.shape[1]
1108
  if hasattr(
1109
  getattr(self.layers[0], "self_attn", {}), "past_key_value"
 
1102
  return None
1103
 
1104
  dtype, device = input_tensor.dtype, input_tensor.device
1105
+ min_dtype = torch.finfo(dtype).min
1106
+ #min_dtype = -10000
1107
  sequence_length = input_tensor.shape[1]
1108
  if hasattr(
1109
  getattr(self.layers[0], "self_attn", {}), "past_key_value"