Spaces:
Build error
Build error
Update models/videochat.py
Browse files- models/videochat.py +3 -2
models/videochat.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
import os
|
|
|
|
| 2 |
import random
|
| 3 |
import logging
|
| 4 |
|
|
@@ -115,8 +116,8 @@ class VideoChat(Blip2Base):
|
|
| 115 |
self.llama_tokenizer = LlamaTokenizer.from_pretrained(llama_model_path, use_fast=False, use_auth_token=os.environ["HF_TOKEN"])
|
| 116 |
self.llama_tokenizer.pad_token = self.llama_tokenizer.eos_token
|
| 117 |
|
| 118 |
-
|
| 119 |
-
|
| 120 |
print(u'当前进程的内存使用:%.4f GB' % (psutil.Process(os.getpid()).memory_info().rss / 1024 / 1024 / 1024) )
|
| 121 |
info = psutil.virtual_memory()
|
| 122 |
print( u'电脑总内存:%.4f GB' % (info.total / 1024 / 1024 / 1024) )
|
|
|
|
| 1 |
import os
|
| 2 |
+
import psutil
|
| 3 |
import random
|
| 4 |
import logging
|
| 5 |
|
|
|
|
| 116 |
self.llama_tokenizer = LlamaTokenizer.from_pretrained(llama_model_path, use_fast=False, use_auth_token=os.environ["HF_TOKEN"])
|
| 117 |
self.llama_tokenizer.pad_token = self.llama_tokenizer.eos_token
|
| 118 |
|
| 119 |
+
|
| 120 |
+
|
| 121 |
print(u'当前进程的内存使用:%.4f GB' % (psutil.Process(os.getpid()).memory_info().rss / 1024 / 1024 / 1024) )
|
| 122 |
info = psutil.virtual_memory()
|
| 123 |
print( u'电脑总内存:%.4f GB' % (info.total / 1024 / 1024 / 1024) )
|