mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-03 12:50:06 +06:00
for now disable compile (#38383)
This commit is contained in:
parent
78079abeff
commit
98328fd9a1
@ -773,7 +773,6 @@ class ContinuousBatchProcessor:
|
||||
|
||||
@traced
|
||||
@torch.no_grad()
|
||||
@torch.compile()
|
||||
def reset_static_tensors(self):
|
||||
"""Reset static tensors for the next batch."""
|
||||
self.input_ids.zero_()
|
||||
@ -1226,7 +1225,6 @@ class ContinuousBatchingManager:
|
||||
return self.model(**batch_data).logits
|
||||
|
||||
@traced(span_name="logit_processing")
|
||||
@torch.compile()
|
||||
def _process_logit(self, batch_data, logits):
|
||||
return self.logit_processor(batch_data["input_ids"], logits)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user