Uses of Class
ai.beestream.jitnn.nn.models.GPT2
Packages that use GPT2
Package
Description
Complete models: ResNet, MobileNetV2, GPT-2, a Llama-style decoder, BERT, a VAE, DCGAN, U-Net and
character RNNs, and the embedding models word2vec, doc2vec and GloVe.
-
Uses of GPT2 in ai.beestream.jitnn.nn.models
Methods in ai.beestream.jitnn.nn.models that return GPT2Modifier and TypeMethodDescriptionGPT2.checkpointing(boolean on) Withon, training keeps no activations inside the blocks: each block runs again in the backward pass (Grad.checkpoint(Function, Tensor...)), for less memory and about a third more compute.static GPT2GPT2.fromHuggingFace(Path dir) GPT-2 from a Hugging Face model directory (gpt2,gpt2-medium, ... or a fine-tuned copy):config.jsonand safetensors weights, asGPT2ModelorGPT2LMHeadModelsave them.