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="hf-internal-testing/tiny-xlm-roberta")
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("hf-internal-testing/tiny-xlm-roberta")
model = AutoModelForCausalLM.from_pretrained("hf-internal-testing/tiny-xlm-roberta")
Quick Links

This is a tiny random {mname_tiny} model to be used for basic testing

Downloads last month
67,822
Safetensors
Model size
2.16M params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Space using hf-internal-testing/tiny-xlm-roberta 1