Skip to content

Commit 1f7f3e9

Browse files
committed
compare_q.py: Fix/ignore anyprecision imports (Transformers version mismatch)
1 parent 6171f9a commit 1f7f3e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

eval/compare_q_anyprecision.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
from any_precision.modules.AnyPrecisionLinear import AnyPrecisionLinear
55
except ModuleNotFoundError:
66
pass
7+
except ImportError:
8+
pass
79

810
def get_tensors_size(tensors):
911
return 8 * sum(t.element_size() * t.numel() for t in tensors.values() if t is not None)

0 commit comments

Comments
 (0)