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 8500, checkpoint
Browse filesFiles changed (7)
62 unmodified lines6364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011172 unmodified lines18418518618718818919019119231 unmodified lines224225226227228229230231232233234235236237238239240241242243244379 unmodified lines62462562662762862962 unmodified linestype: NanoNFCorpusmetrics:- type: dot_accuracy@1value: 0.02name: Dot Accuracy@1- type: dot_accuracy@3value: 0.42name: Dot Accuracy@3- type: dot_accuracy@5value: 0.48name: Dot Accuracy@5- type: dot_accuracy@10value: 0.56name: Dot Accuracy@10- type: dot_precision@1value: 0.02name: Dot Precision@1- type: dot_precision@3value: 0.22name: Dot Precision@3- type: dot_precision@5value: 0.23200000000000004name: Dot Precision@5- type: dot_precision@10value: 0.20800000000000002name: Dot Precision@10- type: dot_recall@1value: 4.3196544276457885e-05name: Dot Recall@1- type: dot_recall@3value: 0.03040871172367607name: Dot Recall@3- type: dot_recall@5value: 0.05828533327131927name: Dot Recall@5- type: dot_recall@10value: 0.10296000299194066name: Dot Recall@10- type: dot_ndcg@10value: 0.20623583398052894name: Dot Ndcg@10- type: dot_mrr@10value: 0.22738888888888892name: Dot Mrr@10- type: dot_map@100value: 0.07655588379360108name: 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([[24.8398, 13.6657, 1.5197],# [13.6656, 17.5498, 1.4373],# [ 1.5197, 1.4373, 16.1050]])```<!--31 unmodified lines| Metric | Value ||:----------------------|:-----------|| dot_accuracy@1 | 0.02 || dot_accuracy@3 | 0.42 || dot_accuracy@5 | 0.48 || dot_accuracy@10 | 0.56 || dot_precision@1 | 0.02 || dot_precision@3 | 0.22 || dot_precision@5 | 0.232 || dot_precision@10 | 0.208 || dot_recall@1 | 0.0 || dot_recall@3 | 0.0304 || dot_recall@5 | 0.0583 || dot_recall@10 | 0.103 || **dot_ndcg@10** | **0.2062** || dot_mrr@10 | 0.2274 || dot_map@100 | 0.0766 || query_active_dims | 51200.0 || query_sparsity_ratio | 0.0 || corpus_active_dims | 51200.0 |379 unmodified lines| 0.7579 | 7900 | 0.1294 | - | - || 0.7627 | 7950 | 0.0943 | - | - || 0.7675 | 8000 | 0.1123 | 0.3618 | 0.2062 |</details>62 unmodified lines6364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011172 unmodified lines18418518618718818919019119231 unmodified lines224225226227228229230231232233234235236237238239240241242243244379 unmodified lines62462562662762862963063163263363463563663763863962 unmodified linestype: NanoNFCorpusmetrics:- type: dot_accuracy@1value: 0.1name: Dot Accuracy@1- type: dot_accuracy@3value: 0.36name: Dot Accuracy@3- type: dot_accuracy@5value: 0.46name: Dot Accuracy@5- type: dot_accuracy@10value: 0.58name: Dot Accuracy@10- type: dot_precision@1value: 0.1name: Dot Precision@1- type: dot_precision@3value: 0.20666666666666664name: Dot Precision@3- type: dot_precision@5value: 0.22name: Dot Precision@5- type: dot_precision@10value: 0.204name: Dot Precision@10- type: dot_recall@1value: 0.003940923817003731name: Dot Recall@1- type: dot_recall@3value: 0.03953636086086068name: Dot Recall@3- type: dot_recall@5value: 0.057473518676731616name: Dot Recall@5- type: dot_recall@10value: 0.08657017690793385name: Dot Recall@10- type: dot_ndcg@10value: 0.20567385311579767name: Dot Ndcg@10- type: dot_mrr@10value: 0.2644126984126984name: Dot Mrr@10- type: dot_map@100value: 0.08214366890077597name: 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([[26.9488, 15.9822, 1.5481],# [15.9822, 20.9536, 1.4773],# [ 1.5481, 1.4773, 12.3550]])```<!--31 unmodified lines| Metric | Value ||:----------------------|:-----------|| dot_accuracy@1 | 0.1 || dot_accuracy@3 | 0.36 || dot_accuracy@5 | 0.46 || dot_accuracy@10 | 0.58 || dot_precision@1 | 0.1 || dot_precision@3 | 0.2067 || dot_precision@5 | 0.22 || dot_precision@10 | 0.204 || dot_recall@1 | 0.0039 || dot_recall@3 | 0.0395 || dot_recall@5 | 0.0575 || dot_recall@10 | 0.0866 || **dot_ndcg@10** | **0.2057** || dot_mrr@10 | 0.2644 || dot_map@100 | 0.0821 || query_active_dims | 51200.0 || query_sparsity_ratio | 0.0 || corpus_active_dims | 51200.0 |379 unmodified lines| 0.7579 | 7900 | 0.1294 | - | - || 0.7627 | 7950 | 0.0943 | - | - || 0.7675 | 8000 | 0.1123 | 0.3618 | 0.2062 || 0.7723 | 8050 | 0.1008 | - | - || 0.7771 | 8100 | 0.0913 | - | - || 0.7819 | 8150 | 0.0927 | - | - || 0.7867 | 8200 | 0.1056 | - | - || 0.7915 | 8250 | 0.1943 | - | - || 0.7963 | 8300 | 0.1005 | - | - || 0.8011 | 8350 | 0.0748 | - | - || 0.8059 | 8400 | 0.1243 | - | - || 0.8107 | 8450 | 0.0899 | - | - || 0.8155 | 8500 | 0.1128 | 0.3171 | 0.2057 |</details>
123version https://git-lfs.github.com/spec/v1oid sha256:1b1385445b02dccad44c80c5c5e5eaf23f6121382b6bb74fbe9db8dc67fee826size 728561776123version https://git-lfs.github.com/spec/v1oid sha256:d1038414d050604a7031a862b42efd7bbb1a3a2f82b623ceeb9213bcbd99e0c7size 728561776
123version https://git-lfs.github.com/spec/v1oid sha256:f1ad3ad17f0ad82cdf60211e400ababb3d167e61b0988ad4bea1faecdc5af8b4size 1457369077123version https://git-lfs.github.com/spec/v1oid sha256:456ec506d1d605b51641f4eed6e3697543e5a4325dbab61429aacef832edfcf4size 1457369077
123version https://git-lfs.github.com/spec/v1oid sha256:b3936539ecb61d5c3e38ed62318969f696ae8bda1b17892593cc0f1b670d6f5bsize 14917123version https://git-lfs.github.com/spec/v1oid sha256:1fbd73e7444d5540835acc9fc5eba55136469b51e8ce22663c47d1e4d2f55bf4size 14917
123version https://git-lfs.github.com/spec/v1oid sha256:e23b9f08c0ae097fe441add3706a2498e7071c17cc18a2c231bce123f25e1fd1size 14917123version https://git-lfs.github.com/spec/v1oid sha256:60fdee8bf056513f218a8ac7538adc317d22ac59ea5309f233815c5c316a36bcsize 14917
123version https://git-lfs.github.com/spec/v1oid sha256:b09fbcd2098c2802787c4bb2483403ce977e9aa873fc3fcbc2ce17d7cc8e9968size 1465123version https://git-lfs.github.com/spec/v1oid sha256:8834d7b7348e490707a86d462048e3f1ec4204429f0a5b395bd0d133524c30a1size 1465
1 unmodified line23456789102413 unmodified lines2424242524262427242824291 unmodified line"best_global_step": 1500,"best_metric": 0.27095313455750514,"best_model_checkpoint": "models/splade-norbert4-base-retrieval-only/checkpoint-1500","epoch": 0.7675333397294445,"eval_steps": 500,"global_step": 8000,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,2413 unmodified lines"eval_samples_per_second": 39.95,"eval_steps_per_second": 0.624,"step": 8000}],"logging_steps": 50,1 unmodified line23456789102413 unmodified lines24242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925801 unmodified line"best_global_step": 1500,"best_metric": 0.27095313455750514,"best_model_checkpoint": "models/splade-norbert4-base-retrieval-only/checkpoint-1500","epoch": 0.8155041734625348,"eval_steps": 500,"global_step": 8500,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,2413 unmodified lines"eval_samples_per_second": 39.95,"eval_steps_per_second": 0.624,"step": 8000},{"base_loss": 0.0897,"document_regularizer_loss": 0.009,"epoch": 0.7723304231027536,"grad_norm": 2.677541494369507,"learning_rate": 5.06183368869936e-06,"loss": 0.1008,"query_regularizer_loss": 0.0021,"step": 8050},{"base_loss": 0.0804,"document_regularizer_loss": 0.0085,"epoch": 0.7771275064760625,"grad_norm": 0.12245524674654007,"learning_rate": 4.955223880597016e-06,"loss": 0.0913,"query_regularizer_loss": 0.0024,"step": 8100},{"base_loss": 0.0829,"document_regularizer_loss": 0.0075,"epoch": 0.7819245898493716,"grad_norm": 1.381159782409668,"learning_rate": 4.8486140724946705e-06,"loss": 0.0927,"query_regularizer_loss": 0.0022,"step": 8150},{"base_loss": 0.0964,"document_regularizer_loss": 0.0072,"epoch": 0.7867216732226806,"grad_norm": 2.5500621795654297,"learning_rate": 4.742004264392324e-06,"loss": 0.1056,"query_regularizer_loss": 0.002,"step": 8200},{"base_loss": 0.1847,"document_regularizer_loss": 0.0076,"epoch": 0.7915187565959897,"grad_norm": 9.30077838897705,"learning_rate": 4.635394456289979e-06,"loss": 0.1943,"query_regularizer_loss": 0.002,"step": 8250},{"base_loss": 0.0912,"document_regularizer_loss": 0.0074,"epoch": 0.7963158399692987,"grad_norm": 0.8272019624710083,"learning_rate": 4.528784648187634e-06,"loss": 0.1005,"query_regularizer_loss": 0.0019,"step": 8300},{"base_loss": 0.0643,"document_regularizer_loss": 0.0083,"epoch": 0.8011129233426076,"grad_norm": 1.9159977436065674,"learning_rate": 4.422174840085289e-06,"loss": 0.0748,"query_regularizer_loss": 0.0022,"step": 8350},{"base_loss": 0.1147,"document_regularizer_loss": 0.0075,"epoch": 0.8059100067159167,"grad_norm": 9.19480037689209,"learning_rate": 4.3155650319829425e-06,"loss": 0.1243,"query_regularizer_loss": 0.0021,"step": 8400},{"base_loss": 0.0799,"document_regularizer_loss": 0.0076,"epoch": 0.8107070900892257,"grad_norm": 0.2697424292564392,"learning_rate": 4.208955223880597e-06,"loss": 0.0899,"query_regularizer_loss": 0.0023,"step": 8450},{"base_loss": 0.1029,"document_regularizer_loss": 0.0076,"epoch": 0.8155041734625348,"grad_norm": 0.39236903190612793,"learning_rate": 4.102345415778252e-06,"loss": 0.1128,"query_regularizer_loss": 0.0023,"step": 8500},{"epoch": 0.8155041734625348,"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.1,"eval_NanoBEIR_mean_dot_accuracy@10": 0.58,"eval_NanoBEIR_mean_dot_accuracy@3": 0.36,"eval_NanoBEIR_mean_dot_accuracy@5": 0.46,"eval_NanoBEIR_mean_dot_map@100": 0.08214366890077597,"eval_NanoBEIR_mean_dot_mrr@10": 0.2644126984126984,"eval_NanoBEIR_mean_dot_ndcg@10": 0.20567385311579767,"eval_NanoBEIR_mean_dot_precision@1": 0.1,"eval_NanoBEIR_mean_dot_precision@10": 0.204,"eval_NanoBEIR_mean_dot_precision@3": 0.20666666666666664,"eval_NanoBEIR_mean_dot_precision@5": 0.22,"eval_NanoBEIR_mean_dot_recall@1": 0.003940923817003731,"eval_NanoBEIR_mean_dot_recall@10": 0.08657017690793385,"eval_NanoBEIR_mean_dot_recall@3": 0.03953636086086068,"eval_NanoBEIR_mean_dot_recall@5": 0.057473518676731616,"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.1,"eval_NanoNFCorpus_dot_accuracy@10": 0.58,"eval_NanoNFCorpus_dot_accuracy@3": 0.36,"eval_NanoNFCorpus_dot_accuracy@5": 0.46,"eval_NanoNFCorpus_dot_map@100": 0.08214366890077597,"eval_NanoNFCorpus_dot_mrr@10": 0.2644126984126984,"eval_NanoNFCorpus_dot_ndcg@10": 0.20567385311579767,"eval_NanoNFCorpus_dot_precision@1": 0.1,"eval_NanoNFCorpus_dot_precision@10": 0.204,"eval_NanoNFCorpus_dot_precision@3": 0.20666666666666664,"eval_NanoNFCorpus_dot_precision@5": 0.22,"eval_NanoNFCorpus_dot_recall@1": 0.003940923817003731,"eval_NanoNFCorpus_dot_recall@10": 0.08657017690793385,"eval_NanoNFCorpus_dot_recall@3": 0.03953636086086068,"eval_NanoNFCorpus_dot_recall@5": 0.057473518676731616,"eval_NanoNFCorpus_query_active_dims": 51200.0,"eval_NanoNFCorpus_query_sparsity_ratio": 0.0,"eval_base_loss": 0.3041,"eval_document_regularizer_loss": 0.0121,"eval_loss": 0.3171200156211853,"eval_query_regularizer_loss": 0.0008,"eval_runtime": 361.5745,"eval_samples_per_second": 39.986,"eval_steps_per_second": 0.625,"step": 8500}],"logging_steps": 50,
last-checkpoint/README.md+43-33
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