How to use tencent/Penguin-Encoder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="tencent/Penguin-Encoder", trust_remote_code=True)
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tencent/Penguin-Encoder", trust_remote_code=True, dtype="auto")
add bibtex citation
· Sign up or log in to comment