Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

Y-Research-Group
/
CSR-NV_Embed_v2-Classification-MTOPIntent

Text Classification
sentence-transformers
Safetensors
Transformers
English
nvembed
feature-extraction
mteb
text
text-embeddings-inference
sparse-encoder
sparse
csr
custom_code
Eval Results (legacy)
Model card Files Files and versions
xet
Community

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
CSR-NV_Embed_v2-Classification-MTOPIntent
16 GB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 5 commits
W1nd-navigator's picture
W1nd-navigator
Update README.md
a757ebb verified about 1 year ago
  • 1_Pooling
    First commit over 1 year ago
  • 3_SparseAutoEncoder
    Sparse Encoder Update about 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    4.9 kB
    Update README.md about 1 year ago
  • config.json
    2.66 kB
    First commit over 1 year ago
  • config_sentence_transformers.json
    361 Bytes
    Sparse Encoder Update about 1 year ago
  • configuration_nvembed.py
    3.2 kB
    First commit over 1 year ago
  • instructions.json
    3.38 kB
    First commit over 1 year ago
  • model-00001-of-00004.safetensors
    5 GB
    xet
    First commit over 1 year ago
  • model-00002-of-00004.safetensors
    4.92 GB
    xet
    First commit over 1 year ago
  • model-00003-of-00004.safetensors
    5 GB
    xet
    First commit over 1 year ago
  • model-00004-of-00004.safetensors
    789 MB
    xet
    First commit over 1 year ago
  • model.safetensors.index.json
    28.2 kB
    First commit over 1 year ago
  • modeling_nvembed.py
    18.8 kB
    First commit over 1 year ago
  • modules.json
    500 Bytes
    Sparse Encoder Update about 1 year ago
  • sentence_bert_config.json
    55 Bytes
    First commit over 1 year ago
  • special_tokens_map.json
    551 Bytes
    First commit over 1 year ago
  • tokenizer.json
    1.8 MB
    First commit over 1 year ago
  • tokenizer.model
    493 kB
    xet
    First commit over 1 year ago
  • tokenizer_config.json
    997 Bytes
    First commit over 1 year ago