Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,8 +3,10 @@ import transformers
|
|
| 3 |
import torch
|
| 4 |
import gradio as gr
|
| 5 |
|
| 6 |
-
checkpoint = "tiiuae/falcon-40b-instruct"
|
| 7 |
# checkpoint = "tiiuae/falcon-7b-instruct"
|
|
|
|
|
|
|
| 8 |
|
| 9 |
model = AutoModelForCausalLM.from_pretrained(
|
| 10 |
checkpoint, device_map="auto", offload_folder="offload", trust_remote_code=True,)
|
|
|
|
| 3 |
import torch
|
| 4 |
import gradio as gr
|
| 5 |
|
| 6 |
+
# checkpoint = "tiiuae/falcon-40b-instruct"
|
| 7 |
# checkpoint = "tiiuae/falcon-7b-instruct"
|
| 8 |
+
checkpoint = "tiiuae/falcon-7b"
|
| 9 |
+
|
| 10 |
|
| 11 |
model = AutoModelForCausalLM.from_pretrained(
|
| 12 |
checkpoint, device_map="auto", offload_folder="offload", trust_remote_code=True,)
|