Arsh014 commited on
Commit
b0c41b9
·
verified ·
1 Parent(s): de3ddde

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -13,7 +13,7 @@ tokenizer = AutoTokenizer.from_pretrained(base_model_id)
13
 
14
  model = AutoModelForCausalLM.from_pretrained(
15
  base_model_id,
16
- load_in_8bit=True,
17
  torch_dtype=torch.float16,
18
  device_map="auto"
19
  )
@@ -56,7 +56,7 @@ def explain_dockerfile(instruction, code):
56
  max_new_tokens=256,
57
  do_sample=True,
58
  temperature=0.7,
59
- return_full_text=False # We want only the new tokens generated after the prompt
60
  )
61
 
62
 
 
13
 
14
  model = AutoModelForCausalLM.from_pretrained(
15
  base_model_id,
16
+ load_in_4bit=True,
17
  torch_dtype=torch.float16,
18
  device_map="auto"
19
  )
 
56
  max_new_tokens=256,
57
  do_sample=True,
58
  temperature=0.7,
59
+ return_full_text=False
60
  )
61
 
62