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

XiaSheng
/
FreeChunk-jina

Transformers
Safetensors
sentence-transformers
English
xlm-roberta
embedding
rag
chunking
custom_code
Model card Files Files and versions
xet
Community

Instructions to use XiaSheng/FreeChunk-jina with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use XiaSheng/FreeChunk-jina with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("XiaSheng/FreeChunk-jina", trust_remote_code=True)
    model = AutoModel.from_pretrained("XiaSheng/FreeChunk-jina", trust_remote_code=True)
  • sentence-transformers

    How to use XiaSheng/FreeChunk-jina with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("XiaSheng/FreeChunk-jina", trust_remote_code=True)
    
    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
FreeChunk-jina / __pycache__
86.8 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
XiaSheng's picture
XiaSheng
Initial upload of FreeChunk model with custom code
336f84c verified 4 months ago
  • aggregator.cpython-312.pyc
    7.72 kB
    Initial upload of FreeChunk model with custom code 4 months ago
  • configuration.cpython-312.pyc
    7.24 kB
    Initial upload of FreeChunk model with custom code 4 months ago
  • encoder.cpython-312.pyc
    12.3 kB
    Initial upload of FreeChunk model with custom code 4 months ago
  • freechunker.cpython-312.pyc
    38.6 kB
    Initial upload of FreeChunk model with custom code 4 months ago
  • sentenizer.cpython-312.pyc
    10.9 kB
    Initial upload of FreeChunk model with custom code 4 months ago
  • utils.cpython-312.pyc
    10.1 kB
    Initial upload of FreeChunk model with custom code 4 months ago