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