Spaces:
Paused
Paused
Commit
·
dad6346
1
Parent(s):
2c3fb99
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,6 +5,12 @@ import torch
|
|
| 5 |
|
| 6 |
print(torch.cuda.is_available())
|
| 7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
# Load the Hugging Face model for chatbot
|
| 9 |
bnb_config = BitsAndBytesConfig(
|
| 10 |
load_in_4bit=True,
|
|
|
|
| 5 |
|
| 6 |
print(torch.cuda.is_available())
|
| 7 |
|
| 8 |
+
tokenizer_name = "tiiuae/falcon-7b-instruct"
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
tokenizer = AutoTokenizer.from_pretrained(tokenizer_name, trust_remote_code=True)
|
| 12 |
+
tokenizer.pad_token = tokenizer.eos_token
|
| 13 |
+
|
| 14 |
# Load the Hugging Face model for chatbot
|
| 15 |
bnb_config = BitsAndBytesConfig(
|
| 16 |
load_in_4bit=True,
|