---
id: pr-pytorch-149386
repo: pytorch/pytorch
pr: 149386
title: Add AOTI shim for _weight_int4pack_mm_cpu_tensor (#149031)
author: Xia-Weiwen
date: '2025-03-20'
url: https://github.com/pytorch/pytorch/pull/149386
source_category: upstream-code
architectures:
- sm100
tags:
- quantization
techniques: []
hardware_features: []
kernel_types:
- quantization
languages:
- python
captured_at: '2026-04-17'
status: merged
merge_sha: b23bfae9f7e3e3c79a44296febde1d5e6fd24b3f
inclusion_reason: kernel file changes
changed_paths:
- test/inductor/test_cpu_cpp_wrapper.py
- test/inductor/test_mkldnn_pattern_matcher.py
- torch/_inductor/mkldnn_ir.py
- torch/_inductor/quantized_lowerings.py
- torch/csrc/inductor/aoti_torch/c/shim_mkldnn.h
- torch/csrc/inductor/aoti_torch/shim_mkldnn.cpp
head_ref_oid: 61d190347924962e76715614a488cd1378dd176c
artifact_dir: evidence/pull-bundles/pytorch/gh-149386
---
# Add AOTI shim for _weight_int4pack_mm_cpu_tensor (#149031)

- Repository: `pytorch/pytorch`
- PR: [149386](https://github.com/pytorch/pytorch/pull/149386)
- Decision: `kernel file changes`
- Reason: kernel file changes

## Changed Paths

- `test/inductor/test_cpu_cpp_wrapper.py`
- `test/inductor/test_mkldnn_pattern_matcher.py`
- `torch/_inductor/mkldnn_ir.py`
- `torch/_inductor/quantized_lowerings.py`
- `torch/csrc/inductor/aoti_torch/c/shim_mkldnn.h`
- `torch/csrc/inductor/aoti_torch/shim_mkldnn.cpp`

## Evidence Bundle

`evidence/pull-bundles/pytorch/gh-149386`
