legacy-datasets/common_voice
Updated • 1.53k • 147
How to use flax-community/wav2vec2-base-persian with Transformers:
# Load model directly
from transformers import AutoProcessor, AutoModelForPreTraining
processor = AutoProcessor.from_pretrained("flax-community/wav2vec2-base-persian")
model = AutoModelForPreTraining.from_pretrained("flax-community/wav2vec2-base-persian", device_map="auto")This is part of the Flax/Jax Community Week, organized by HuggingFace and TPU usage sponsored by Google.