File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ $PIP_EXECUTABLE install -r requirements.txt --extra-index-url https://download.p
46
46
# NOTE: If a newly-fetched version of the executorch repo changes the value of
47
47
# NIGHTLY_VERSION, you should re-run this script to install the necessary
48
48
# package versions.
49
- NIGHTLY_VERSION=dev20240613
49
+ NIGHTLY_VERSION=dev20240624
50
50
51
51
# Uninstall triton, as nightly will depend on pytorch-triton, which is one and the same
52
52
$PIP_EXECUTABLE uninstall -y triton
Original file line number Diff line number Diff line change @@ -395,15 +395,9 @@ def _prepare_weight_and_scales_and_zeros(
395
395
weight_int32 , scales_and_zeros = group_quantize_tensor (
396
396
weight_bf16 , n_bit = 4 , groupsize = groupsize
397
397
)
398
- if weight_bf16 .device .type == "mps" :
399
- # There are still no MPS-accelerated conversion OP
400
- weight_int4pack = torch .ops .aten ._convert_weight_to_int4pack (
401
- weight_int32 .cpu (), inner_k_tiles
402
- ).to ("mps" )
403
- else :
404
- weight_int4pack = torch .ops .aten ._convert_weight_to_int4pack (
405
- weight_int32 , inner_k_tiles
406
- )
398
+ weight_int4pack = torch .ops .aten ._convert_weight_to_int4pack (
399
+ weight_int32 , inner_k_tiles
400
+ )
407
401
return weight_int4pack , scales_and_zeros
408
402
409
403
@classmethod
You can’t perform that action at this time.
0 commit comments