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

ai-mitra
/
llm-router

Text Classification
Joblib
sentence-transformers
English
scikit-learn
llm-routing
task-classification
Model card Files Files and versions
xet
Community

Instructions to use ai-mitra/llm-router with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use ai-mitra/llm-router with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("ai-mitra/llm-router")
    
    sentences = [
        "The weather is lovely today.",
        "It's so sunny outside!",
        "He drove to the stadium."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [3, 3]
  • Notebooks
  • Google Colab
  • Kaggle
llm-router
19.9 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 8 commits
ai-mitra's picture
ai-mitra
Upload config.yaml with huggingface_hub
037a991 verified about 2 months ago
  • .gitattributes
    1.52 kB
    initial commit about 2 months ago
  • README.md
    3.79 kB
    Upload README.md with huggingface_hub about 2 months ago
  • classifier.joblib

    Detected Pickle imports (4)

    • "numpy.dtype",
    • "sklearn.linear_model._logistic.LogisticRegression",
    • "numpy.ndarray",
    • "joblib.numpy_pickle.NumpyArrayWrapper"

    How to fix it?

    9.3 kB
    xet
    Upload classifier.joblib with huggingface_hub about 2 months ago
  • config.yaml
    814 Bytes
    Upload config.yaml with huggingface_hub about 2 months ago
  • label_mapping.json
    95 Bytes
    Upload label_mapping.json with huggingface_hub about 2 months ago
  • metadata.json
    3.78 kB
    Upload metadata.json with huggingface_hub about 2 months ago
  • training_config.json
    572 Bytes
    Upload training_config.json with huggingface_hub about 2 months ago