Text Ranking
sentence-transformers
Safetensors
grt
cross-encoder
reranker
rotational-transformer
givens-rotations
clifford-algebra
matterwave
Instructions to use MatterWaveAI/grt-30m-reranker with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use MatterWaveAI/grt-30m-reranker with sentence-transformers:
from sentence_transformers import CrossEncoder model = CrossEncoder("MatterWaveAI/grt-30m-reranker") 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) - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from MatterWaveAI/grt-30m-reranker: direct link, hf CLI and curl.
- Browser
- Download file 1.02 kB
-
https://huggingface.co/MatterWaveAI/grt-30m-reranker/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://MatterWaveAI/grt-30m-reranker/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/MatterWaveAI/grt-30m-reranker/resolve/main/tokenizer_config.json
1.02 kB
| { | |
| "add_prefix_space": false, | |
| "backend": "tokenizers", | |
| "bos_token": null, | |
| "clean_up_tokenization_spaces": false, | |
| "eos_token": "<|endoftext|>", | |
| "errors": "replace", | |
| "extra_special_tokens": [ | |
| "<|im_start|>", | |
| "<|im_end|>", | |
| "<|object_ref_start|>", | |
| "<|object_ref_end|>", | |
| "<|box_start|>", | |
| "<|box_end|>", | |
| "<|quad_start|>", | |
| "<|quad_end|>", | |
| "<|vision_start|>", | |
| "<|vision_end|>", | |
| "<|vision_pad|>", | |
| "<|image_pad|>", | |
| "<|video_pad|>" | |
| ], | |
| "is_local": true, | |
| "local_files_only": false, | |
| "max_length": 128, | |
| "model_max_length": 131072, | |
| "pad_to_multiple_of": null, | |
| "pad_token": "<|endoftext|>", | |
| "pad_token_type_id": 0, | |
| "padding_side": "right", | |
| "split_special_tokens": false, | |
| "stride": 0, | |
| "tokenizer_class": "Qwen2Tokenizer", | |
| "truncation_side": "right", | |
| "truncation_strategy": "longest_first", | |
| "unk_token": null, | |
| "model_input_names": [ | |
| "input_ids", | |
| "token_type_ids", | |
| "attention_mask" | |
| ] | |
| } | |