Spaces:
Running
Running
Update optimum_neuron_export.py
Browse files- optimum_neuron_export.py +2 -1
optimum_neuron_export.py
CHANGED
|
@@ -140,7 +140,7 @@ DIFFUSION_PIPELINE_MAPPING = {
|
|
| 140 |
"tasks": ["inpaint"],
|
| 141 |
"default_task": "inpaint"
|
| 142 |
},
|
| 143 |
-
"flux-
|
| 144 |
"class": FluxKontextPipeline,
|
| 145 |
"tasks": ["text-to-image", "image-to-image"],
|
| 146 |
"default_task": "text-to-image"
|
|
@@ -245,6 +245,7 @@ def export_diffusion_model(model_id: str, pipeline_name: str, task: str, folder:
|
|
| 245 |
input_shapes=input_shapes,
|
| 246 |
task=task,
|
| 247 |
library_name="diffusers",
|
|
|
|
| 248 |
output=Path(folder),
|
| 249 |
model_name_or_path=model_id,
|
| 250 |
)
|
|
|
|
| 140 |
"tasks": ["inpaint"],
|
| 141 |
"default_task": "inpaint"
|
| 142 |
},
|
| 143 |
+
"flux-kontext": {
|
| 144 |
"class": FluxKontextPipeline,
|
| 145 |
"tasks": ["text-to-image", "image-to-image"],
|
| 146 |
"default_task": "text-to-image"
|
|
|
|
| 245 |
input_shapes=input_shapes,
|
| 246 |
task=task,
|
| 247 |
library_name="diffusers",
|
| 248 |
+
tensor_parallel_size=4,
|
| 249 |
output=Path(folder),
|
| 250 |
model_name_or_path=model_id,
|
| 251 |
)
|