[Inference] User Experience: update the logic of default tokenizer and generation config. (#5337)

* add

* fix

* fix

* pause

* fix

* fix pytest

* align

* fix

* license

* fix

* fix

* fix readme

* fix some bugs

* remove tokenizer config
This commit is contained in:
Jianghai
2024-02-07 17:55:48 +08:00
committed by GitHub
parent 6fb4bcbb24
commit 1f8c7e7046
7 changed files with 62 additions and 23 deletions

View File

@@ -12,6 +12,11 @@ class FDIntermTensors(metaclass=SingletonMeta):
def __init__(self):
self._tensors_initialized = False
def _reset(self):
self._tensors_initialized = False
del self._mid_output
del self._mid_output_lse
@property
def is_initialized(self):
return self._tensors_initialized