-
Notifications
You must be signed in to change notification settings - Fork 52
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
Conversation
Signed-off-by: elronbandel <[email protected]>
Signed-off-by: elronbandel <[email protected]>
Signed-off-by: elronbandel <[email protected]>
Signed-off-by: elronbandel <[email protected]>
Signed-off-by: elronbandel <[email protected]>
Signed-off-by: elronbandel <[email protected]>
Signed-off-by: elronbandel <[email protected]>
Signed-off-by: elronbandel <[email protected]>
src/unitxt/api.py
Outdated
if data_classification_policy is not None: | ||
args["default_data_classification_policy"] = data_classification_policy | ||
|
||
card = TaskCard(loader=LoadFromDictionary(**args), task=task) |
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 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":') |
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.
This seems very risky, a minor added space, will cause the code to fail. Need to consider alternatives.
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]>
Signed-off-by: elronbandel <[email protected]>
Signed-off-by: elronbandel <[email protected]>
No description provided.