Drbrain0620 commited on
Commit
9ac4906
·
verified ·
1 Parent(s): 924642a

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. chatbot.py +1 -1
chatbot.py CHANGED
@@ -2,7 +2,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
2
  import torch
3
  import gradio as gr
4
 
5
- model_name = "mistralai/Mistral-7B-Instruct-v0.1"
6
 
7
  tokenizer = AutoTokenizer.from_pretrained(model_name)
8
  model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.float16, device_map="auto")
 
2
  import torch
3
  import gradio as gr
4
 
5
+ model_name = "gpt2"
6
 
7
  tokenizer = AutoTokenizer.from_pretrained(model_name)
8
  model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.float16, device_map="auto")