Duplicated from Rocketknight1/tiny-random-gpt2-bfloat16
How to use exdysa/tiny-random-gpt2-bfloat16 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="exdysa/tiny-random-gpt2-bfloat16")
# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("exdysa/tiny-random-gpt2-bfloat16") model = AutoModel.from_pretrained("exdysa/tiny-random-gpt2-bfloat16")
The community tab is the place to discuss and collaborate with the HF community!