Tonic commited on
Commit
9c72c1b
1 Parent(s): f1d7f71

Update yijinaembed.py

Browse files
Files changed (1) hide show
  1. 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
- # 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
 
 
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