This pruned model should perform similarly to the original model for Portuguese language tasks with a much smaller
memory footprint. However, it may not perform well for other languages present in the original multilingual model as tokens not
commonly used in Portuguese were removed from the original multilingual model's vocabulary.
Usage
You can use this model with the Transformers library:
from transformers import AutoModel, AutoTokenizer
model_name = "cnmoro/portuguese-multilingual-e5-small"
model = AutoModel.from_pretrained(model_name, trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True, use_fast=True)
Or with the sentence-transformers library:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("cnmoro/portuguese-multilingual-e5-small")
portuguese-multilingual-e5-small huggingface.co is an AI model on huggingface.co that provides portuguese-multilingual-e5-small's model effect (), which can be used instantly with this cnmoro portuguese-multilingual-e5-small model. huggingface.co supports a free trial of the portuguese-multilingual-e5-small model, and also provides paid use of the portuguese-multilingual-e5-small. Support call portuguese-multilingual-e5-small model through api, including Node.js, Python, http.
portuguese-multilingual-e5-small huggingface.co is an online trial and call api platform, which integrates portuguese-multilingual-e5-small's modeling effects, including api services, and provides a free online trial of portuguese-multilingual-e5-small, you can try portuguese-multilingual-e5-small online for free by clicking the link below.
cnmoro portuguese-multilingual-e5-small online free url in huggingface.co:
portuguese-multilingual-e5-small is an open source model from GitHub that offers a free installation service, and any user can find portuguese-multilingual-e5-small on GitHub to install. At the same time, huggingface.co provides the effect of portuguese-multilingual-e5-small install, users can directly use portuguese-multilingual-e5-small installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
portuguese-multilingual-e5-small install url in huggingface.co: