Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,9 +17,6 @@ from huggingface_hub import InferenceClient
|
|
| 17 |
DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 18 |
MODEL_NAME = "microsoft/Phi-3-mini-4k-instruct"
|
| 19 |
|
| 20 |
-
# Update transformers library
|
| 21 |
-
!pip install --upgrade transformers
|
| 22 |
-
|
| 23 |
# Load model and tokenizer, with specific handling for the Phi-3 model
|
| 24 |
try:
|
| 25 |
config = AutoConfig.from_pretrained(MODEL_NAME)
|
|
|
|
| 17 |
DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 18 |
MODEL_NAME = "microsoft/Phi-3-mini-4k-instruct"
|
| 19 |
|
|
|
|
|
|
|
|
|
|
| 20 |
# Load model and tokenizer, with specific handling for the Phi-3 model
|
| 21 |
try:
|
| 22 |
config = AutoConfig.from_pretrained(MODEL_NAME)
|