Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -94,8 +94,6 @@ if uploaded_files:
|
|
94 |
model = AutoModelForCausalLM.from_pretrained(
|
95 |
model_name,
|
96 |
trust_remote_code=True,
|
97 |
-
device_map="auto", # For GPU acceleration
|
98 |
-
torch_dtype=torch.float16
|
99 |
)
|
100 |
|
101 |
# Create pipeline with generation parameters
|
|
|
94 |
model = AutoModelForCausalLM.from_pretrained(
|
95 |
model_name,
|
96 |
trust_remote_code=True,
|
|
|
|
|
97 |
)
|
98 |
|
99 |
# Create pipeline with generation parameters
|