Update README.md e8ad8cf
Hanna Abi Akl commited on
How to use yseop/distilbert-base-financial-relation-extraction with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="yseop/distilbert-base-financial-relation-extraction", device_map="auto") # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("yseop/distilbert-base-financial-relation-extraction", dtype="auto", device_map="auto")