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

naver
/
splade-code-06B

Feature Extraction
sentence-transformers
Safetensors
Transformers
qwen3
text-generation
splade
sparse-encoder
code
custom_code
text-embeddings-inference
Model card Files Files and versions
xet
Community
2

Instructions to use naver/splade-code-06B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use naver/splade-code-06B with sentence-transformers:

    from sentence_transformers import SparseEncoder
    
    model = SparseEncoder("naver/splade-code-06B", 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 naver/splade-code-06B with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("feature-extraction", model="naver/splade-code-06B", trust_remote_code=True)
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("naver/splade-code-06B", trust_remote_code=True)
    model = AutoModelForCausalLM.from_pretrained("naver/splade-code-06B", trust_remote_code=True, device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
splade-code-06B
1.19 GB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 7 commits
maxoul's picture
maxoul
Upload model.safetensors
fd14abc verified 8 months ago
  • .gitattributes
    1.52 kB
    initial commit 8 months ago
  • README.md
    36 Bytes
    initial commit 8 months ago
  • config.json
    455 Bytes
    Create config.json 8 months ago
  • generation_config.json
    213 Bytes
    Create generation_config.json 8 months ago
  • model.safetensors
    1.19 GB
    xet
    Upload model.safetensors 8 months ago
  • modeling_qwen3_bidir.py
    41.6 kB
    Create modeling_qwen3_bidir.py 8 months ago
  • splade.py
    3.4 kB
    Create splade.py 8 months ago
  • utils.py
    4.65 kB
    Create utils.py 8 months ago