amentaphd / eu-regulation-embeddings-snowflake-m-v2

huggingface.co
Total runs: 22
24-hour runs: -2
7-day runs: -3
30-day runs: -2
Model's Last Updated: April 25 2025
sentence-similarity

Introduction of eu-regulation-embeddings-snowflake-m-v2

Model Details of eu-regulation-embeddings-snowflake-m-v2

SentenceTransformer based on Snowflake/snowflake-arctic-embed-m-v2.0

This is a sentence-transformers model finetuned from Snowflake/snowflake-arctic-embed-m-v2.0 . 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 Sources
Full Model Architecture
SentenceTransformer(
  (0): Transformer({'max_seq_length': 8192, 'do_lower_case': False}) with Transformer model: GteModel 
  (1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': True, 'pooling_mode_mean_tokens': False, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
  (2): Normalize()
)
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("sentence_transformers_model_id")
# Run inference
sentences = [
    'How does the text suggest addressing the social aspects related to low- and middle-income transport users in the context of zero-emission vehicle initiatives?',
    '(b)\n\nmeasures intended to accelerate the uptake of zero-emission vehicles or to provide financial support for the deployment of fully interoperable refuelling and recharging infrastructure for zero-emission vehicles, or measures to encourage a shift to public transport and improve multimodality, or to provide financial support in order to address social aspects concerning low- and middle-income transport users;\n\n(c)\n\nto finance their Social Climate Plan in accordance with Article 15 of Regulation (EU) 2023/955;\n\n(d)',
    'If the planned change is implemented notwithstanding the first and second subparagraphs, or if an unplanned change has taken place pursuant to which the AIFM’s management of the AIF no longer complies with this Directive or the AIFM otherwise no longer complies with this Directive, the competent authorities of the Member State of reference of the AIFM shall take all due measures in accordance with Article 46, including, if necessary, the express prohibition of marketing of the AIF.',
]
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
Information Retrieval
Metric Value
cosine_accuracy@1 0.7059
cosine_accuracy@3 0.9068
cosine_accuracy@5 0.9448
cosine_accuracy@10 0.9731
cosine_precision@1 0.7059
cosine_precision@3 0.3023
cosine_precision@5 0.189
cosine_precision@10 0.0973
cosine_recall@1 0.7059
cosine_recall@3 0.9068
cosine_recall@5 0.9448
cosine_recall@10 0.9731
cosine_ndcg@10 0.8513
cosine_mrr@10 0.8109
cosine_map@100 0.8123
Training Details
Training Dataset
Unnamed Dataset
  • Size: 46,338 training samples
  • Columns: sentence_0 and sentence_1
  • Approximate statistics based on the first 1000 samples:
    sentence_0 sentence_1
    type string string
    details
    • min: 9 tokens
    • mean: 39.98 tokens
    • max: 286 tokens
    • min: 3 tokens
    • mean: 248.72 tokens
    • max: 1315 tokens
  • Samples:
    sentence_0 sentence_1
    What is the maximum allowable reduction in excise duty for mixtures used as motor fuels containing biodiesel in Italy until 30 June 2004? for waste oils which are reused as fuel, either directly after recovery or following a recycling process for waste oils, and where the reuse is subject to duty.

    8. ITALY:

    for differentiated rates of excise duty on mixtures used as motor fuels containing 5 % or 25 % of biodiesel until 30 June 2004. The reduction in excise duty may not be greater than the amount of excise duty payable on the volume of biofuels present in the products eligible for the reduction. The reduction in excise duty shall be adjusted to take account of changes in the price of raw materials to avoid overcompensating for the extra costs involved in the manufacture of biofuels;
    What are the minimum indicative share percentages for the years 2023 to 2030, and how do these percentages relate to the interconnectivity levels of the Member States? Such indicative shares may, in each year, amount to at least 5 % from 2023 to 2026 and at least 10 % from 2027 to 2030, or, where lower, to the level of interconnectivity of the Member State concerned in any given year.

    In order to acquire further implementation experience, Member States may organise one or more pilot schemes where support is open to producers located in other Member States.

    2.
    What is the significance of the one-month period mentioned in the context? one month after its notification, in accordance with the arrangements provided for in Article 23.
  • Loss: MatryoshkaLoss with these parameters:
    {
        "loss": "MultipleNegativesRankingLoss",
        "matryoshka_dims": [
            768,
            512,
            256,
            128,
            64
        ],
        "matryoshka_weights": [
            1,
            1,
            1,
            1,
            1
        ],
        "n_dims_per_step": -1
    }
    
Training Hyperparameters
Non-Default Hyperparameters
  • eval_strategy : steps
  • num_train_epochs : 4
  • fp16 : True
  • multi_dataset_batch_sampler : round_robin
All Hyperparameters
Click to expand
  • overwrite_output_dir : False
  • do_predict : False
  • eval_strategy : steps
  • prediction_loss_only : True
  • per_device_train_batch_size : 8
  • per_device_eval_batch_size : 8
  • 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
  • num_train_epochs : 4
  • max_steps : -1
  • lr_scheduler_type : linear
  • lr_scheduler_kwargs : {}
  • warmup_ratio : 0.0
  • 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 : False
  • 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 : round_robin
Training Logs
Epoch Step Training Loss cosine_ndcg@10
0.0863 500 0.225 -
0.1726 1000 0.1337 -
0.2589 1500 0.1195 -
0.3452 2000 0.0803 -
0.4316 2500 0.0775 -
0.5179 3000 0.0714 -
0.6042 3500 0.0852 -
0.6905 4000 0.0718 -
0.7768 4500 0.0499 -
0.8631 5000 0.0665 0.8371
0.9494 5500 0.0674 -
1.0 5793 - 0.8416
1.0357 6000 0.0538 -
1.1220 6500 0.0606 -
1.2084 7000 0.0294 -
1.2947 7500 0.0129 -
1.3810 8000 0.0101 -
1.4673 8500 0.0072 -
1.5536 9000 0.0211 -
1.6399 9500 0.0133 -
1.7262 10000 0.0063 0.8513
Framework Versions
  • Python: 3.10.15
  • Sentence Transformers: 4.0.2
  • Transformers: 4.49.0
  • PyTorch: 2.6.0+cu126
  • Accelerate: 0.26.0
  • Datasets: 3.5.0
  • Tokenizers: 0.21.1
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",
}
MatryoshkaLoss
@misc{kusupati2024matryoshka,
    title={Matryoshka Representation Learning},
    author={Aditya Kusupati and Gantavya Bhatt and Aniket Rege and Matthew Wallingford and Aditya Sinha and Vivek Ramanujan and William Howard-Snyder and Kaifeng Chen and Sham Kakade and Prateek Jain and Ali Farhadi},
    year={2024},
    eprint={2205.13147},
    archivePrefix={arXiv},
    primaryClass={cs.LG}
}
MultipleNegativesRankingLoss
@misc{henderson2017efficient,
    title={Efficient Natural Language Response Suggestion for Smart Reply},
    author={Matthew Henderson and Rami Al-Rfou and Brian Strope and Yun-hsuan Sung and Laszlo Lukacs and Ruiqi Guo and Sanjiv Kumar and Balint Miklos and Ray Kurzweil},
    year={2017},
    eprint={1705.00652},
    archivePrefix={arXiv},
    primaryClass={cs.CL}
}

Runs of amentaphd eu-regulation-embeddings-snowflake-m-v2 on huggingface.co

22
Total runs
-2
24-hour runs
-4
3-day runs
-3
7-day runs
-2
30-day runs

More Information About eu-regulation-embeddings-snowflake-m-v2 huggingface.co Model

eu-regulation-embeddings-snowflake-m-v2 huggingface.co

eu-regulation-embeddings-snowflake-m-v2 huggingface.co is an AI model on huggingface.co that provides eu-regulation-embeddings-snowflake-m-v2's model effect (), which can be used instantly with this amentaphd eu-regulation-embeddings-snowflake-m-v2 model. huggingface.co supports a free trial of the eu-regulation-embeddings-snowflake-m-v2 model, and also provides paid use of the eu-regulation-embeddings-snowflake-m-v2. Support call eu-regulation-embeddings-snowflake-m-v2 model through api, including Node.js, Python, http.

eu-regulation-embeddings-snowflake-m-v2 huggingface.co Url

https://huggingface.co/amentaphd/eu-regulation-embeddings-snowflake-m-v2

amentaphd eu-regulation-embeddings-snowflake-m-v2 online free

eu-regulation-embeddings-snowflake-m-v2 huggingface.co is an online trial and call api platform, which integrates eu-regulation-embeddings-snowflake-m-v2's modeling effects, including api services, and provides a free online trial of eu-regulation-embeddings-snowflake-m-v2, you can try eu-regulation-embeddings-snowflake-m-v2 online for free by clicking the link below.

amentaphd eu-regulation-embeddings-snowflake-m-v2 online free url in huggingface.co:

https://huggingface.co/amentaphd/eu-regulation-embeddings-snowflake-m-v2

eu-regulation-embeddings-snowflake-m-v2 install

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

eu-regulation-embeddings-snowflake-m-v2 install url in huggingface.co:

https://huggingface.co/amentaphd/eu-regulation-embeddings-snowflake-m-v2

Url of eu-regulation-embeddings-snowflake-m-v2

eu-regulation-embeddings-snowflake-m-v2 huggingface.co Url

Provider of eu-regulation-embeddings-snowflake-m-v2 huggingface.co

amentaphd
ORGANIZATIONS

Other API from amentaphd

huggingface.co

Total runs: 10
Run Growth: 0
Growth Rate: 0.00%
Updated:June 17 2025
huggingface.co

Total runs: 8
Run Growth: 0
Growth Rate: 0.00%
Updated:April 09 2025
huggingface.co

Total runs: 2
Run Growth: 0
Growth Rate: 0.00%
Updated:June 18 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:June 18 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 23 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 10 2023