Commit
•
fa1a4d1
1
Parent(s):
271f7c4
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "4096"))
|
|
20 |
|
21 |
if torch.cuda.is_available():
|
22 |
model_id = "BramVanroy/GEITje-7B-ultra-sft"
|
23 |
-
model = AutoModelForCausalLM.from_pretrained(model_id,
|
24 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
25 |
|
26 |
|
|
|
20 |
|
21 |
if torch.cuda.is_available():
|
22 |
model_id = "BramVanroy/GEITje-7B-ultra-sft"
|
23 |
+
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
|
24 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
25 |
|
26 |
|