Spaces:
Runtime error
Runtime error
Mikhil-jivus
commited on
Commit
•
c2a0993
1
Parent(s):
b650153
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ model = AutoModelForCausalLM.from_pretrained(
|
|
15 |
repo_id,
|
16 |
token=access_token,
|
17 |
torch_dtype=torch.bfloat16, # or use torch.bfloat16 if supported
|
18 |
-
device_map="
|
19 |
)
|
20 |
|
21 |
def respond(
|
|
|
15 |
repo_id,
|
16 |
token=access_token,
|
17 |
torch_dtype=torch.bfloat16, # or use torch.bfloat16 if supported
|
18 |
+
device_map="auto" # Automatically use available GPU/CPU efficiently
|
19 |
)
|
20 |
|
21 |
def respond(
|