Skip to content

Version of Keras, KerasNLP and Torch: GPT text generation from scratch #1329

@hk92292831

Description

@hk92292831

Describe the bug

Unable to run the codes in a local computer: https://keras.io/examples/generative/text_generation_gpt/
To Reproduce

I installed the latest version (24 Nov 2023) of KerasNLP and Pytorch, and the code cannot run at all. Which legacy version of KeraNLP should I install instead?

  1. pip install keras-core keras-nlp
  2. conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia
    Expected behavior

Additional context

Would you like to help us fix it?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions