-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Option to split during conversion #6942
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
874c341
72cbd4e
702a744
c33bdf3
b7c6120
14b3291
87a98a5
2dd7841
3ff27ef
6b5c375
09baf2f
240243e
140eb52
a9c7703
efead04
c8ecbc6
3e9430d
f6fd3ea
bb5ee02
5ad397d
ce7e698
706bd69
6a05183
3328b0a
1cbab22
2037eab
83e4a3f
13ffe22
6d3a256
1312e28
5f29d4a
0283fc1
dc5cf5f
e093dfb
9576965
c6ae1d6
2e70fa1
891b19c
02be0dd
f658e91
079dfe3
282e71f
666bb09
03cc9bc
97dd416
ff2dd7d
ba1be97
69d6e7a
0779f2f
a234bf8
49b9fbe
0471f67
5a96b8f
f7ecd99
9d7f694
0417104
70a6bc9
1e2d9cb
f7e7983
79bd2bf
7eea552
99f9a24
ad02c94
c1b1a29
4550826
efa0609
b843445
854bd64
05b183f
e9895d2
4e4e376
163712e
6e4182c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
christianazinn marked this conversation as resolved.
Show resolved
Hide resolved
|
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
It's better. Down to 6 errors. I might as well include them all here so that you know where to look (click to expand)Most of them can be fixed with $ pyright gguf-py/gguf/gguf_writer.py
./gguf-py/gguf/gguf_writer.py
./gguf-py/gguf/gguf_writer.py:123:24 - error: Argument of type "PathLike[str] | str | None" cannot be assigned to parameter "args" of type "StrPath" in function "__new__" (reportArgumentType)
./gguf-py/gguf/gguf_writer.py:165:28 - error: Argument of type "list[BufferedWriter] | None" cannot be assigned to parameter "obj" of type "Sized" in function "len"
Type "list[BufferedWriter] | None" is incompatible with type "Sized"
"None" is incompatible with protocol "Sized"
"__len__" is not present (reportArgumentType)
./gguf-py/gguf/gguf_writer.py:172:76 - error: Argument of type "list[BufferedWriter] | None" cannot be assigned to parameter "obj" of type "Sized" in function "len"
Type "list[BufferedWriter] | None" is incompatible with type "Sized"
"None" is incompatible with protocol "Sized"
"__len__" is not present (reportArgumentType)
./gguf-py/gguf/gguf_writer.py:183:20 - error: Argument of type "list[BufferedWriter] | None" cannot be assigned to parameter "obj" of type "Sized" in function "len"
Type "list[BufferedWriter] | None" is incompatible with type "Sized"
"None" is incompatible with protocol "Sized"
"__len__" is not present (reportArgumentType)
./gguf-py/gguf/gguf_writer.py:188:43 - error: Argument of type "list[BufferedWriter] | None" cannot be assigned to parameter "iter1" of type "Iterable[_T1@__new__]" in function "__new__"
Type "list[BufferedWriter] | None" is incompatible with type "Iterable[BufferedWriter]"
"None" is incompatible with protocol "Iterable[BufferedWriter]"
"__iter__" is not present (reportArgumentType)
./gguf-py/gguf/gguf_writer.py:412:48 - error: Argument of type "list[BufferedWriter]" cannot be assigned to parameter "fdst" of type "SupportsWrite[AnyStr@copyfileobj]" in function "copyfileobj"
"list[BufferedWriter]" is incompatible with protocol "SupportsWrite[bytes]"
"write" is not present (reportArgumentType)
6 errors, 0 warnings, 0 informations
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like the last one deals with
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I'm fine with that. It might still be possible to allow So I think preventing temp files when splitting like you did is the right choice. |
Uh oh!
There was an error while loading. Please reload this page.