[Bug]: test/test_mlx/test_mlx_format.py failed on Mac OS
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
- Domain
- machine-learning, testing-qa
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
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
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from intel/auto-round
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
intel/auto-round#2525 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 44/100
intel/auto-round#2532 ·
Maintainers usually reply within 1 day
-
[Bug]: FP8 static KV cache accuracy issuePossibly taken @xin3he claimed this 7 days ago. Openbug
intel/auto-round#2518 · 1 reaction · 1 assignee ·
Maintainers usually reply within 1 day
-
[Feature]: split special_model_handler to a folderPossibly taken @Cross2pro claimed this 3 days ago. Openenhancement
Difficulty 3/5 Half a day Newbie friendliness 42/100
intel/auto-round#2514 · 2 comments ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 20/100
intel/auto-round#2507 ·
Maintainers usually reply within 1 day
All issues in intel/auto-round
Similar issues
-
[oblt-aw][autodoc] Update docs for security org scaffolding and Docs AI menu permission changesPossibly taken @github-actions claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
external integration integration-submission
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
langchain-ai/docs#7077 ·
Maintainers usually reply within 1 day
-
author-page correction
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
acl-org/acl-anthology#10623 · 1 comment ·
Maintainers usually reply within 1 day
-
Use context to recognize personal initials and lowercase namesPossibly taken @lipikaramaswamy claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
NVIDIA-NeMo/Anonymizer#340 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
btclib-org/btclib-node#2083 ·
Maintainers usually reply within 1 day