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
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

unsloth
/
Qwen3-Embedding-4B

Feature Extraction
sentence-transformers
Safetensors
Transformers
qwen3
text-generation
sentence-similarity
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use unsloth/Qwen3-Embedding-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use unsloth/Qwen3-Embedding-4B with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("unsloth/Qwen3-Embedding-4B")
    
    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]
  • Transformers

    How to use unsloth/Qwen3-Embedding-4B with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("feature-extraction", model="unsloth/Qwen3-Embedding-4B")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("unsloth/Qwen3-Embedding-4B")
    model = AutoModelForCausalLM.from_pretrained("unsloth/Qwen3-Embedding-4B")
  • Notebooks
  • Google Colab
  • Kaggle
Qwen3-Embedding-4B
8.06 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
danielhanchen's picture
danielhanchen
Upload folder using huggingface_hub
8edd3dd verified 4 months ago
  • 1_Pooling
    Upload folder using huggingface_hub 4 months ago
  • .gitattributes
    1.57 kB
    Upload folder using huggingface_hub 4 months ago
  • README.md
    17.3 kB
    Upload folder using huggingface_hub 4 months ago
  • config.json
    727 Bytes
    Upload folder using huggingface_hub 4 months ago
  • config_sentence_transformers.json
    215 Bytes
    Upload folder using huggingface_hub 4 months ago
  • generation_config.json
    117 Bytes
    Upload folder using huggingface_hub 4 months ago
  • merges.txt
    1.67 MB
    Upload folder using huggingface_hub 4 months ago
  • model-00001-of-00002.safetensors
    4.97 GB
    xet
    Upload folder using huggingface_hub 4 months ago
  • model-00002-of-00002.safetensors
    3.08 GB
    xet
    Upload folder using huggingface_hub 4 months ago
  • model.safetensors.index.json
    30.4 kB
    Upload folder using huggingface_hub 4 months ago
  • modules.json
    349 Bytes
    Upload folder using huggingface_hub 4 months ago
  • tokenizer.json
    11.4 MB
    xet
    Upload folder using huggingface_hub 4 months ago
  • tokenizer_config.json
    7.26 kB
    Upload folder using huggingface_hub 4 months ago
  • vocab.json
    2.78 MB
    Upload folder using huggingface_hub 4 months ago