Skip to content
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
39db621
Update
manuelcandales Jan 31, 2026
0ed7c5c
Update
manuelcandales Jan 31, 2026
b4310cc
Update
manuelcandales Jan 31, 2026
94c823c
Update
manuelcandales Jan 31, 2026
31b6f45
Update
manuelcandales Feb 2, 2026
c68cc6b
Update
manuelcandales Feb 2, 2026
bd7192f
Update
manuelcandales Feb 2, 2026
bcc8bda
Update
manuelcandales Feb 2, 2026
f166c50
Update
manuelcandales Feb 2, 2026
0834659
Update
manuelcandales Feb 2, 2026
ed4dcee
Update
manuelcandales Feb 2, 2026
a058197
Update
manuelcandales Feb 2, 2026
7146282
Update
manuelcandales Feb 2, 2026
d3501af
Update
manuelcandales Feb 2, 2026
fe5be37
Update
manuelcandales Feb 2, 2026
a0e3469
Update
manuelcandales Feb 2, 2026
fcfa832
Update
manuelcandales Feb 2, 2026
2e50286
Update
manuelcandales Feb 2, 2026
0145613
Update
manuelcandales Feb 2, 2026
2e3254a
Update
manuelcandales Feb 3, 2026
c5a3c1a
Update
manuelcandales Feb 3, 2026
457428b
Update
manuelcandales Feb 3, 2026
fec15bc
Update
manuelcandales Feb 3, 2026
40ec415
Update
manuelcandales Feb 3, 2026
646b4b3
Update
manuelcandales Feb 5, 2026
3483dbf
Update
manuelcandales Feb 5, 2026
310b1b6
Update
manuelcandales Feb 5, 2026
6ad4556
Update
manuelcandales Feb 5, 2026
7e422e2
Update
manuelcandales Feb 5, 2026
1ae26f5
Update
manuelcandales Feb 5, 2026
11da547
Update
manuelcandales Feb 5, 2026
5ba588f
Update
manuelcandales Feb 5, 2026
0bfe7a5
Update
manuelcandales Feb 5, 2026
099bfd3
Update
manuelcandales Feb 5, 2026
7ee1d30
Update
manuelcandales Feb 5, 2026
b8f2f15
Update
manuelcandales Feb 5, 2026
5b0e27a
Update
manuelcandales Feb 5, 2026
b24150a
Update
manuelcandales Feb 5, 2026
f8022a9
Update
manuelcandales Feb 5, 2026
4edd311
Update
manuelcandales Feb 5, 2026
dfb85b1
Update
manuelcandales Feb 5, 2026
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
24 changes: 24 additions & 0 deletions backends/apple/metal/tests/test_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,30 @@ def forward(self, x: torch.Tensor):
}


# -------------------------------------------------------------------------
class LinearWithBiasInt4(nn.Module):
def __init__(self):
super().__init__()
self.linear = nn.Linear(128, 256, bias=True)

def forward(self, x: torch.Tensor):
return self.linear(x)


MODULE_REGISTRY["linear_bias_int4"] = {
"model_class": LinearWithBiasInt4,
"input_shapes": [(127, 128)],
"description": "Linear layer with bias and int4 quantization",
"qlinear": "fpa4w",
"qlinear_group_size": 32,
"compare_to_unquantized": False,
"atol_float32": 5e-2,
"rtol_float32": 5e-2,
"atol_bfloat16": 1e-1,
"rtol_bfloat16": 1e-1,
"skip": not TORCHAO_AVAILABLE,
}

# -------------------------------------------------------------------------
# Convolution Modules
# -------------------------------------------------------------------------
Expand Down
Loading