Instructions to use vincentoh/gpt2-124m-redpjs with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use vincentoh/gpt2-124m-redpjs with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("vincentoh/gpt2-124m-redpjs", dtype="auto") - Notebooks
- Google Colab
- Kaggle
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
install
pip install torch numpy transformers datasets tiktoken wandb tqdm
Dependencies:
- pytorch
- numpy
transformersfor huggingface transformersdatasetsfor huggingface datasets (preprocess OpenWebText test and validation bin)tiktokenfor OpenAI's fast BPE codewandbfor optional loggingtqdmfor progress bars
quick start
Inference:
$ python inference.py
Thanks
Zero To Hero series. Specifically, the GPT video is popular if you have some prior language modeling context.
- Downloads last month
- 3
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support