-
Notifications
You must be signed in to change notification settings - Fork 37
refact cuda ut to facilitate automation #559
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: n1ck-guo <[email protected]>
for more information, see https://pre-commit.ci
except ImportError: | ||
return False | ||
|
||
def is_new_version(): |
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.
refine the function name
These tests are skipped when auto-round<0.5.0. | ||
|
||
""" | ||
return unittest.skipUnless(is_new_version(), "test requires auto-round>=0.5.0")(test_case) |
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.
same issue
einops | ||
gptqmodel>=2.0 | ||
intel-extension-for-pytorch>=2.5 | ||
intel-extension-for-transformers |
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.
itrex requires <=torch 2.6
@@ -319,35 +328,6 @@ def test_load_gptq_model_3bits(self): | |||
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True) | |||
self.model_infer(model, tokenizer) | |||
|
|||
def test_autoround_asym(self): | |||
for bits in [2, 3, 4, 8]: | |||
model = AutoModelForCausalLM.from_pretrained(self.model_name, torch_dtype="auto", trust_remote_code=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.
why was this ut deleted
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.
Repeated with another ut, same name and same content
No description provided.