Skip to content

Commit

Permalink
rename llama.cpp test as cpu
Browse files Browse the repository at this point in the history
  • Loading branch information
baptistecolle committed Jul 25, 2024
1 parent d010916 commit 0c45ae6
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_cli_misc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ jobs:
pip install -e .[testing]
- name: Run tests
run: pytest -s -k "cli and not (cpu or cuda or mps)"
run: pytest -s -k "cli and not (cpu or cuda)"
2 changes: 1 addition & 1 deletion optimum_benchmark/task_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def infer_library_from_model_name_or_path(model_name_or_path: str, revision: Opt
model_info = huggingface_hub.model_info(model_name_or_path, revision=revision)
inferred_library_name = getattr(model_info, "library_name", None)

if "gguf" in model_info.tags:
if inferred_library_name is None and "gguf" in model_info.tags:
inferred_library_name = "llama_cpp"

if inferred_library_name == "sentence-transformers":
Expand Down

0 comments on commit 0c45ae6

Please sign in to comment.