Mikhil-jivus commited on
Commit
77b3a6a
1 Parent(s): 0c7bc8d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,14 +30,14 @@ MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "4096"))
30
  device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
31
 
32
  #model_id = "nltpt/Llama-3.2-3B-Instruct"
33
- tokenizer = AutoTokenizer.from_pretrained(model_id)
34
  tokenizer.padding_side = 'right'
35
  tokenizer.pad_token = tokenizer.eos_token
36
  model = AutoModelForCausalLM.from_pretrained(
37
  model_id,
38
  device_map=device,
39
  torch_dtype=torch.bfloat16,
40
- local_files_only = True
41
  )
42
  model.eval()
43
 
 
30
  device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
31
 
32
  #model_id = "nltpt/Llama-3.2-3B-Instruct"
33
+ tokenizer = AutoTokenizer.from_pretrained(model_id,token=access_token)
34
  tokenizer.padding_side = 'right'
35
  tokenizer.pad_token = tokenizer.eos_token
36
  model = AutoModelForCausalLM.from_pretrained(
37
  model_id,
38
  device_map=device,
39
  torch_dtype=torch.bfloat16,
40
+ token=access_token
41
  )
42
  model.eval()
43