Skip to content

Support torch int4 #100

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Support torch int4 #100

wants to merge 1 commit into from

Conversation

justinchuby
Copy link
Member

No description provided.

Signed-off-by: Justin Chu <[email protected]>
Copy link

codecov bot commented Jun 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.50%. Comparing base (e211825) to head (d26130f).

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #100      +/-   ##
==========================================
- Coverage   74.52%   74.50%   -0.03%     
==========================================
  Files          38       38              
  Lines        4687     4687              
  Branches      957      957              
==========================================
- Hits         3493     3492       -1     
  Misses        841      841              
- Partials      353      354       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -72,6 +72,8 @@
torch.int32: ir.DataType.INT32,
torch.int64: ir.DataType.INT64,
torch.int8: ir.DataType.INT8,
torch.int4: ir.DataType.INT4,

Check failure

Code scanning / lintrunner

MYPY/attr-defined Error

Module has no attribute "int4" To disable, use # type: ignore[attr-defined]
@@ -72,6 +72,8 @@
torch.int32: ir.DataType.INT32,
torch.int64: ir.DataType.INT64,
torch.int8: ir.DataType.INT8,
torch.int4: ir.DataType.INT4,
torch.uint4: ir.DataType.UINT4,

Check failure

Code scanning / lintrunner

MYPY/attr-defined Error

Module has no attribute "uint4" To disable, use # type: ignore[attr-defined]
@@ -108,6 +110,8 @@
ir.DataType.INT32: torch.int32,
ir.DataType.INT64: torch.int64,
ir.DataType.INT8: torch.int8,
ir.DataType.INT4: torch.int4,

Check failure

Code scanning / lintrunner

MYPY/attr-defined Error

Module has no attribute "int4" To disable, use # type: ignore[attr-defined]
@@ -108,6 +110,8 @@
ir.DataType.INT32: torch.int32,
ir.DataType.INT64: torch.int64,
ir.DataType.INT8: torch.int8,
ir.DataType.INT4: torch.int4,
ir.DataType.UINT4: torch.uint4,

Check failure

Code scanning / lintrunner

MYPY/attr-defined Error

Module has no attribute "uint4" To disable, use # type: ignore[attr-defined]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant