muryshev commited on
Commit
1200b0f
·
verified ·
1 Parent(s): 96cde50

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +1 -1
model.py CHANGED
@@ -7,7 +7,7 @@ os.makedirs(hf_cache_folder, exist_ok=True)
7
 
8
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
9
 
10
- model_id = "microsoft/Phi-3-medium-128k-instruct"
11
  tokenizer = AutoTokenizer.from_pretrained(model_id, cache_dir=hf_cache_folder, trust_remote_code=True)
12
  model = AutoModelForCausalLM.from_pretrained(model_id, cache_dir=hf_cache_folder, device_map="auto", trust_remote_code=True)
13
  ## <BOS_TOKEN><|START_OF_TURN_TOKEN|><|USER_TOKEN|>Hello, how are you?<|END_OF_TURN_TOKEN|><|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>
 
7
 
8
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
9
 
10
+ model_id = "microsoft/Phi-3-mini-128k-instruct"
11
  tokenizer = AutoTokenizer.from_pretrained(model_id, cache_dir=hf_cache_folder, trust_remote_code=True)
12
  model = AutoModelForCausalLM.from_pretrained(model_id, cache_dir=hf_cache_folder, device_map="auto", trust_remote_code=True)
13
  ## <BOS_TOKEN><|START_OF_TURN_TOKEN|><|USER_TOKEN|>Hello, how are you?<|END_OF_TURN_TOKEN|><|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>