-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
Adding Tests for GGUFWriter Class #4311
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll have to reduce the amount of copy-pasting by using one or more shared functions for this to be mergeable. You could also consider testing more than one feature at a time, which provides less fine-grained failure information but has the same level of coverage.
The tests don't work. There's a warning:
And an error:
For several tests. |
I cannot reproduce the errors you got. Can you give me the steps to reproduce these errors? |
You must call write_header_to_file before write_kv_data_to_file. I know because I wrote those exceptions. The only reason I can think it would pass is if you are testing an old version of the gguf module - the latest is 0.6.0. |
The tests in this PR still don't work, please run |
I did this. I will uninstall/install gguf again and try it again. |
Description
This pull request adds comprehensive tests for the GGUFWriter class. Previously, there were no tests available for this class.
Changes Made
test_add_uint8
test_add_int8
test_add_uint16
test_write_tensors_to_file
test_add_description
test_add_uint32
test_add_float32
Purpose
The purpose of these tests is to ensure the reliability, correctness, and expected behavior of the GGUFWriter methods under different scenarios.
Benefits
Additional Notes