Spaces:
Runtime error
Runtime error
JuliaUpton
commited on
Commit
•
587a073
1
Parent(s):
bbf6535
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,11 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import AutoTokenizer
|
|
|
3 |
|
4 |
# Load the tokenizer and model
|
5 |
model_name = "JuliaUpton/Math_AI"
|
6 |
mixtral_tokenizer = AutoTokenizer.from_pretrained(model_name)
|
7 |
-
merged_model =
|
8 |
|
9 |
# Define the input formatting function
|
10 |
def input_from_text(instruction):
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import AutoTokenizer
|
3 |
+
from peft import PeftModel, AutoAdapterModel
|
4 |
|
5 |
# Load the tokenizer and model
|
6 |
model_name = "JuliaUpton/Math_AI"
|
7 |
mixtral_tokenizer = AutoTokenizer.from_pretrained(model_name)
|
8 |
+
merged_model = AutoAdapterModel.from_pretrained(model_name)
|
9 |
|
10 |
# Define the input formatting function
|
11 |
def input_from_text(instruction):
|