oza75/bambara-texts
Viewer • Updated • 617k • 14 • 2
How to use oza75/bambara-gpt2-base with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("feature-extraction", model="oza75/bambara-gpt2-base") # Load model directly
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("oza75/bambara-gpt2-base")
model = AutoModel.from_pretrained("oza75/bambara-gpt2-base", device_map="auto")Base model
openai-community/gpt2