Skip to content
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

Merged
merged 48 commits into from
Aug 5, 2024
Merged

support autoawq format #115

merged 48 commits into from
Aug 5, 2024

Conversation

yintong-lu
Copy link
Contributor

No description provided.

yintong-lu and others added 17 commits May 21, 2024 03:10
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>
@yintong-lu yintong-lu requested a review from wenhuach21 May 24, 2024 03:56
auto_round/utils.py Outdated Show resolved Hide resolved
@wenhuach21
Copy link
Contributor

wenhuach21 commented May 24, 2024

don't forget to test the pr in an env without awq lib, all the other functions should be fine

yintong-lu and others added 4 commits May 24, 2024 02:08
Signed-off-by: yintong-lu <yintong.lu@intel.com>
Signed-off-by: yintong-lu <yintong.lu@intel.com>
auto_round/autoround.py Outdated Show resolved Hide resolved
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>
yintong-lu and others added 4 commits June 25, 2024 15:11
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>
yintong-lu and others added 8 commits June 27, 2024 21:47
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>
requirements.txt Outdated Show resolved Hide resolved
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>
@yintong-lu yintong-lu requested a review from wenhuach21 July 30, 2024 01:18
# 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
Copy link
Contributor

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)
Copy link
Contributor

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

Copy link
Contributor Author

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.

Copy link
Contributor

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.

@wenhuach21 wenhuach21 self-requested a review July 30, 2024 01:28
else:
qlayer.pack(layer, scale, zero, None)
qlayer.to(device)
else: # pragma: no cover
Copy link
Contributor

@wenhuach21 wenhuach21 Jul 30, 2024

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>
@wenhuach21
Copy link
Contributor

Please wait to merge until version 0.3 is released.

@wenhuach21 wenhuach21 merged commit b08b967 into main Aug 5, 2024
8 of 10 checks passed
@wenhuach21 wenhuach21 deleted the lyt/autoawq branch August 5, 2024 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants