Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoly Myachev <[email protected]>
  • Loading branch information
anmyachev committed Sep 19, 2024
1 parent bbd64f3 commit 49fc392
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ def benchmark(Z, H, N_CTX, D_HEAD, provider):

elif provider == 'triton':
triton_fn = lambda: forward(q, k, v, causal, sm_scale)
# FIXME: use torch sdpa for result check after https://github.com/intel/intel-xpu-backend-for-triton/issues/2042 fixed
torch_fn = lambda: torch.nn.functional.scaled_dot_product_attention(
q, k, v, attn_mask=None, dropout_p=0.0, is_causal=False, scale=sm_scale).to(torch.float32)
atol = 1e-1 if N_CTX == 16384 else 1e-2
Expand Down
1 change: 0 additions & 1 deletion third_party/intel/backend/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,6 @@ def get_current_target(self):
device = self.get_current_device()
dev_property = torch.xpu.get_device_capability(device)
warp_size = 32
print(f"DEV_PROPERTY: {dev_property}")
return GPUTarget("xpu", dev_property, warp_size)

@staticmethod
Expand Down

0 comments on commit 49fc392

Please sign in to comment.