E-Hospital commited on
Commit
4d61bc4
1 Parent(s): b5ad854

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -0
main.py CHANGED
@@ -1,5 +1,8 @@
1
  from transformers import AutoTokenizer, AutoModelForCausalLM
2
  import torch
 
 
 
3
 
4
  model = AutoModelForCausalLM.from_pretrained(
5
  "E-Hospital/open-orca-platypus-2-lora-medical",
 
1
  from transformers import AutoTokenizer, AutoModelForCausalLM
2
  import torch
3
+ import os
4
+
5
+ os.environ['SENTENCE_TRANSFORMERS_HOME'] = './.cache'
6
 
7
  model = AutoModelForCausalLM.from_pretrained(
8
  "E-Hospital/open-orca-platypus-2-lora-medical",