Skip to content

Commit

Permalink
Fix up everything. BF16 still failing though
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleHerndon committed Jan 31, 2025
1 parent f6e4a81 commit 7fe1c1d
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 918 deletions.
2 changes: 1 addition & 1 deletion sharktank/sharktank/layers/configs/llm_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ class ClipTextConfig:
output_hidden_states: bool = False
use_return_dict: bool = True
dtype: torch.dtype = torch.float32

@staticmethod
def from_hugging_face_clip_text_model_config(
config: "transformers.CLIPTextConfig", # type: ignore
Expand Down
2 changes: 1 addition & 1 deletion sharktank/sharktank/models/clip/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def clip_text_model_to_dataset(model: ClipTextModel) -> Dataset:
def export_clip_text_model_iree_parameters(model: ClipTextModel, output_path: PathLike, dtype=None):
dataset = clip_text_model_to_dataset(model)
if dtype:
dataset.root_theta = tdataset.root_theta.transform(
dataset.root_theta = dataset.root_theta.transform(
functools.partial(set_float_dtype, dtype=dtype)
)
dataset.save(output_path)
Expand Down
5 changes: 1 addition & 4 deletions sharktank/sharktank/pipelines/flux/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
"""Flux text-to-image generation pipeline."""

from .flux_pipeline import FluxPipeline
from .export import export_flux_pipeline_mlir , export_flux_pipeline_iree_parameters

__all__ = [
"FluxPipeline",
"export_flux_pipeline_mlir",
"export_flux_pipeline_iree_parameters",
]
]
158 changes: 0 additions & 158 deletions sharktank/sharktank/pipelines/flux/export.py

This file was deleted.

8 changes: 0 additions & 8 deletions sharktank/sharktank/torch_exports/flux/README.md

This file was deleted.

Loading

0 comments on commit 7fe1c1d

Please sign in to comment.