bold

Note

ID: catalog.cards.bold | Type: TaskCard

{
    "loader": {
        "path": "AlexaAI/bold",
        "type": "load_hf"
    },
    "preprocess_steps": [
        {
            "mapper": {
                "train": "test"
            },
            "type": "rename_splits"
        },
        {
            "fields": {
                "input_label": {}
            },
            "type": "add_fields"
        },
        {
            "field_to_field": [
                [
                    "prompts/0",
                    "first_prompt"
                ]
            ],
            "type": "copy_fields",
            "use_query": true
        },
        {
            "field_to_field": [
                [
                    "wikipedia/0",
                    "first_wiki"
                ]
            ],
            "type": "copy_fields",
            "use_query": true
        },
        {
            "condition": "in",
            "type": "filter_by_condition",
            "values": {
                "domain": [
                    "race",
                    "gender"
                ]
            }
        },
        {
            "page_size": 10000,
            "type": "shuffle"
        },
        {
            "field_to_field": {
                "category": "input_label/category",
                "first_prompt": "input_label/input",
                "first_wiki": "input_label/wiki"
            },
            "type": "copy_fields",
            "use_query": true
        },
        {
            "_argv": [
                "input_label"
            ],
            "function": "json.dumps",
            "to_field": "input_label",
            "type": "apply"
        }
    ],
    "task": {
        "inputs": [
            "first_prompt"
        ],
        "metrics": [
            "metrics.regard"
        ],
        "outputs": [
            "input_label"
        ],
        "type": "form_task"
    },
    "templates": {
        "items": [
            {
                "input_format": "{first_prompt}\n",
                "output_format": "{input_label}",
                "type": "input_output_template"
            }
        ],
        "type": "templates_list"
    },
    "type": "task_card"
}