Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ import spaces
|
|
| 7 |
|
| 8 |
import torch
|
| 9 |
|
| 10 |
-
pipe_flan = pipeline("text2text-generation", model="philschmid/flan-t5-xxl-sharded-fp16",
|
| 11 |
pipe_vanilla = pipeline("text2text-generation", model="t5-large", device="cuda:0", model_kwargs={"torch_dtype":torch.bfloat16})
|
| 12 |
|
| 13 |
examples = [
|
|
|
|
| 7 |
|
| 8 |
import torch
|
| 9 |
|
| 10 |
+
pipe_flan = pipeline("text2text-generation", model="philschmid/flan-t5-xxl-sharded-fp16", model_kwargs={"load_in_8bit":True, "device_map": "auto"})
|
| 11 |
pipe_vanilla = pipeline("text2text-generation", model="t5-large", device="cuda:0", model_kwargs={"torch_dtype":torch.bfloat16})
|
| 12 |
|
| 13 |
examples = [
|