Drbrain0620 commited on
Commit
b6f3967
·
verified ·
1 Parent(s): 75822ed

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. chatbot.py +1 -1
chatbot.py CHANGED
@@ -6,7 +6,7 @@ try:
6
  model_name = "gpt2"
7
 
8
  tokenizer = AutoTokenizer.from_pretrained(model_name)
9
- model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.float16, device_map="auto")
10
 
11
  chat_history = [{"role": "system", "content": "You are a helpful assistant."}]
12
 
 
6
  model_name = "gpt2"
7
 
8
  tokenizer = AutoTokenizer.from_pretrained(model_name)
9
+ model = AutoModelForCausalLM.from_pretrained(model_name)
10
 
11
  chat_history = [{"role": "system", "content": "You are a helpful assistant."}]
12