Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix ut
Signed-off-by: Kaihui-intel <[email protected]>
  • Loading branch information
Kaihui-intel committed Jul 17, 2024
commit a824ac4f3007e161ef9768a8bc06879fa008e1e4
2 changes: 1 addition & 1 deletion test/3x/torch/quantization/weight_only/test_gptq.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def test_layer_wise(self):
model = convert(model)
q_label = model(self.example_inputs)[0]

from neural_compressor.torch.utils import load_empty_model
from neural_compressor.torch import load_empty_model

model = load_empty_model("hf-internal-testing/tiny-random-GPTJForCausalLM")

Expand Down
2 changes: 1 addition & 1 deletion test/3x/torch/quantization/weight_only/test_rtn.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def test_quant_lm_head(self):
), "The tied lm_head weight is not deep copied, please check!"

def test_layer_wise(self):
from neural_compressor.torch.utils import load_empty_model
from neural_compressor.torch import load_empty_model

model = load_empty_model("hf-internal-testing/tiny-random-GPTJForCausalLM")
quant_config = RTNConfig(
Expand Down