tafxle commited on
Commit
d45c55b
1 Parent(s): d8e2347

Path for model

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,8 +7,8 @@ import streamlit as st
7
 
8
  @st.cache
9
  def load_model():
10
- hf_hub_download("OpenDungeon/gpt-j-8bit-ffbgem", "model.pt")
11
- qmodel = torch.load("model.pt")
12
  return transformers.AutoTokenizer.from_pretrained("EleutherAI/gpt-j-6B"), qmodel
13
 
14
 
 
7
 
8
  @st.cache
9
  def load_model():
10
+ fpath = hf_hub_download("OpenDungeon/gpt-j-8bit-ffbgem", "model.pt")
11
+ qmodel = torch.load(fpath)
12
  return transformers.AutoTokenizer.from_pretrained("EleutherAI/gpt-j-6B"), qmodel
13
 
14