Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -85,11 +85,12 @@ tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)
|
|
85 |
if tokenizer.pad_token is None:
|
86 |
tokenizer.pad_token = tokenizer.eos_token
|
87 |
tokenizer.pad_token_id = tokenizer.eos_token_id
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
|
|
93 |
)
|
94 |
|
95 |
# Create Gradio interface
|
|
|
85 |
if tokenizer.pad_token is None:
|
86 |
tokenizer.pad_token = tokenizer.eos_token
|
87 |
tokenizer.pad_token_id = tokenizer.eos_token_id
|
88 |
+
|
89 |
+
model = AutoModelForCausalLM.from_pretrained(
|
90 |
+
MODEL_ID,
|
91 |
+
device_map="auto",
|
92 |
+
quantization_config=quantization_config,
|
93 |
+
torch_dtype=torch.bfloat16
|
94 |
)
|
95 |
|
96 |
# Create Gradio interface
|