How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="surajp/gpt2-hindi")
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("surajp/gpt2-hindi")
model = AutoModelForCausalLM.from_pretrained("surajp/gpt2-hindi", device_map="auto")
Quick Links

No model card

Downloads last month
1,199
Safetensors
Model size
88.2M params
Tensor type
F32
Β·
U8
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Space using surajp/gpt2-hindi 1