Skip to content

Error when running layers/test_layer.py #9

Description

@Yiningww

At line 44:

hidden_states, outputs = model.generate(**{'input_ids':inputs.input_ids, 'max_new_tokens':64})

There's an error: ValueError: not enough values to unpack (expected 2, got 1). I guess it means that model.generate( ) will only have one output, which is outputs, and can not get hidden_states. I'm wondering how to fix this issue. Thank you very much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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