Princess3 commited on
Commit
3504cb5
1 Parent(s): 36e107a

Update m5.py

Browse files
Files changed (1) hide show
  1. m5.py +2 -0
m5.py CHANGED
@@ -5,6 +5,8 @@ from accelerate import Accelerator
5
  from transformers import AutoTokenizer, AutoModel
6
  from sklearn.metrics.pairwise import cosine_similarity
7
 
 
 
8
  logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
9
 
10
  class DM(nn.Module):
 
5
  from transformers import AutoTokenizer, AutoModel
6
  from sklearn.metrics.pairwise import cosine_similarity
7
 
8
+ # Set the TRANSFORMERS_CACHE environment variable to a writable directory
9
+ os.environ['TRANSFORMERS_CACHE'] = '/app/cache'
10
  logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
11
 
12
  class DM(nn.Module):