Skip to content

pplm with gpt-neo #39

Description

@AJamal27891

pert_logits, past, pert_all_hidden = model(last, past=pert_past)

I'm trying to implement gpt-neo with PPLM. however gpt-neo meeds upgarde transformers liberary to transfoermers>=4.5; where 'past' is replaced with past_key_values.
when I change past to past_key_values I got an error as following

TypeError: forward() got an unexpected keyword argument 'past'

any ideas how can I solve this ?

@dathath @julien-c

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions