Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,14 @@
|
|
1 |
import streamlit as st
|
2 |
-
from transformers import AutoTokenizer, AutoModelForCausalLM
|
|
|
3 |
|
4 |
# Load your model here
|
5 |
-
tokenizer = AutoTokenizer.from_pretrained("qbwmwsap/amber-model-mine")
|
6 |
-
model = AutoModelForCausalLM.from_pretrained("qbwmwsap/amber-model-mine")
|
|
|
|
|
|
|
|
|
7 |
|
8 |
st.title('Amber-Model-Mine')
|
9 |
|
|
|
1 |
import streamlit as st
|
2 |
+
# from transformers import AutoTokenizer, AutoModelForCausalLM
|
3 |
+
from transformers import LlamaTokenizer, LlamaForCausalLM
|
4 |
|
5 |
# Load your model here
|
6 |
+
# tokenizer = AutoTokenizer.from_pretrained("qbwmwsap/amber-model-mine")
|
7 |
+
# model = AutoModelForCausalLM.from_pretrained("qbwmwsap/amber-model-mine")
|
8 |
+
|
9 |
+
# Load original amber model
|
10 |
+
tokenizer = LlamaTokenizer.from_pretrained("LLM360/Amber", revision="ckpt_356")
|
11 |
+
model = LlamaForCausalLM.from_pretrained("LLM360/Amber", revision="ckpt_356")
|
12 |
|
13 |
st.title('Amber-Model-Mine')
|
14 |
|