Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a41d866

Browse filesBrowse files
committed
test: skip if insufficient resources on macOS
1 parent e9fa51e commit a41d866
Copy full SHA for a41d866

File tree

Expand file treeCollapse file tree

1 file changed

+5
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-0
lines changed

‎tests/test_llama_chat_format.py

Copy file name to clipboardExpand all lines: tests/test_llama_chat_format.py
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import json
22
import os
3+
import platform
34
from collections.abc import Iterator
45
from typing import cast
56

@@ -155,6 +156,10 @@ def is_accelerator_available() -> bool:
155156
),
156157
],
157158
)
159+
@pytest.mark.skipif(
160+
platform.system() == "Darwin" and (os.cpu_count() or 1) < 8,
161+
reason="Insufficient resources on macOS",
162+
)
158163
def test_llama_cpp_python_tool_use(
159164
llm_repo_id: str,
160165
user_prompt_expected_tool_calls: tuple[str, int],

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.