Skip to content

A curated collection of Generative AI tools and experiments, including all code, demos, and resources from my GenAI YouTube series.

Notifications You must be signed in to change notification settings

thejunghare/genai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This script loads a pretrained GPT-2 language model using KerasHub, applies a preprocessing pipeline, and performs text generation. It sets TensorFlow as the Keras backend and enables mixed-precision for faster inference. After loading the GPT-2 causal language model, it generates a continuation for the given input prompt and prints both the model output and the total time taken.

About

A curated collection of Generative AI tools and experiments, including all code, demos, and resources from my GenAI YouTube series.

Topics

Resources

Stars

Watchers

Forks