Spaces:
Running
on
Zero
Running
on
Zero
BramVanroy
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ MAX_MAX_NEW_TOKENS = 1536
|
|
15 |
DEFAULT_MAX_NEW_TOKENS = 1024
|
16 |
MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "8192"))
|
17 |
|
18 |
-
model_id = "BramVanroy/fietje-2b-
|
19 |
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.bfloat16, device_map="auto")
|
20 |
model = model.to("cuda" if torch.cuda.is_available() else "cpu")
|
21 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
|
|
15 |
DEFAULT_MAX_NEW_TOKENS = 1024
|
16 |
MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "8192"))
|
17 |
|
18 |
+
model_id = "BramVanroy/fietje-2b-chat"
|
19 |
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.bfloat16, device_map="auto")
|
20 |
model = model.to("cuda" if torch.cuda.is_available() else "cpu")
|
21 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|