Mohammed-Altaf commited on
Commit
444b5a5
1 Parent(s): ae00bf2

Update load_meta_data.py

Browse files
Files changed (1) hide show
  1. load_meta_data.py +2 -4
load_meta_data.py CHANGED
@@ -13,10 +13,8 @@ class ChatBot:
13
  self.model = None
14
 
15
  def load_from_hub(self,model_id: str):
16
- self.tokenizer = AutoTokenizer.from_pretrained(model_id,
17
- device_map = 'auto')
18
- self.model = AutoModelForCausalLM.from_pretrained(model_id,
19
- device_map='auto')
20
 
21
  def get_response(self,text: UserQuery) -> str:
22
  if not self.model or not self.tokenizer:
 
13
  self.model = None
14
 
15
  def load_from_hub(self,model_id: str):
16
+ self.tokenizer = AutoTokenizer.from_pretrained(model_id,)
17
+ self.model = AutoModelForCausalLM.from_pretrained(model_id,)
 
 
18
 
19
  def get_response(self,text: UserQuery) -> str:
20
  if not self.model or not self.tokenizer: