fakeym commited on
Commit
bc9a010
1 Parent(s): 3479040

Update travel/self_rag_tool.py

Browse files
Files changed (1) hide show
  1. travel/self_rag_tool.py +1 -1
travel/self_rag_tool.py CHANGED
@@ -135,7 +135,7 @@ class embedding(object):
135
  self.tokenizer = AutoTokenizer.from_pretrained('maidalun1020/bce-embedding-base_v1')
136
  self.model = AutoModel.from_pretrained('maidalun1020/bce-embedding-base_v1')
137
 
138
- self.device = 'cuda' # if no GPU, set "cpu"
139
  self.model.to(self.device)
140
 
141
 
 
135
  self.tokenizer = AutoTokenizer.from_pretrained('maidalun1020/bce-embedding-base_v1')
136
  self.model = AutoModel.from_pretrained('maidalun1020/bce-embedding-base_v1')
137
 
138
+ self.device = 'cpu' # if no GPU, set "cpu"
139
  self.model.to(self.device)
140
 
141