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

Fix some bugs in inference engine tests #1682

Merged
merged 15 commits into from
Mar 18, 2025
Merged

Fix some bugs in inference engine tests #1682

merged 15 commits into from
Mar 18, 2025

Conversation

elronbandel
Copy link
Member

No description provided.

if data_classification_policy is not None:
args["default_data_classification_policy"] = data_classification_policy

card = TaskCard(loader=LoadFromDictionary(**args), task=task)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not :

card = TaskCard(loader=LoadFromDictionary(data=data), task=task, data_classification_policy=data_classification_policy) ?

"source" in instance
and isinstance(instance["source"], str)
and (
instance["source"].startswith('[{"role":')
Copy link
Member

@yoavkatz yoavkatz Mar 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems very risky, a minor added space, will cause the code to fail. Need to consider alternatives.

elronbandel and others added 5 commits March 18, 2025 12:27
Signed-off-by: elronbandel <[email protected]>
Signed-off-by: elronbandel <[email protected]>
1. Use local inference engine on CPU when test inference engine, for reproducability.
2. In cache maechanisim, don't assum that infer on empty list yields empty list.

Signed-off-by: Elad Venezian <[email protected]>
@elronbandel elronbandel merged commit a3e37ac into main Mar 18, 2025
19 checks passed
@elronbandel elronbandel deleted the fix-inference-tests branch March 18, 2025 18:26
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.

3 participants