Skip to content
Merged
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
8 changes: 2 additions & 6 deletions tests/unit/torch/quantization/test_gptq.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@

import copy
import warnings
from functools import partial

import pytest
import torch
from _test_utils.torch.distributed.utils import spawn_multiprocess_job

import modelopt.torch.quantization as mtq
from modelopt.torch.quantization.utils import calib_utils
Expand Down Expand Up @@ -200,11 +198,9 @@ def _gptq_hessian_dp_sync_helper(rank, size, token_counts):
torch.testing.assert_close(helper.hessian, ref)


def test_gptq_hessian_dp_sync(skip_on_windows):
def test_gptq_hessian_dp_sync(cpu_dist_workers):
"""Token-weighted merge over a gloo (CPU) group, with one rank that saw no tokens."""
spawn_multiprocess_job(
2, partial(_gptq_hessian_dp_sync_helper, token_counts=(5, 0)), backend="gloo"
)
cpu_dist_workers.run(_gptq_hessian_dp_sync_helper, token_counts=(5, 0))


def test_a_calibration_run_forgets_earlier_forward_measurements(monkeypatch):
Expand Down
Loading