Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • 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

CheezOne
/
reranker-cjk-small

Text Ranking
sentence-transformers
ONNX
Safetensors
Transformers.js
modernbert
text-classification
reranker
cross-encoder
rerank
rag
retrieval
chinese
japanese
korean
distillation
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use CheezOne/reranker-cjk-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use CheezOne/reranker-cjk-small with sentence-transformers:

    from sentence_transformers import CrossEncoder
    
    model = CrossEncoder("CheezOne/reranker-cjk-small")
    
    query = "Which planet is known as the Red Planet?"
    passages = [
    	"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.",
    	"Saturn, famous for its rings, is sometimes mistaken for the Red Planet."
    ]
    
    scores = model.predict([(query, passage) for passage in passages])
    print(scores)
  • Transformers.js

    How to use CheezOne/reranker-cjk-small with Transformers.js:

    // npm i @huggingface/transformers
    import { AutoTokenizer, AutoModelForSequenceClassification } from '@huggingface/transformers';
    
    const tokenizer = await AutoTokenizer.from_pretrained('CheezOne/reranker-cjk-small');
    const model = await AutoModelForSequenceClassification.from_pretrained('CheezOne/reranker-cjk-small');
    
    const query = 'Which planet is known as the Red Planet?';
    const documents = [
    	'Mars, known for its reddish appearance, is often referred to as the Red Planet.',
    	'Venus is often called the twin of Earth because of its similar size and proximity.',
    ];
    
    const inputs = tokenizer(new Array(documents.length).fill(query), { text_pair: documents, padding: true, truncation: true });
    const { logits } = await model(inputs);
    console.log(logits.sigmoid().tolist()); // one relevance score per document
  • Notebooks
  • Google Colab
  • Kaggle
reranker-cjk-small
1.11 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 7 commits
CheezOne's picture
CheezOne
Link to renamed PI guard
e8cebfe verified about 6 hours ago
  • eval
    Release about 23 hours ago
  • onnx
    Release about 23 hours ago
  • scripts
    Release about 23 hours ago
  • .gitattributes
    1.57 kB
    Release about 23 hours ago
  • LICENSE
    11.4 kB
    Add Apache-2.0 LICENSE file about 9 hours ago
  • README.md
    7.84 kB
    Link to renamed PI guard about 6 hours ago
  • config.json
    1.34 kB
    Release about 23 hours ago
  • model.safetensors
    281 MB
    xet
    Release about 23 hours ago
  • special_tokens_map.json
    1.05 kB
    Release about 23 hours ago
  • tokenizer.json
    34.4 MB
    xet
    Release about 23 hours ago
  • tokenizer_config.json
    46.5 kB
    Release about 23 hours ago