Spaces:
Runtime error
Runtime error
Commit
·
3a8e738
1
Parent(s):
d7243cf
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
import re
|
3 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
4 |
-
|
|
|
|
|
5 |
model_name_or_path = "teknium/OpenHermes-2-Mistral-7B"
|
6 |
dtype = torch.bfloat16
|
7 |
model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
|
|
|
1 |
import gradio as gr
|
2 |
import re
|
3 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
4 |
+
import torch
|
5 |
+
import bitsandbytes
|
6 |
+
import accelerate
|
7 |
model_name_or_path = "teknium/OpenHermes-2-Mistral-7B"
|
8 |
dtype = torch.bfloat16
|
9 |
model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
|