How to use ykilcher/totally-harmless-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="ykilcher/totally-harmless-model")
# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("ykilcher/totally-harmless-model") model = AutoModel.from_pretrained("ykilcher/totally-harmless-model")
· Sign up or log in to comment