cahya / NusaBert-v1.2-sts

huggingface.co
Total runs: 81
24-hour runs: -3
7-day runs: -19
30-day runs: -19
Model's Last Updated: March 01 2025
sentence-similarity

Introduction of NusaBert-v1.2-sts

Model Details of NusaBert-v1.2-sts

SentenceTransformer based on cahya/NusaBert-v1.2

This is a sentence-transformers model finetuned from cahya/NusaBert-v1.2 on the stsb dataset. It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.

Model Details
Model Description
  • Model Type: Sentence Transformer
  • Base model: cahya/NusaBert-v1.2
  • Maximum Sequence Length: 8192 tokens
  • Output Dimensionality: 768 dimensions
  • Similarity Function: Cosine Similarity
  • Training Dataset:
  • Language: en
Model Sources
Full Model Architecture
SentenceTransformer(
  (0): Transformer({'max_seq_length': 8192, 'do_lower_case': False}) with Transformer model: ModernBertModel 
  (1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
)
Usage
Direct Usage (Sentence Transformers)

First install the Sentence Transformers library:

pip install -U sentence-transformers

Then you can load this model and run inference.

from sentence_transformers import SentenceTransformer

# Download from the 🤗 Hub
model = SentenceTransformer("cahya/NusaBert-v1.2-sts")
# Run inference
sentences = [
    'While Queen may refer to both Queen regent (sovereign) or Queen consort, the King has always been the sovereign.',
    'There is a very good reason not to refer to the Queen\'s spouse as "King" - because they aren\'t the King.',
    'A man plays the guitar.',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 768]

# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]
Evaluation
Metrics
Semantic Similarity
Metric sts-dev sts-test
pearson_cosine 0.8136 0.767
spearman_cosine 0.815 0.7533
Training Details
Training Dataset
stsb
  • Dataset: stsb at ab7a5ac
  • Size: 5,749 training samples
  • Columns: sentence1 , sentence2 , and score
  • Approximate statistics based on the first 1000 samples:
    sentence1 sentence2 score
    type string string float
    details
    • min: 6 tokens
    • mean: 10.24 tokens
    • max: 29 tokens
    • min: 6 tokens
    • mean: 10.19 tokens
    • max: 25 tokens
    • min: 0.0
    • mean: 0.45
    • max: 1.0
  • Samples:
    sentence1 sentence2 score
    A plane is taking off. An air plane is taking off. 1.0
    A man is playing a large flute. A man is playing a flute. 0.76
    A man is spreading shreded cheese on a pizza. A man is spreading shredded cheese on an uncooked pizza. 0.76
  • Loss: CosineSimilarityLoss with these parameters:
    {
        "loss_fct": "torch.nn.modules.loss.MSELoss"
    }
    
Evaluation Dataset
stsb
  • Dataset: stsb at ab7a5ac
  • Size: 1,500 evaluation samples
  • Columns: sentence1 , sentence2 , and score
  • Approximate statistics based on the first 1000 samples:
    sentence1 sentence2 score
    type string string float
    details
    • min: 5 tokens
    • mean: 15.44 tokens
    • max: 44 tokens
    • min: 6 tokens
    • mean: 15.43 tokens
    • max: 58 tokens
    • min: 0.0
    • mean: 0.42
    • max: 1.0
  • Samples:
    sentence1 sentence2 score
    A man with a hard hat is dancing. A man wearing a hard hat is dancing. 1.0
    A young child is riding a horse. A child is riding a horse. 0.95
    A man is feeding a mouse to a snake. The man is feeding a mouse to the snake. 1.0
  • Loss: CosineSimilarityLoss with these parameters:
    {
        "loss_fct": "torch.nn.modules.loss.MSELoss"
    }
    
Training Hyperparameters
Non-Default Hyperparameters
  • eval_strategy : steps
  • per_device_train_batch_size : 48
  • per_device_eval_batch_size : 48
  • num_train_epochs : 4
  • warmup_ratio : 0.1
  • fp16 : True
All Hyperparameters
Click to expand
  • overwrite_output_dir : False
  • do_predict : False
  • eval_strategy : steps
  • prediction_loss_only : True
  • per_device_train_batch_size : 48
  • per_device_eval_batch_size : 48
  • per_gpu_train_batch_size : None
  • per_gpu_eval_batch_size : None
  • gradient_accumulation_steps : 1
  • eval_accumulation_steps : None
  • torch_empty_cache_steps : None
  • learning_rate : 5e-05
  • weight_decay : 0.0
  • adam_beta1 : 0.9
  • adam_beta2 : 0.999
  • adam_epsilon : 1e-08
  • max_grad_norm : 1.0
  • num_train_epochs : 4
  • max_steps : -1
  • lr_scheduler_type : linear
  • lr_scheduler_kwargs : {}
  • warmup_ratio : 0.1
  • warmup_steps : 0
  • log_level : passive
  • log_level_replica : warning
  • log_on_each_node : True
  • logging_nan_inf_filter : True
  • save_safetensors : True
  • save_on_each_node : False
  • save_only_model : False
  • restore_callback_states_from_checkpoint : False
  • no_cuda : False
  • use_cpu : False
  • use_mps_device : False
  • seed : 42
  • data_seed : None
  • jit_mode_eval : False
  • use_ipex : False
  • bf16 : False
  • fp16 : True
  • fp16_opt_level : O1
  • half_precision_backend : auto
  • bf16_full_eval : False
  • fp16_full_eval : False
  • tf32 : None
  • local_rank : 0
  • ddp_backend : None
  • tpu_num_cores : None
  • tpu_metrics_debug : False
  • debug : []
  • dataloader_drop_last : True
  • dataloader_num_workers : 0
  • dataloader_prefetch_factor : None
  • past_index : -1
  • disable_tqdm : False
  • remove_unused_columns : True
  • label_names : None
  • load_best_model_at_end : False
  • ignore_data_skip : False
  • fsdp : []
  • fsdp_min_num_params : 0
  • fsdp_config : {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
  • fsdp_transformer_layer_cls_to_wrap : None
  • accelerator_config : {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
  • deepspeed : None
  • label_smoothing_factor : 0.0
  • optim : adamw_torch
  • optim_args : None
  • adafactor : False
  • group_by_length : False
  • length_column_name : length
  • ddp_find_unused_parameters : None
  • ddp_bucket_cap_mb : None
  • ddp_broadcast_buffers : False
  • dataloader_pin_memory : True
  • dataloader_persistent_workers : False
  • skip_memory_metrics : True
  • use_legacy_prediction_loop : False
  • push_to_hub : False
  • resume_from_checkpoint : None
  • hub_model_id : None
  • hub_strategy : every_save
  • hub_private_repo : None
  • hub_always_push : False
  • gradient_checkpointing : False
  • gradient_checkpointing_kwargs : None
  • include_inputs_for_metrics : False
  • include_for_metrics : []
  • eval_do_concat_batches : True
  • fp16_backend : auto
  • push_to_hub_model_id : None
  • push_to_hub_organization : None
  • mp_parameters :
  • auto_find_batch_size : False
  • full_determinism : False
  • torchdynamo : None
  • ray_scope : last
  • ddp_timeout : 1800
  • torch_compile : False
  • torch_compile_backend : None
  • torch_compile_mode : None
  • dispatch_batches : None
  • split_batches : None
  • include_tokens_per_second : False
  • include_num_input_tokens_seen : False
  • neftune_noise_alpha : None
  • optim_target_modules : None
  • batch_eval_metrics : False
  • eval_on_start : False
  • use_liger_kernel : False
  • eval_use_gather_object : False
  • average_tokens_across_devices : False
  • prompts : None
  • batch_sampler : batch_sampler
  • multi_dataset_batch_sampler : proportional
Training Logs
Epoch Step Training Loss Validation Loss sts-dev_spearman_cosine sts-test_spearman_cosine
1.6949 100 0.0537 0.0335 0.7928 -
3.3898 200 0.0103 0.0313 0.8150 -
-1 -1 - - - 0.7533
Framework Versions
  • Python: 3.10.16
  • Sentence Transformers: 3.4.1
  • Transformers: 4.49.0
  • PyTorch: 2.5.1+cu124
  • Accelerate: 0.34.2
  • Datasets: 2.19.2
  • Tokenizers: 0.21.0
Citation
BibTeX
Sentence Transformers
@inproceedings{reimers-2019-sentence-bert,
    title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
    author = "Reimers, Nils and Gurevych, Iryna",
    booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
    month = "11",
    year = "2019",
    publisher = "Association for Computational Linguistics",
    url = "https://arxiv.org/abs/1908.10084",
}

Runs of cahya NusaBert-v1.2-sts on huggingface.co

81
Total runs
-3
24-hour runs
-4
3-day runs
-19
7-day runs
-19
30-day runs

More Information About NusaBert-v1.2-sts huggingface.co Model

NusaBert-v1.2-sts huggingface.co

NusaBert-v1.2-sts huggingface.co is an AI model on huggingface.co that provides NusaBert-v1.2-sts's model effect (), which can be used instantly with this cahya NusaBert-v1.2-sts model. huggingface.co supports a free trial of the NusaBert-v1.2-sts model, and also provides paid use of the NusaBert-v1.2-sts. Support call NusaBert-v1.2-sts model through api, including Node.js, Python, http.

NusaBert-v1.2-sts huggingface.co Url

https://huggingface.co/cahya/NusaBert-v1.2-sts

cahya NusaBert-v1.2-sts online free

NusaBert-v1.2-sts huggingface.co is an online trial and call api platform, which integrates NusaBert-v1.2-sts's modeling effects, including api services, and provides a free online trial of NusaBert-v1.2-sts, you can try NusaBert-v1.2-sts online for free by clicking the link below.

cahya NusaBert-v1.2-sts online free url in huggingface.co:

https://huggingface.co/cahya/NusaBert-v1.2-sts

NusaBert-v1.2-sts install

NusaBert-v1.2-sts is an open source model from GitHub that offers a free installation service, and any user can find NusaBert-v1.2-sts on GitHub to install. At the same time, huggingface.co provides the effect of NusaBert-v1.2-sts install, users can directly use NusaBert-v1.2-sts installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

NusaBert-v1.2-sts install url in huggingface.co:

https://huggingface.co/cahya/NusaBert-v1.2-sts

Url of NusaBert-v1.2-sts

NusaBert-v1.2-sts huggingface.co Url

Provider of NusaBert-v1.2-sts huggingface.co

cahya
ORGANIZATIONS

Other API from cahya

huggingface.co

Total runs: 81
Run Growth: -54
Growth Rate: -66.67%
Updated:March 01 2025
huggingface.co

Total runs: 72
Run Growth: 56
Growth Rate: 77.78%
Updated:March 24 2022
huggingface.co

Total runs: 25
Run Growth: 17
Growth Rate: 68.00%
Updated:February 01 2022
huggingface.co

Total runs: 16
Run Growth: 10
Growth Rate: 62.50%
Updated:June 24 2024
huggingface.co

Total runs: 15
Run Growth: -2
Growth Rate: -13.33%
Updated:February 19 2023
huggingface.co

Total runs: 12
Run Growth: -24
Growth Rate: -200.00%
Updated:November 24 2022
huggingface.co

Total runs: 11
Run Growth: -129
Growth Rate: -1172.73%
Updated:April 17 2025
huggingface.co

Total runs: 9
Run Growth: -1
Growth Rate: -11.11%
Updated:February 01 2023
huggingface.co

Total runs: 7
Run Growth: 2
Growth Rate: 28.57%
Updated:July 06 2021
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 04 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:May 21 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 12 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 04 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 11 2025