Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ description = "Interestingly there simply wasnt a public demo for Xgen, So I mad
|
|
12 |
|
13 |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
14 |
model_name = "Salesforce/xgen-7b-8k-base"
|
15 |
-
tokenizer =
|
16 |
model = AutoModelForCausalLM.from_pretrained(model_name, dtype=torch.bfloat16, device_map="auto")
|
17 |
|
18 |
class XgenChatBot:
|
|
|
12 |
|
13 |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
14 |
model_name = "Salesforce/xgen-7b-8k-base"
|
15 |
+
tokenizer = XgenTokenizer.from_pretrained("./")
|
16 |
model = AutoModelForCausalLM.from_pretrained(model_name, dtype=torch.bfloat16, device_map="auto")
|
17 |
|
18 |
class XgenChatBot:
|