Spaces:
Build error
Build error
Update yijinaembed.py
Browse files- yijinaembed.py +3 -3
yijinaembed.py
CHANGED
@@ -25,9 +25,9 @@ from langchain.chains.combine_documents.stuff import create_stuff_documents_cha
|
|
25 |
|
26 |
load_dotenv()
|
27 |
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
|
32 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
33 |
|
|
|
25 |
|
26 |
load_dotenv()
|
27 |
|
28 |
+
os.environ['PYTORCH_CUDA_ALLOC_CONF'] = 'max_split_size_mb:180'
|
29 |
+
os.environ['CUDA_LAUNCH_BLOCKING'] = '1'
|
30 |
+
os.environ['CUDA_CACHE_DISABLE'] = '1'
|
31 |
|
32 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
33 |
|