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

consolidate the 2 "data_classification_policy" fields in the recipe #1040

Open
OfirArviv opened this issue Jul 22, 2024 · 0 comments
Open

consolidate the 2 "data_classification_policy" fields in the recipe #1040

OfirArviv opened this issue Jul 22, 2024 · 0 comments

Comments

@OfirArviv
Copy link
Collaborator

currently we pass data_classification_policy in 2 places in the recipe

As a field and in the task_data. We need to think if and how to consolidate them.

for example:

        target = {
            "metrics": ["metrics.accuracy"],
            "source": "<<SYS>>\nYou are a helpful, respectful and honest assistant....,
            "target": " C",
            "references": [" C"],
            "task_data": '{"topic": "testing",'
            ' "question": "what?",'
            ' "choices": ["yes", "not", "maybe"],'
            ' "answer": "maybe",'
            ' "options": [" A", " B", " C"],'
            ' "metadata": {"data_classification_policy": [], "template": "templates.qa.multiple_choice.with_topic.lm_eval_harness"}'
            "}",
            "group": "unitxt",
            "postprocessors": ["processors.first_character"],
            "data_classification_policy": [],
        }

@elronbandel please advise

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

No branches or pull requests

1 participant