Ventsislav Muchinov commited on
Commit
67fdcc7
1 Parent(s): e4cd356

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -24,8 +24,9 @@ tokenizer = AutoTokenizer.from_pretrained(
24
  model_id,
25
  trust_remote_code=True,
26
  token=ACCESS_TOKEN)
27
- tokenizer.use_default_system_prompt = False
28
 
 
 
29
 
30
  @spaces.GPU
31
  def generate(
 
24
  model_id,
25
  trust_remote_code=True,
26
  token=ACCESS_TOKEN)
 
27
 
28
+ tokenizer.use_default_system_prompt = False
29
+ model.config.gradient_checkpointing = True
30
 
31
  @spaces.GPU
32
  def generate(