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

pipe = pipeline("feature-extraction", model="julien-c/distilbert-feature-extraction")
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("julien-c/distilbert-feature-extraction", device_map="auto")
Quick Links