Spaces:
Runtime error
Runtime error
Update app.py
Browse files4 unmodified lines567891011124 unmodified lines@st.cache(allow_output_mutation=True)def define_model():model = AutoModelForCausalLM.from_pretrained("facebook/opt-13b", torch_dtype=torch.float16).cuda()tokenizer = AutoTokenizer.from_pretrained("facebook/opt-13b", use_fast=False)return model, tokenizer@st.cache(allow_output_mutation=True)4 unmodified lines567891011124 unmodified lines@st.cache(allow_output_mutation=True)def define_model():model = AutoModelForCausalLM.from_pretrained("facebook/opt-1.3b", torch_dtype=torch.float16).cuda()tokenizer = AutoTokenizer.from_pretrained("facebook/opt-1.3b", use_fast=False)return model, tokenizer@st.cache(allow_output_mutation=True)
app.py+2-2