mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-04 20:52:59 +08:00
parent
2ba88c6b08
commit
8ee48a9c9e
@ -1,4 +1,5 @@
|
|||||||
from llmtuner import ChatModel
|
from llmtuner import ChatModel
|
||||||
|
from llmtuner.extras.misc import torch_gc
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import platform
|
import platform
|
||||||
@ -27,6 +28,7 @@ def main():
|
|||||||
|
|
||||||
if query.strip() == "clear":
|
if query.strip() == "clear":
|
||||||
history = []
|
history = []
|
||||||
|
torch_gc()
|
||||||
print("History has been removed.")
|
print("History has been removed.")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user