rphrp1985 commited on
Commit
0d50feb
·
verified ·
1 Parent(s): a51929d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -64,7 +64,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
64
 
65
  # model_id = "mistralai/Mistral-7B-v0.3"
66
 
67
- model_id = "CohereForAI/aya-23-35B"
68
 
69
 
70
  tokenizer = AutoTokenizer.from_pretrained(
@@ -77,7 +77,7 @@ accelerator = Accelerator()
77
 
78
  model = AutoModelForCausalLM.from_pretrained(model_id, token= token,
79
  # torch_dtype= torch.uint8,
80
- # torch_dtype=torch.float16,
81
  load_in_8bit=True,
82
  # torch_dtype=torch.fl,
83
  attn_implementation="flash_attention_2",
 
64
 
65
  # model_id = "mistralai/Mistral-7B-v0.3"
66
 
67
+ model_id = "CohereForAI/aya-23-8B"
68
 
69
 
70
  tokenizer = AutoTokenizer.from_pretrained(
 
77
 
78
  model = AutoModelForCausalLM.from_pretrained(model_id, token= token,
79
  # torch_dtype= torch.uint8,
80
+ torch_dtype=torch.float16,
81
  load_in_8bit=True,
82
  # torch_dtype=torch.fl,
83
  attn_implementation="flash_attention_2",