John6666 commited on
Commit
eb8bd20
β€’
1 Parent(s): 88fe1b7

Update myt2tmod.py

Browse files
Files changed (1) hide show
  1. myt2tmod.py +1 -1
myt2tmod.py CHANGED
@@ -33,7 +33,7 @@ class TaggerLlama:
33
  return
34
  print("Downloading Model")
35
  self.tokenizer = AutoTokenizer.from_pretrained(self.MODEL_URL)
36
- self.model = AutoModelForCausalLM.from_pretrained(self.MODEL_URL, device_map="cuda:0")
37
  self.tokenizer.save_pretrained(self.SAVE_NAME)
38
  self.model.save_pretrained(self.SAVE_NAME)
39
  print("Model Downloaded")
 
33
  return
34
  print("Downloading Model")
35
  self.tokenizer = AutoTokenizer.from_pretrained(self.MODEL_URL)
36
+ self.model = AutoModelForCausalLM.from_pretrained(self.MODEL_URL, device_map="cpu")
37
  self.tokenizer.save_pretrained(self.SAVE_NAME)
38
  self.model.save_pretrained(self.SAVE_NAME)
39
  print("Model Downloaded")