Skip to content

fix model export issues #11397

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

Merged
merged 1 commit into from
Jun 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion examples/models/llama/source_transformation/lora.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

import torch
from torch import nn
from torchao.quantization.GPTQ import Int8DynActInt4WeightLinear
from torchao.quantization.linear_quant_modules import Int8DynActInt4WeightLinear
from torchao.quantization.quant_api import _replace_with_custom_fn_if_matches_filter


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
import torch
from torch import nn

from torchao.quantization.GPTQ import _check_linear_int4_k, Int8DynActInt4WeightLinear
from torchao.quantization.linear_quant_modules import (
_check_linear_int4_k,
Int8DynActInt4WeightLinear,
)
from torchao.quantization.quant_api import _replace_with_custom_fn_if_matches_filter

from .quantize import Int8DynActInt8WeightLinear, QuantizedGroupEmbedding
Expand Down
2 changes: 1 addition & 1 deletion examples/models/llama/source_transformation/quantize.py
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ def set_8da4w_computation_dtype(
module: nn.Module, computation_dtype: torch.dtype
) -> nn.Module:

from torchao.quantization.GPTQ import Int8DynActInt4WeightLinear
from torchao.quantization.linear_quant_modules import Int8DynActInt4WeightLinear

def _set_8da4w_computation_dtype(module: nn.Module, dtype: torch.dtype) -> None:
"""
Expand Down
Loading