Red-tech-hub commited on
Commit
707bc74
1 Parent(s): 27b7ec1
Files changed (1) hide show
  1. run.py +1 -4
run.py CHANGED
@@ -8,11 +8,8 @@ from transformers import AutoModelForCausalLM
8
  import os
9
 
10
  # Ensure the TRANSFORMERS_CACHE directory exists and is writable
11
- cache_dir = '/code/model/cache/'
12
- if not os.path.exists(cache_dir):
13
- os.makedirs(cache_dir)
14
 
15
- os.environ['TRANSFORMERS_CACHE'] = cache_dir
16
 
17
  model_kwargs = {'trust_remote_code': True}
18
 
 
8
  import os
9
 
10
  # Ensure the TRANSFORMERS_CACHE directory exists and is writable
 
 
 
11
 
12
+ cache_dir = os.environ['TRANSFORMERS_CACHE']
13
 
14
  model_kwargs = {'trust_remote_code': True}
15