commit from zxy 29b59cb
zhuxingyu01 commited on
How to use zxy1231/tm_simcse_multi_model with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("feature-extraction", model="zxy1231/tm_simcse_multi_model") # Load model directly
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("zxy1231/tm_simcse_multi_model")
model = AutoModel.from_pretrained("zxy1231/tm_simcse_multi_model")