Skip to content

buggy code in src/utils/prompt_generator.py:121 #2

@jasdentzky

Description

@jasdentzky

82b95198-8058-43e4-9480-bd440c5ea449

the element of label_ids = [f["labels"] for f in features] comes in different length, it cannot be converted to np.array and therefore raising the *** ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (555,) + inhomogeneous part.

command to run: env CUDA_VISIBLE_DEVICE=0 bash scripts/infer_LLM_with_template.sh kaggledbqa $MY_API_KEY

I assume you want to replace every single numerics in the List[List[int]] to 0 is that right?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions