-
Notifications
You must be signed in to change notification settings - Fork 29
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
support autoawq format #115
Conversation
for more information, see https://pre-commit.ci
Signed-off-by: yintong-lu <yintong.lu@intel.com>
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Signed-off-by: yintong-lu <yintong.lu@intel.com>
for more information, see https://pre-commit.ci
Signed-off-by: yintong-lu <yintong.lu@intel.com>
for more information, see https://pre-commit.ci
don't forget to test the pr in an env without awq lib, all the other functions should be fine |
Signed-off-by: yintong-lu <yintong.lu@intel.com>
for more information, see https://pre-commit.ci
Signed-off-by: yintong-lu <yintong.lu@intel.com>
for more information, see https://pre-commit.ci
Signed-off-by: yintong-lu <yintong.lu@intel.com>
Signed-off-by: yintong-lu <yintong.lu@intel.com>
Signed-off-by: yintong-lu <yintong.lu@intel.com>
Signed-off-by: yintong-lu <yintong.lu@intel.com>
Signed-off-by: yintong-lu <yintong.lu@intel.com>
Signed-off-by: yintong-lu <yintong.lu@intel.com>
Signed-off-by: yintong-lu <yintong.lu@intel.com>
Signed-off-by: yintong-lu <yintong.lu@intel.com>
Signed-off-by: yintong-lu <yintong.lu@intel.com>
Signed-off-by: yintong-lu <yintong.lu@intel.com>
Signed-off-by: yintong-lu <yintong.lu@intel.com>
Signed-off-by: yintong-lu <yintong.lu@intel.com>
Signed-off-by: yintong-lu <yintong.lu@intel.com>
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
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.
move all the license claims to the top of the file
@@ -150,5 +150,4 @@ def test_autoround_format(self): | |||
# inputs = tokenizer(text, return_tensors="pt").to(model.device) | |||
# print(tokenizer.decode(model.generate(**inputs, max_new_tokens=50)[0])) | |||
# shutil.rmtree("./saved", ignore_errors=True) |
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.
add unittest to export and run generation
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.
unittest would fail because autoawq is not on the required package list and an error would raise.
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.
add the ut and skip the test if awq has not been installed, we could test it locally and refine the ut system in the future.
else: | ||
qlayer.pack(layer, scale, zero, None) | ||
qlayer.to(device) | ||
else: # pragma: no cover |
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.
remove all the no cover claim, this is not a good way to handle code coverage issue. We could merge the pr even the code coverage is low as long as some important unit test has been added.
Signed-off-by: yintong-lu <yintong.lu@intel.com>
Please wait to merge until version 0.3 is released. |
No description provided.