Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[Bug]: test/test_mlx/test_mlx_format.py failed on Mac OS

Open
#1,955 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

Start with test/test_mlx/test_mlx_format.py, especially TestMLXFormat.test_mlx_native_export_bits and the _quantize_and_save call. Run this test on macOS and inspect why the MLX export does not create config.json in the temporary output directory. Done means the failing native export test passes on macOS; the issue asks for the fix on PR 1952.

Written by the indexing model from the issue text.

Description

bug
Problem Description

test/test_mlx/test_mlx_format.py failed on Mac OS
https://github.com/intel/auto-round/actions/runs/28158683624/job/83393445527?pr=1952#step:6:1086

Reproduction Steps

Run this test case on Mac OS.

Environment Information

No response

Error Logs
=================================== FAILURES ===================================
______________ TestMLXFormat.test_mlx_native_export_bits[2-W2A16] ______________

self = <test.test_mlx.test_mlx_format.TestMLXFormat object at 0x11685a8d0>
bits = 2, scheme = 'W2A16'

    @pytest.mark.parametrize(
        "bits, scheme",
        [
            (2, "W2A16"),
            (3, "W3A16"),
            (4, "W4A16"),
            (5, "W5A16"),
            (6, "W6A16"),
            (8, "W8A16"),
        ],
    )
    def test_mlx_native_export_bits(self, bits, scheme):
        """Export Qwen3-0.6B as a native MLX checkpoint at 2/3/4/8 bits."""
        _quantize_and_save(
            output_dir=self.save_dir,
            scheme=scheme,
            bits=bits,
            fmt="mlx",
            sym=True,
            group_size=128,
        )
>       assert os.path.exists(os.path.join(self.save_dir, "config.json"))
E       AssertionError: assert False
E        +  where False = <function exists at 0x102e477e0>('/private/var/folders/bh/cdl3cft92_dbvg852_fp7y7w0000gn/T/pytest-of-runner/pytest-0/test_mlx_native_export_bits_2_0/mlx_saved/config.json')
E        +    where <function exists at 0x102e477e0> = <module 'posixpath' (frozen)>.exists
E        +      where <module 'posixpath' (frozen)> = os.path
E        +    and   '/private/var/folders/bh/cdl3cft92_dbvg852_fp7y7w0000gn/T/pytest-of-runner/pytest-0/test_mlx_native_export_bits_2_0/mlx_saved/config.json' = <function join at 0x102f14d60>('/private/var/folders/bh/cdl3cft92_dbvg852_fp7y7w0000gn/T/pytest-of-runner/pytest-0/test_mlx_native_export_bits_2_0/mlx_saved', 'config.json')
E        +      where <function join at 0x102f14d60> = <module 'posixpath' (frozen)>.join
E        +        where <module 'posixpath' (frozen)> = os.path
E        +      and   '/private/var/folders/bh/cdl3cft92_dbvg852_fp7y7w0000gn/T/pytest-of-runner/pytest-0/test_mlx_native_export_bits_2_0/mlx_saved' = <test.test_mlx.test_mlx_format.TestMLXFormat object at 0x11685a8d0>.save_dir

test/test_mlx/test_mlx_format.py:187: AssertionError
Additional Context

We'd have local Mac for test, so please fix directly on this PR, https://github.com/intel/auto-round/pull/1952. Test will be triggered on GHA free MacOS agent.

Dominant language
Python
Stars
1.7k
Forks
193
Avg merge
2d 4h
Merged PRs (30d)
50

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from intel/auto-round

All issues in intel/auto-round

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.