don't skip gguf test if ggml is not installed (#14086)

* don't skip gguf test if ggml is not installed

should just let it fail

* fix
This commit is contained in:
chenyu
2026-01-09 12:05:58 -05:00
committed by GitHub
parent cff33c8d78
commit ed295e74dc
2 changed files with 3 additions and 7 deletions

View File

@@ -69,7 +69,7 @@ testing_minimal = [
"hypothesis>=6.148.9",
"z3-solver",
]
testing_unit = ["tinygrad[testing_minimal]", "tqdm", "safetensors", "tabulate", "openai"]
testing_unit = ["tinygrad[testing_minimal]", "tqdm", "safetensors", "tabulate", "openai", "ggml-python"]
testing = [
"tinygrad[testing_unit]",
"pillow",
@@ -87,7 +87,6 @@ testing = [
"networkx",
"nibabel",
"bottle",
"ggml-python",
"capstone",
"pycocotools",
"boto3",

View File

@@ -1,12 +1,9 @@
import os, unittest, ctypes
from tinygrad import dtypes, Tensor, fetch, Device
import numpy as np
from tinygrad.nn.state import ggml_data_to_tensor, gguf_load
from tinygrad.device import is_dtype_supported
try:
import ggml
except ModuleNotFoundError:
raise unittest.SkipTest("ggml not installed, skipping gguf test")
import numpy as np
import ggml
ggml_test_block_count = 4
ggml_type_to_np_dtype = {