9 lines
792 B
Markdown
Raw Normal View History

2024-05-25 10:44:12 -05:00
# Alternative Approaches to Loading Pretrained Weights
2024-05-17 10:44:18 +02:00
This folder contains alternative weight loading strategies in case the weights become unavailable from OpenAI.
- [weight-loading-pytorch.ipynb](weight-loading-pytorch.ipynb): (Recommended) contains code to load the weights from PyTorch state dicts that I created by converting the original TensorFlow weights
2024-05-17 10:44:18 +02:00
- [weight-loading-hf-transformers.ipynb](weight-loading-hf-transformers.ipynb): contains code to load the weights from the Hugging Face Model Hub via the `transformers` library
- [weight-loading-hf-safetensors.ipynb](weight-loading-hf-safetensors.ipynb): contains code to load the weights from the Hugging Face Model Hub via the `safetensors` library directly (skipping the instantiation of a Hugging Face transformer model)