Spaces:
Running
on
Zero
Running
on
Zero
BramVanroy
commited on
Commit
•
c071dea
1
Parent(s):
9995a73
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "8192"))
|
|
17 |
|
18 |
model_id = "BramVanroy/fietje-2b-chat"
|
19 |
avatar_url = "https://huggingface.co/spaces/BramVanroy/fietje-2b/resolve/main/img/fietje-2b-avatar.png"
|
20 |
-
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto"
|
21 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
22 |
tokenizer.pad_token_id = tokenizer.eos_token_id
|
23 |
|
@@ -116,7 +116,7 @@ chat_interface = gr.ChatInterface(
|
|
116 |
minimum=0.05,
|
117 |
maximum=1.0,
|
118 |
step=0.05,
|
119 |
-
value=1
|
120 |
),
|
121 |
gr.Slider(
|
122 |
label="Top-k",
|
|
|
17 |
|
18 |
model_id = "BramVanroy/fietje-2b-chat"
|
19 |
avatar_url = "https://huggingface.co/spaces/BramVanroy/fietje-2b/resolve/main/img/fietje-2b-avatar.png"
|
20 |
+
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
|
21 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
22 |
tokenizer.pad_token_id = tokenizer.eos_token_id
|
23 |
|
|
|
116 |
minimum=0.05,
|
117 |
maximum=1.0,
|
118 |
step=0.05,
|
119 |
+
value=0.1,
|
120 |
),
|
121 |
gr.Slider(
|
122 |
label="Top-k",
|