bstraehle commited on
Commit
241fd2c
1 Parent(s): 0d3d8a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -49,8 +49,7 @@ def prompt_model(model_id, system_prompt, user_prompt, schema):
49
 
50
  def download_model(base_model_id):
51
  tokenizer = AutoTokenizer.from_pretrained(base_model_id)
52
- model = AutoModelForCausalLM.from_pretrained(base_model_id)
53
-
54
  ###
55
  rope_scaling = {
56
  "type": "linear",
@@ -60,6 +59,7 @@ def download_model(base_model_id):
60
  model.config.rope_scaling = rope_scaling
61
  ###
62
 
 
63
  model.save_pretrained(base_model_id)
64
  return tokenizer
65
 
 
49
 
50
  def download_model(base_model_id):
51
  tokenizer = AutoTokenizer.from_pretrained(base_model_id)
52
+
 
53
  ###
54
  rope_scaling = {
55
  "type": "linear",
 
59
  model.config.rope_scaling = rope_scaling
60
  ###
61
 
62
+ model = AutoModelForCausalLM.from_pretrained(base_model_id)
63
  model.save_pretrained(base_model_id)
64
  return tokenizer
65