ryanpdwyer commited on
Commit
abf5fa4
·
1 Parent(s): c717637

Updated text gen interface timeout to 180 s

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
4
 
5
  model_name = "models/unsloth/Meta-Llama-3.1-8B-bnb-4bit"
6
 
7
- @spaces.GPU
8
  def load_model():
9
  model = AutoModelForCausalLM.from_pretrained(model_name)
10
  tokenizer = AutoTokenizer.from_pretrained(model_name)
 
4
 
5
  model_name = "models/unsloth/Meta-Llama-3.1-8B-bnb-4bit"
6
 
7
+ @spaces.GPU(duration=180)
8
  def load_model():
9
  model = AutoModelForCausalLM.from_pretrained(model_name)
10
  tokenizer = AutoTokenizer.from_pretrained(model_name)