Spaces:
Runtime error
Runtime error
Path for model
Browse files
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(
|
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 |
|