Duplicated from saheedniyi/YarnGPT2
How to use ghananlpcommunity/YarnGPT2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="ghananlpcommunity/YarnGPT2")
# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ghananlpcommunity/YarnGPT2") model = AutoModelForCausalLM.from_pretrained("ghananlpcommunity/YarnGPT2")
The community tab is the place to discuss and collaborate with the HF community!