Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,10 @@
|
|
1 |
-
|
2 |
-
import
|
|
|
|
|
|
|
|
|
|
|
3 |
MODEL_ID = "mistralai/Mixtral-8x7B-Instruct-v0.1" # FP16 weights
|
4 |
bnb_cfg = BitsAndBytesConfig(
|
5 |
load_in_4bit=True,
|
|
|
1 |
+
import torch, textwrap, gradio as gr
|
2 |
+
from transformers import (
|
3 |
+
AutoTokenizer,
|
4 |
+
AutoModelForCausalLM,
|
5 |
+
BitsAndBytesConfig,
|
6 |
+
pipeline,
|
7 |
+
)
|
8 |
MODEL_ID = "mistralai/Mixtral-8x7B-Instruct-v0.1" # FP16 weights
|
9 |
bnb_cfg = BitsAndBytesConfig(
|
10 |
load_in_4bit=True,
|