nadiamaqbool81 commited on
Commit
3c2f6e1
·
1 Parent(s): 72d0264

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -40,7 +40,7 @@ def the_process(input_text, model_choice):
40
  if(pythonFlag == "false"):
41
  print("Inside llama for python")
42
  tokenizer = AutoTokenizer.from_pretrained("nadiamaqbool81/starcoderbase-1b-hf_python")
43
- model = AutoModelForCausalLM.from_pretrained("nadiamaqbool81/starcoderbase-1b-hf_python", load_in_4bit=True, torch_dtype=torch.float16, device_map= {"": 0} )
44
  output = run_predict(input_text, model, tokenizer)
45
  print("output" , output)
46
  pythonFlag = "true"
 
40
  if(pythonFlag == "false"):
41
  print("Inside llama for python")
42
  tokenizer = AutoTokenizer.from_pretrained("nadiamaqbool81/starcoderbase-1b-hf_python")
43
+ model = AutoModelForCausalLM.from_pretrained("nadiamaqbool81/starcoderbase-1b-hf_python")
44
  output = run_predict(input_text, model, tokenizer)
45
  print("output" , output)
46
  pythonFlag = "true"