Skip to content

Question About Hidden Space Tokenization Decoding #4

Description

@Lingy12

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

I am trying to reproduce the token analysis of layers' hidden embedding. I have done the following:

  1. Install according to requirements.txt
  2. Replace the generation and models folder of transformers with the one in the repository

However, the output of the line is just the decoded token ids, no hidden_states (as normal generate).

May I ask is there any thing I am missing? 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