Text Classification
sentence-transformers
Safetensors
Transformers
English
nvembed
feature-extraction
mteb
text
text-embeddings-inference
sparse-encoder
sparse
csr
custom_code
Eval Results (legacy)
Instructions to use Y-Research-Group/CSR-NV_Embed_v2-Classification-MTOPIntent with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Y-Research-Group/CSR-NV_Embed_v2-Classification-MTOPIntent with sentence-transformers:
from sentence_transformers import SparseEncoder model = SparseEncoder("Y-Research-Group/CSR-NV_Embed_v2-Classification-MTOPIntent", trust_remote_code=True) queries = ["Which planet is known as the Red Planet?"] documents = [ "Venus is often called Earth's twin because of its similar size and proximity.", "Mars, known for its reddish appearance, is often referred to as the Red Planet.", "Jupiter, the largest planet in our solar system, has a prominent red spot.", ] query_embeddings = model.encode_query(queries) document_embeddings = model.encode_document(documents) similarities = model.similarity(query_embeddings, document_embeddings) print(similarities) - Transformers
How to use Y-Research-Group/CSR-NV_Embed_v2-Classification-MTOPIntent with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Y-Research-Group/CSR-NV_Embed_v2-Classification-MTOPIntent", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Y-Research-Group/CSR-NV_Embed_v2-Classification-MTOPIntent", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download 3_SparseAutoEncoder/model.safetensors from Y-Research-Group/CSR-NV_Embed_v2-Classification-MTOPIntent: direct link, hf CLI and curl.
- Browser
- Download file 269 MB
-
https://huggingface.co/Y-Research-Group/CSR-NV_Embed_v2-Classification-MTOPIntent/resolve/main/3_SparseAutoEncoder/model.safetensors
- Command line
-
hf download hf://Y-Research-Group/CSR-NV_Embed_v2-Classification-MTOPIntent/3_SparseAutoEncoder/model.safetensors
-
curl -L -o model.safetensors https://huggingface.co/Y-Research-Group/CSR-NV_Embed_v2-Classification-MTOPIntent/resolve/main/3_SparseAutoEncoder/model.safetensors
269 MB
- Xet hash:
- 31c848dfffd1ff16a6f5a673327e6d48a0159ce079a2777c1805f133ca9c45d4
- Size of remote file:
- 269 MB
- SHA256:
- 453c948bc9b5a55bc6804e027c40789bbdb320cce602f46af24802accb69b921
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.