MoritzLaurer HF staff commited on
Commit
966be4c
·
verified ·
1 Parent(s): 9f14754

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -63,7 +63,7 @@ class EndpointHandler:
63
  with torch.autocast(device):
64
  outputs = self.model.generate(
65
  **voice_description, prompt_input_ids=inputs.input_ids,
66
- attention_mask=inputs.attention_mask, #prompt_attention_mask=voice_description.attention_mask,
67
  **gen_kwargs
68
  )
69
 
 
63
  with torch.autocast(device):
64
  outputs = self.model.generate(
65
  **voice_description, prompt_input_ids=inputs.input_ids,
66
+ prompt_attention_mask=inputs.attention_mask, #prompt_attention_mask=voice_description.attention_mask,
67
  **gen_kwargs
68
  )
69