Spaces:
Runtime error
Runtime 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) )
|