Feature Extraction
sentence-transformers
TensorBoard
Safetensors
sparse-encoder
sparse
splade
norwegian
scandinavian
information-retrieval
custom_code
Eval Results (legacy)
Run this model with HF Jobs
Run thivy/norbert4-base-splade-retrieval on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/thivy/norbert4-base-splade-retrieval. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/thivy/norbert4-base-splade-retrieval on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use thivy/norbert4-base-splade-retrieval with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use thivy/norbert4-base-splade-retrieval with sentence-transformers:
from sentence_transformers import SparseEncoder model = SparseEncoder("thivy/norbert4-base-splade-retrieval", 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) - Notebooks
- Google Colab
- Kaggle
Training in progress, step 2000, checkpoint
Browse filesFiles changed (7)
65 unmodified lines666768697071727374757677782 unmodified lines8182838485868788899091929394959697989910010110210310410510610710810911011172 unmodified lines18418518618718818919019119229 unmodified lines222223224225226227228229230231232233234235236237238239240241242243244245246247248249242 unmodified lines49249349449549649765 unmodified linesvalue: 0.36name: Dot Accuracy@1- type: dot_accuracy@3value: 0.46name: Dot Accuracy@3- type: dot_accuracy@5value: 0.5name: Dot Accuracy@5- type: dot_accuracy@10value: 0.54name: Dot Accuracy@10- type: dot_precision@1value: 0.362 unmodified linesvalue: 0.32name: Dot Precision@3- type: dot_precision@5value: 0.29600000000000004name: Dot Precision@5- type: dot_precision@10value: 0.22800000000000004name: Dot Precision@10- type: dot_recall@1value: 0.022081368101431565name: Dot Recall@1- type: dot_recall@3value: 0.05183511044229535name: Dot Recall@3- type: dot_recall@5value: 0.0714069075633874name: Dot Recall@5- type: dot_recall@10value: 0.08839794622496992name: Dot Recall@10- type: dot_ndcg@10value: 0.27095313455750514name: Dot Ndcg@10- type: dot_mrr@10value: 0.4201666666666666name: Dot Mrr@10- type: dot_map@100value: 0.10835998836089723name: Dot Map@100- type: query_active_dimsvalue: 51200.072 unmodified lines# Get the similarity scores for the embeddingssimilarities = model.similarity(embeddings, embeddings)print(similarities)# tensor([[27.7659, 14.8556, 3.9202],# [14.8556, 43.4099, 3.8208],# [ 3.9202, 3.8208, 41.8847]])```<!--29 unmodified lines* Dataset: `NanoNFCorpus`* Evaluated with [<code>SparseInformationRetrievalEvaluator</code>](https://sbert.net/docs/package_reference/sparse_encoder/evaluation.html#sentence_transformers.sparse_encoder.evaluation.SparseInformationRetrievalEvaluator)| Metric | Value ||:----------------------|:----------|| dot_accuracy@1 | 0.36 || dot_accuracy@3 | 0.46 || dot_accuracy@5 | 0.5 || dot_accuracy@10 | 0.54 || dot_precision@1 | 0.36 || dot_precision@3 | 0.32 || dot_precision@5 | 0.296 || dot_precision@10 | 0.228 || dot_recall@1 | 0.0221 || dot_recall@3 | 0.0518 || dot_recall@5 | 0.0714 || dot_recall@10 | 0.0884 || **dot_ndcg@10** | **0.271** || dot_mrr@10 | 0.4202 || dot_map@100 | 0.1084 || query_active_dims | 51200.0 || query_sparsity_ratio | 0.0 || corpus_active_dims | 51200.0 || corpus_sparsity_ratio | 0.0 || avg_flops | 51200.0 |<!--## Bias, Risks and Limitations242 unmodified lines| 0.1343 | 1400 | 0.1669 | - | - || 0.1391 | 1450 | 0.1741 | - | - || 0.1439 | 1500 | 0.1624 | 0.6731 | 0.2710 |### Framework Versions65 unmodified lines666768697071727374757677782 unmodified lines8182838485868788899091929394959697989910010110210310410510610710810911011172 unmodified lines18418518618718818919019119229 unmodified lines222223224225226227228229230231232233234235236237238239240241242243244245246247248249242 unmodified lines49249349449549649749849950050150250350450550650765 unmodified linesvalue: 0.36name: Dot Accuracy@1- type: dot_accuracy@3value: 0.48name: Dot Accuracy@3- type: dot_accuracy@5value: 0.5name: Dot Accuracy@5- type: dot_accuracy@10value: 0.52name: Dot Accuracy@10- type: dot_precision@1value: 0.362 unmodified linesvalue: 0.32name: Dot Precision@3- type: dot_precision@5value: 0.276name: Dot Precision@5- type: dot_precision@10value: 0.218name: Dot Precision@10- type: dot_recall@1value: 0.022400964131812088name: Dot Recall@1- type: dot_recall@3value: 0.052197045602026065name: Dot Recall@3- type: dot_recall@5value: 0.06634270670736113name: Dot Recall@5- type: dot_recall@10value: 0.08774797684385409name: Dot Recall@10- type: dot_ndcg@10value: 0.26005659488715965name: Dot Ndcg@10- type: dot_mrr@10value: 0.42019047619047617name: Dot Mrr@10- type: dot_map@100value: 0.10964177026743151name: Dot Map@100- type: query_active_dimsvalue: 51200.072 unmodified lines# Get the similarity scores for the embeddingssimilarities = model.similarity(embeddings, embeddings)print(similarities)# tensor([[29.2469, 18.1254, 4.1943],# [18.1254, 47.8908, 4.9786],# [ 4.1943, 4.9786, 63.1510]])```<!--29 unmodified lines* Dataset: `NanoNFCorpus`* Evaluated with [<code>SparseInformationRetrievalEvaluator</code>](https://sbert.net/docs/package_reference/sparse_encoder/evaluation.html#sentence_transformers.sparse_encoder.evaluation.SparseInformationRetrievalEvaluator)| Metric | Value ||:----------------------|:-----------|| dot_accuracy@1 | 0.36 || dot_accuracy@3 | 0.48 || dot_accuracy@5 | 0.5 || dot_accuracy@10 | 0.52 || dot_precision@1 | 0.36 || dot_precision@3 | 0.32 || dot_precision@5 | 0.276 || dot_precision@10 | 0.218 || dot_recall@1 | 0.0224 || dot_recall@3 | 0.0522 || dot_recall@5 | 0.0663 || dot_recall@10 | 0.0877 || **dot_ndcg@10** | **0.2601** || dot_mrr@10 | 0.4202 || dot_map@100 | 0.1096 || query_active_dims | 51200.0 || query_sparsity_ratio | 0.0 || corpus_active_dims | 51200.0 || corpus_sparsity_ratio | 0.0 || avg_flops | 51200.0 |<!--## Bias, Risks and Limitations242 unmodified lines| 0.1343 | 1400 | 0.1669 | - | - || 0.1391 | 1450 | 0.1741 | - | - || 0.1439 | 1500 | 0.1624 | 0.6731 | 0.2710 || 0.1487 | 1550 | 0.1926 | - | - || 0.1535 | 1600 | 0.1545 | - | - || 0.1583 | 1650 | 0.1286 | - | - || 0.1631 | 1700 | 0.1395 | - | - || 0.1679 | 1750 | 0.1625 | - | - || 0.1727 | 1800 | 0.1711 | - | - || 0.1775 | 1850 | 0.1394 | - | - || 0.1823 | 1900 | 0.1516 | - | - || 0.1871 | 1950 | 0.1538 | - | - || 0.1919 | 2000 | 0.1298 | 0.2903 | 0.2601 |### Framework Versions
123version https://git-lfs.github.com/spec/v1oid sha256:6a5df181dcca24e2427f7589d22597f750fa64d72e8be4f4bced6028ded52530size 728561776123version https://git-lfs.github.com/spec/v1oid sha256:4b74209cabe3a16ac6b0df20e8db9856a5f072f9672ee0104c43ad9eef458ec3size 728561776
123version https://git-lfs.github.com/spec/v1oid sha256:2fead0220288113f67d35b58afef2dcefd0b1b524e80326c8bc96a920b95f443size 1457369077123version https://git-lfs.github.com/spec/v1oid sha256:6bb64c7082f6f925c14996233754f454d6a3d49e29bafe2d56930b28af23e2a0size 1457369077
123version https://git-lfs.github.com/spec/v1oid sha256:308e4d7259af60712986606844359a3c9f6a95d950167e0a164332196906830esize 14917123version https://git-lfs.github.com/spec/v1oid sha256:f4772269ab06150bbed39b38ba39de6e1f778682956a9a154ea5ede6b57ab3c4size 14917
123version https://git-lfs.github.com/spec/v1oid sha256:330191a00272ba657dfd6970ed03cec528aefe721b1e6f518b07850492894eabsize 14917123version https://git-lfs.github.com/spec/v1oid sha256:df0b233342ea4b6464a63cab67ba31c81c2201bb1230136706d0ef788fcfb8desize 14917
123version https://git-lfs.github.com/spec/v1oid sha256:e1409d5d1005ed20ab89213608c95d9948db0328d0bb2096aeb9b3657af11a74size 1465123version https://git-lfs.github.com/spec/v1oid sha256:272986e76e064b947f0b41c8c3a0c0d1ee225218c2e71024cf59a920a9e2bb29size 1465
1 unmodified line2345678910450 unmodified lines4614624634644654661 unmodified line"best_global_step": 1500,"best_metric": 0.27095313455750514,"best_model_checkpoint": "models/splade-norbert4-base-retrieval-only/checkpoint-1500","epoch": 0.14391250119927085,"eval_steps": 500,"global_step": 1500,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,450 unmodified lines"eval_samples_per_second": 39.929,"eval_steps_per_second": 0.624,"step": 1500}],"logging_steps": 50,1 unmodified line2345678910450 unmodified lines4614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166171 unmodified line"best_global_step": 1500,"best_metric": 0.27095313455750514,"best_model_checkpoint": "models/splade-norbert4-base-retrieval-only/checkpoint-1500","epoch": 0.19188333493236112,"eval_steps": 500,"global_step": 2000,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,450 unmodified lines"eval_samples_per_second": 39.929,"eval_steps_per_second": 0.624,"step": 1500},{"base_loss": 0.1885,"document_regularizer_loss": 0.0039,"epoch": 0.14870958457257988,"grad_norm": 5.250992298126221,"learning_rate": 1.8921108742004266e-05,"loss": 0.1926,"query_regularizer_loss": 0.0003,"step": 1550},{"base_loss": 0.1492,"document_regularizer_loss": 0.005,"epoch": 0.1535066679458889,"grad_norm": 1.2475131750106812,"learning_rate": 1.881449893390192e-05,"loss": 0.1545,"query_regularizer_loss": 0.0003,"step": 1600},{"base_loss": 0.1228,"document_regularizer_loss": 0.0054,"epoch": 0.15830375131919794,"grad_norm": 1.5583572387695312,"learning_rate": 1.8707889125799576e-05,"loss": 0.1286,"query_regularizer_loss": 0.0004,"step": 1650},{"base_loss": 0.134,"document_regularizer_loss": 0.0051,"epoch": 0.16310083469250697,"grad_norm": 0.8574826717376709,"learning_rate": 1.860127931769723e-05,"loss": 0.1395,"query_regularizer_loss": 0.0003,"step": 1700},{"base_loss": 0.1569,"document_regularizer_loss": 0.0052,"epoch": 0.16789791806581597,"grad_norm": 1.067100167274475,"learning_rate": 1.8494669509594885e-05,"loss": 0.1625,"query_regularizer_loss": 0.0004,"step": 1750},{"base_loss": 0.1658,"document_regularizer_loss": 0.005,"epoch": 0.172695001439125,"grad_norm": 5.434942245483398,"learning_rate": 1.8388059701492537e-05,"loss": 0.1711,"query_regularizer_loss": 0.0003,"step": 1800},{"base_loss": 0.1334,"document_regularizer_loss": 0.0055,"epoch": 0.17749208481243403,"grad_norm": 2.7939155101776123,"learning_rate": 1.828144989339019e-05,"loss": 0.1394,"query_regularizer_loss": 0.0005,"step": 1850},{"base_loss": 0.1449,"document_regularizer_loss": 0.0062,"epoch": 0.18228916818574306,"grad_norm": 6.572226047515869,"learning_rate": 1.817484008528785e-05,"loss": 0.1516,"query_regularizer_loss": 0.0005,"step": 1900},{"base_loss": 0.1469,"document_regularizer_loss": 0.0063,"epoch": 0.1870862515590521,"grad_norm": 4.447939872741699,"learning_rate": 1.8068230277185504e-05,"loss": 0.1538,"query_regularizer_loss": 0.0005,"step": 1950},{"base_loss": 0.1226,"document_regularizer_loss": 0.0066,"epoch": 0.19188333493236112,"grad_norm": 4.281933307647705,"learning_rate": 1.7961620469083155e-05,"loss": 0.1298,"query_regularizer_loss": 0.0006,"step": 2000},{"epoch": 0.19188333493236112,"eval_NanoBEIR_mean_avg_flops": 51200.0,"eval_NanoBEIR_mean_corpus_active_dims": 51200.0,"eval_NanoBEIR_mean_corpus_sparsity_ratio": 0.0,"eval_NanoBEIR_mean_dot_accuracy@1": 0.36,"eval_NanoBEIR_mean_dot_accuracy@10": 0.52,"eval_NanoBEIR_mean_dot_accuracy@3": 0.48,"eval_NanoBEIR_mean_dot_accuracy@5": 0.5,"eval_NanoBEIR_mean_dot_map@100": 0.10964177026743151,"eval_NanoBEIR_mean_dot_mrr@10": 0.42019047619047617,"eval_NanoBEIR_mean_dot_ndcg@10": 0.26005659488715965,"eval_NanoBEIR_mean_dot_precision@1": 0.36,"eval_NanoBEIR_mean_dot_precision@10": 0.218,"eval_NanoBEIR_mean_dot_precision@3": 0.32,"eval_NanoBEIR_mean_dot_precision@5": 0.276,"eval_NanoBEIR_mean_dot_recall@1": 0.022400964131812088,"eval_NanoBEIR_mean_dot_recall@10": 0.08774797684385409,"eval_NanoBEIR_mean_dot_recall@3": 0.052197045602026065,"eval_NanoBEIR_mean_dot_recall@5": 0.06634270670736113,"eval_NanoBEIR_mean_query_active_dims": 51200.0,"eval_NanoBEIR_mean_query_sparsity_ratio": 0.0,"eval_NanoNFCorpus_avg_flops": 51200.0,"eval_NanoNFCorpus_corpus_active_dims": 51200.0,"eval_NanoNFCorpus_corpus_sparsity_ratio": 0.0,"eval_NanoNFCorpus_dot_accuracy@1": 0.36,"eval_NanoNFCorpus_dot_accuracy@10": 0.52,"eval_NanoNFCorpus_dot_accuracy@3": 0.48,"eval_NanoNFCorpus_dot_accuracy@5": 0.5,"eval_NanoNFCorpus_dot_map@100": 0.10964177026743151,"eval_NanoNFCorpus_dot_mrr@10": 0.42019047619047617,"eval_NanoNFCorpus_dot_ndcg@10": 0.26005659488715965,"eval_NanoNFCorpus_dot_precision@1": 0.36,"eval_NanoNFCorpus_dot_precision@10": 0.218,"eval_NanoNFCorpus_dot_precision@3": 0.32,"eval_NanoNFCorpus_dot_precision@5": 0.276,"eval_NanoNFCorpus_dot_recall@1": 0.022400964131812088,"eval_NanoNFCorpus_dot_recall@10": 0.08774797684385409,"eval_NanoNFCorpus_dot_recall@3": 0.052197045602026065,"eval_NanoNFCorpus_dot_recall@5": 0.06634270670736113,"eval_NanoNFCorpus_query_active_dims": 51200.0,"eval_NanoNFCorpus_query_sparsity_ratio": 0.0,"eval_base_loss": 0.2835,"eval_document_regularizer_loss": 0.0064,"eval_loss": 0.29025155305862427,"eval_query_regularizer_loss": 0.0003,"eval_runtime": 362.1684,"eval_samples_per_second": 39.921,"eval_steps_per_second": 0.624,"step": 2000}],"logging_steps": 50,
last-checkpoint/README.md+46-36
last-checkpoint/model.safetensors+1-1
last-checkpoint/optimizer.pt+1-1
last-checkpoint/rng_state_0.pth+1-1
last-checkpoint/rng_state_1.pth+1-1
last-checkpoint/scheduler.pt+1-1
last-checkpoint/trainer_state.json+153-2