How to use hf-tiny-model-private/tiny-random-MegaForTokenClassification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="hf-tiny-model-private/tiny-random-MegaForTokenClassification")
# Load model directly from transformers import AutoModelForTokenClassification model = AutoModelForTokenClassification.from_pretrained("hf-tiny-model-private/tiny-random-MegaForTokenClassification", dtype="auto")