Introduce New Lookup-Table(LUT)-Based Matrix Multiplication Method #967
Annotations
10 errors and 1 warning
Type-check with Pyright:
convert_hf_to_gguf.py#L286
Import "t_mac.model_utils" could not be resolved (reportMissingImports)
|
Type-check with Pyright:
convert_hf_to_gguf.py#L298
Argument of type "str" cannot be assigned to parameter "indices" of type "SupportsIndex | _bool | _int | slice | ellipsis | Tensor | _NestedSequence[_bool | _int | slice | ellipsis | Tensor | None] | tuple[SupportsIndex | _bool | _int | slice | ellipsis | Tensor | _NestedSequence[_bool | _int | slice | ellipsis | Tensor | None] | None, ...] | None" in function "__setitem__"
Type "str" is not assignable to type "SupportsIndex | _bool | _int | slice | ellipsis | Tensor | _NestedSequence[_bool | _int | slice | ellipsis | Tensor | None] | tuple[SupportsIndex | _bool | _int | slice | ellipsis | Tensor | _NestedSequence[_bool | _int | slice | ellipsis | Tensor | None] | None, ...] | None"
"str" is incompatible with protocol "SupportsIndex"
"__index__" is not present
"str" is not assignable to "None"
"str" is not assignable to "bool"
"str" is not assignable to "int"
"str" is not assignable to "slice"
"str" is not assignable to "ellipsis" (reportArgumentType)
|
Type-check with Pyright:
convert_hf_to_gguf.py#L298
Argument of type "dict[Any, Any]" cannot be assigned to parameter "default" of type "Tensor" in function "setdefault" (reportArgumentType)
|
Type-check with Pyright:
convert_hf_to_gguf.py#L302
Argument of type "Literal['.qweight']" cannot be assigned to parameter "indices" of type "SupportsIndex | _bool | _int | slice | ellipsis | Tensor | _NestedSequence[_bool | _int | slice | ellipsis | Tensor | None] | tuple[SupportsIndex | _bool | _int | slice | ellipsis | Tensor | _NestedSequence[_bool | _int | slice | ellipsis | Tensor | None] | None, ...] | None" in function "__getitem__"
Type "Literal['.qweight']" is not assignable to type "SupportsIndex | _bool | _int | slice | ellipsis | Tensor | _NestedSequence[_bool | _int | slice | ellipsis | Tensor | None] | tuple[SupportsIndex | _bool | _int | slice | ellipsis | Tensor | _NestedSequence[_bool | _int | slice | ellipsis | Tensor | None] | None, ...] | None"
"Literal['.qweight']" is incompatible with protocol "SupportsIndex"
"__index__" is not present
"Literal['.qweight']" is not assignable to "None"
"Literal['.qweight']" is not assignable to "bool"
"Literal['.qweight']" is not assignable to "int"
"Literal['.qweight']" is not assignable to "slice"
"Literal['.qweight']" is not assignable to "ellipsis" (reportArgumentType)
|
Type-check with Pyright:
convert_hf_to_gguf.py#L303
Argument of type "Literal['.scales']" cannot be assigned to parameter "indices" of type "SupportsIndex | _bool | _int | slice | ellipsis | Tensor | _NestedSequence[_bool | _int | slice | ellipsis | Tensor | None] | tuple[SupportsIndex | _bool | _int | slice | ellipsis | Tensor | _NestedSequence[_bool | _int | slice | ellipsis | Tensor | None] | None, ...] | None" in function "__getitem__"
Type "Literal['.scales']" is not assignable to type "SupportsIndex | _bool | _int | slice | ellipsis | Tensor | _NestedSequence[_bool | _int | slice | ellipsis | Tensor | None] | tuple[SupportsIndex | _bool | _int | slice | ellipsis | Tensor | _NestedSequence[_bool | _int | slice | ellipsis | Tensor | None] | None, ...] | None"
"Literal['.scales']" is incompatible with protocol "SupportsIndex"
"__index__" is not present
"Literal['.scales']" is not assignable to "None"
"Literal['.scales']" is not assignable to "bool"
"Literal['.scales']" is not assignable to "int"
"Literal['.scales']" is not assignable to "slice"
"Literal['.scales']" is not assignable to "ellipsis" (reportArgumentType)
|
Type-check with Pyright:
convert_hf_to_gguf.py#L304
Argument of type "Literal['.qzeros']" cannot be assigned to parameter "indices" of type "SupportsIndex | _bool | _int | slice | ellipsis | Tensor | _NestedSequence[_bool | _int | slice | ellipsis | Tensor | None] | tuple[SupportsIndex | _bool | _int | slice | ellipsis | Tensor | _NestedSequence[_bool | _int | slice | ellipsis | Tensor | None] | None, ...] | None" in function "__getitem__"
Type "Literal['.qzeros']" is not assignable to type "SupportsIndex | _bool | _int | slice | ellipsis | Tensor | _NestedSequence[_bool | _int | slice | ellipsis | Tensor | None] | tuple[SupportsIndex | _bool | _int | slice | ellipsis | Tensor | _NestedSequence[_bool | _int | slice | ellipsis | Tensor | None] | None, ...] | None"
"Literal['.qzeros']" is incompatible with protocol "SupportsIndex"
"__index__" is not present
"Literal['.qzeros']" is not assignable to "None"
"Literal['.qzeros']" is not assignable to "bool"
"Literal['.qzeros']" is not assignable to "int"
"Literal['.qzeros']" is not assignable to "slice"
"Literal['.qzeros']" is not assignable to "ellipsis" (reportArgumentType)
|
Type-check with Pyright:
convert_hf_to_gguf.py#L306
Import "t_mac.model_utils" could not be resolved (reportMissingImports)
|
Type-check with Pyright:
convert_hf_to_gguf.py#L314
"__getitem__" method not defined on type "Iterable[tuple[str, Tensor]]" (reportIndexIssue)
|
Type-check with Pyright:
convert_hf_to_gguf.py#L315
"__getitem__" method not defined on type "Iterable[tuple[str, Tensor]]" (reportIndexIssue)
|
Type-check with Pyright:
convert_hf_to_gguf.py#L316
"__getitem__" method not defined on type "Iterable[tuple[str, Tensor]]" (reportIndexIssue)
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading