alexkueck commited on
Commit
80c8e51
1 Parent(s): 5640a0a

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +4 -4
utils.py CHANGED
@@ -58,12 +58,12 @@ def generate_prompt_with_history(text, history, tokenizer, max_length=2048):
58
 
59
 
60
 
 
 
 
 
61
 
62
 
63
- tokenizer = AutoTokenizer.from_pretrained("project-baize/baize-v2-7b")
64
-
65
- model = AutoModelForCausalLM.from_pretrained("project-baize/baize-v2-7b")
66
-
67
  def load_tokenizer_and_model(base_model,load_8bit=False):
68
  if torch.cuda.is_available():
69
  device = "cuda"
 
58
 
59
 
60
 
61
+ #tokenizer = AutoTokenizer.from_pretrained("project-baize/baize-v2-7b")
62
+ #model = AutoModelForCausalLM.from_pretrained("project-baize/baize-v2-7b")
63
+ tokenizer = AutoTokenizer.from_pretrained("microsoft/DialoGPT-medium")
64
+ model = AutoModelForCausalLM.from_pretrained("microsoft/DialoGPT-medium")
65
 
66
 
 
 
 
 
67
  def load_tokenizer_and_model(base_model,load_8bit=False):
68
  if torch.cuda.is_available():
69
  device = "cuda"