Skip to content

Commit

Permalink
try to find segfaulting test
Browse files Browse the repository at this point in the history
  • Loading branch information
t-vi committed Sep 13, 2024
1 parent 671ba25 commit 4ef2617
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,14 @@ def test_generate_token_ids(mock_llm):
assert output_ids.shape[0] > len(prompt)


@pytest.mark.skipif(sys.platform == "darwin", reason="segfaults on macos-14")
def test_calculate_number_of_devices():
assert calculate_number_of_devices(1) == 1
assert calculate_number_of_devices([0, 1, 2]) == 3
assert calculate_number_of_devices(None) == 0


@pytest.mark.skipif(sys.platform == "darwin", reason="segfaults on macos-14")
#@pytest.mark.skipif(sys.platform == "darwin", reason="segfaults on macos-14")
def test_llm_load_random_init(tmp_path):
download_from_hub(repo_id="EleutherAI/pythia-14m", tokenizer_only=True, checkpoint_dir=tmp_path)

Expand Down

0 comments on commit 4ef2617

Please sign in to comment.