Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ if "messages" not in st.session_state or clear_chat:
|
|
34 |
# --- Load Model + Tokenizer ---
|
35 |
@st.cache_resource
|
36 |
def load_model():
|
37 |
-
model_id = "tiiuae/falcon-7b-instruct"
|
38 |
tokenizer = AutoTokenizer.from_pretrained(model_id, token=HF_TOKEN)
|
39 |
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.float16, device_map="auto", token=HF_TOKEN)
|
40 |
return tokenizer, model
|
|
|
34 |
# --- Load Model + Tokenizer ---
|
35 |
@st.cache_resource
|
36 |
def load_model():
|
37 |
+
model_id = "amiguel/GM_Qwen1.8B_Finetune" #"tiiuae/falcon-7b-instruct"
|
38 |
tokenizer = AutoTokenizer.from_pretrained(model_id, token=HF_TOKEN)
|
39 |
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.float16, device_map="auto", token=HF_TOKEN)
|
40 |
return tokenizer, model
|