Text Ranking
sentence-transformers
Safetensors
English
bert
cross-encoder
Generated from Trainer
dataset_size:2369
loss:BinaryCrossEntropyLoss
text-embeddings-inference
Instructions to use gmguarino/answerai-colbert-small-v1-climatecheck with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use gmguarino/answerai-colbert-small-v1-climatecheck with sentence-transformers:
from sentence_transformers import CrossEncoder model = CrossEncoder("gmguarino/answerai-colbert-small-v1-climatecheck") 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 config.json from gmguarino/answerai-colbert-small-v1-climatecheck: direct link, hf CLI and curl.
- Browser
- Download file 798 Bytes
-
https://huggingface.co/gmguarino/answerai-colbert-small-v1-climatecheck/resolve/main/config.json
- Command line
-
hf download hf://gmguarino/answerai-colbert-small-v1-climatecheck/config.json
-
curl -L -o config.json https://huggingface.co/gmguarino/answerai-colbert-small-v1-climatecheck/resolve/main/config.json
798 Bytes
| { | |
| "architectures": [ | |
| "BertForSequenceClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "classifier_dropout": null, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 384, | |
| "id2label": { | |
| "0": "LABEL_0" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 1536, | |
| "label2id": { | |
| "LABEL_0": 0 | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "max_position_embeddings": 512, | |
| "model_type": "bert", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 12, | |
| "pad_token_id": 0, | |
| "position_embedding_type": "absolute", | |
| "sentence_transformers": { | |
| "activation_fn": "torch.nn.modules.activation.Sigmoid", | |
| "version": "4.1.0" | |
| }, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.51.3", | |
| "type_vocab_size": 2, | |
| "use_cache": true, | |
| "vocab_size": 30522 | |
| } | |