Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vllm check #359

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions core/pytorch-cpu-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<<<<<<< HEAD
--pre
torch==2.1.0
mpmath==1.3.0
=======
--pre --index-url https://download.pytorch.org/whl/nightly/cpu
torch
torchvision
>>>>>>> 3982839 (gemma wip)
1 change: 0 additions & 1 deletion core/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@
-f https://openxla.github.io/iree/pip-release-links.html

-r pytorch-cpu-requirements.txt
-r torchvision-requirements.txt
-r iree-requirements.txt
1 change: 1 addition & 0 deletions core/shark_turbine/aot/builtins/jittable.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ def flat_wrapped_f(*args):
hooks=_Hooks(proc_trace.module_builder),
py_attr_tracker=proc_trace.module_builder.fx_py_attr_tracker,
)
print(gm.graph)
fx_importer.import_stateless_graph(gm.graph, func_name=self.function_name)

# TODO: Real debugging options
Expand Down
4 changes: 4 additions & 0 deletions core/shark_turbine/dynamo/passes.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@
torch.ops.aten._scaled_dot_product_flash_attention.default,
]

if hasattr(torch.ops.aten, "_scaled_dot_product_flash_attention_for_cpu"):
DEFAULT_DECOMPOSITIONS.append(
torch.ops.aten._scaled_dot_product_flash_attention_for_cpu
)

def apply_decompositions(
gm: torch.fx.GraphModule,
Expand Down
Loading
Loading