Spaces:
Running
Running
Update myt2tmod.py
Browse files- 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="
|
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")
|