mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-09 04:50:17 +00:00
[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:
@@ -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
|
||||
|
Reference in New Issue
Block a user