Skip to content

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

n1ck-guo
Copy link
Contributor

No description provided.

except ImportError:
return False

def is_new_version():
Copy link
Contributor

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

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

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

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

Copy link
Contributor Author

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

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