qbwmwsap commited on
Commit
ed81850
·
verified ·
1 Parent(s): cab85ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -3
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