Run this model with HF Jobs

Run Dharanidhar1709/checkthat-task4b-dense-ft 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/Dharanidhar1709/checkthat-task4b-dense-ft. 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/Dharanidhar1709/checkthat-task4b-dense-ft 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.

SentenceTransformer based on intfloat/e5-base-v2

This is a sentence-transformers model finetuned from intfloat/e5-base-v2. It maps inputs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, classification, clustering, and more.

Model Details

Model Description

  • Model Type: Sentence Transformer
  • Base model: intfloat/e5-base-v2
  • Maximum Sequence Length: 256 tokens
  • Output Dimensionality: 768 dimensions
  • Similarity Function: Cosine Similarity
  • Supported Modality: Text

Model Sources

Full Model Architecture

SentenceTransformer(
  (0): Transformer({'transformer_task': 'feature-extraction', 'modality_config': {'text': {'method': 'forward', 'method_output_name': 'last_hidden_state'}}, 'module_output_name': 'token_embeddings', 'architecture': 'BertModel'})
  (1): Pooling({'embedding_dimension': 768, 'pooling_mode': 'mean', 'include_prompt': True})
  (2): Normalize({'module_input_name': 'sentence_embedding', 'module_output_name': 'sentence_embedding'})
)

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 = [
    'query: adopting a principled and #ethical approach is crucial to the successful use of #ai during the #covidー19 pandemic, say steve cave and his colleagues  #aiforgood #aiskills #aiethics',
    'passage: Using AI ethically to tackle covid-19. Taking a principled approach is crucial to the successful use of AI in pandemic management, say Stephen Cave and colleagues',
    'passage: Does Nicotine Prevent Cytokine Storms in COVID-19?. COVID-19 has a benign outcome in most cases, yet it can also be fatal and no specific treatment is available as of yet. Older age and several medical comorbidities are risk factors for COVID-19 complications. We report on an elderly man with a longstanding history of bipolar affective disorder associated with heavy smoking, alcohol abuse and multiple comorbidities, including severe chronic obstructive pulmonary disease and recurrent pulmonary sepsis, who contracted COVID-19 during his inpatient treatment of a manic episode, and who fully recovered from COVID-19 without any need for respiratory support. We discuss how his excessive use of nicotine replacement therapy may have contributed to his emerging unscathed from COVID-19. Nicotine, an α7-nACh receptor agonist, may boost the cholinergic anti-inflammatory pathway and hinder the uncontrolled overproduction of pro-inflammatory cytokines triggered by the SARS-CoV-2 virus, which is understood to be the main pathway to poor outcomes and death in severe COVID-19.',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 768]

# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities)
# tensor([[ 1.0000,  0.8798, -0.0080],
#         [ 0.8798,  1.0000, -0.0242],
#         [-0.0080, -0.0242,  1.0000]])

Training Details

Training Dataset

Unnamed Dataset

  • Size: 12,832 training samples
  • Columns: sentence_0, sentence_1, and sentence_2
  • Approximate statistics based on the first 100 samples:
    sentence_0 sentence_1 sentence_2
    type string string string
    modality text text text
    details
    • min: 16 tokens
    • mean: 48.94 tokens
    • max: 82 tokens
    • min: 30 tokens
    • mean: 238.42 tokens
    • max: 256 tokens
    • min: 75 tokens
    • mean: 250.86 tokens
    • max: 256 tokens
  • Samples:
    sentence_0 sentence_1 sentence_2
    query: despite presence of antibodies, good news is that the ability to culture the virus was substantially less than in primary infections. passage: Virological characteristics of SARS-CoV-2 vaccine breakthrough infections in health care workers. SARS-CoV-2 vaccines are highly effective at preventing COVID-19-related morbidity and mortality. As no vaccine is 100% effective, breakthrough infections are expected to occur. We analyzed the virological characteristics of 161 vaccine breakthrough infections in a population of 24,706 vaccinated healthcare workers (HCWs), using RT-PCR and virus culture. The delta variant (B.1.617.2) was identified in the majority of cases. Despite similar Ct-values, we demonstrate lower probability of infectious virus detection in respiratory samples of vaccinated HCWs with breakthrough infections compared to unvaccinated HCWs with primary SARS-CoV-2 infections. Nevertheless, infectious virus was found in 68.6% of breakthrough infections and Ct-values decreased throughout the first 3 days of illness. We conclude that rare vaccine breakthrough infections occur, but infectious virus shedding is redu... passage: mRNA vaccine-induced antibodies more effective than natural immunity in neutralizing SARS-CoV-2 and its high affinity variants. Several variants of SARS-CoV-2 have emerged. Those with mutations in the angiotensin-converting enzyme (ACE2) receptor binding domain (RBD) are associated with increased transmission and severity. In this study, we developed both antibody quantification and functional neutralization assays. Analyses of both COVID-19 convalescent and diagnostic cohorts strongly support the use of RBD antibody levels as an excellent surrogate to biochemical neutralization activities. Data further revealed that the samples from mRNA vaccinated individuals had a median of 17 times higher RBD antibody levels and a similar degree of increased neutralization activities against RBD-ACE2 binding than those from natural infections. Our data showed that N501Y RBD had fivefold higher ACE2 binding than the original variant. While some antisera from naturally infected subjects had ...
    query: online now: profiling B cell immunodominance after SARS-CoV-2 infection reveals antibody evolution to non-neutralizing viral epitopes passage: Profiling B cell immunodominance after SARS-CoV-2 infection reveals antibody evolution to non-neutralizing viral targets. Dissecting the evolution of memory B cells (MBCs) against SARS-CoV-2 is critical for understanding antibody recall upon secondary exposure. Here, we utilized single-cell sequencing to profile SARS-CoV-2-reactive B cells in 38 COVID-19 patients. Using oligo-tagged antigen baits, we isolated B cells specific to the SARS-CoV-2 spike, nucleoprotein (NP), open reading frame 8 (ORF8), and endemic coronavirus (HCoV) spike proteins. SARS-CoV-2 spike-specific cells were enriched in the memory compartment of acutely infected and convalescent patients several months post-symptom onset. With severe acute infection, substantial populations of endemic HCoV-reactive antibody-secreting cells were identified and possessed highly mutated variable genes, signifying preexisting immunity. Finally, MBCs exhibited pronounced maturation to NP and ORF8 over time, especially in olde... passage: Evolution of antibody immunity to SARS-CoV-2.. Severe acute respiratory syndrome coronavirus-2 (SARS-CoV-2) has infected 78 million individuals and is responsible for over 1.7 million deaths to date. Infection is associated with development of variable levels of antibodies with neutralizing activity that can protect against infection in animal models1,2. Antibody levels decrease with time, but the nature and quality of the memory B cells that would be called upon to produce antibodies upon re-infection has not been examined. Here we report on the humoral memory response in a cohort of 87 individuals assessed at 1.3 and 6.2 months after infection. We find that IgM, and IgG anti-SARS-CoV-2 spike protein receptor binding domain (RBD) antibody titres decrease significantly with IgA being less affected. Concurrently, neutralizing activity in plasma decreases by fivefold in pseudotype virus assays. In contrast, the number of RBD-specific memory B cells is unchanged. Memory B cells d...
    query: There is so much we still need to learn about which coronaviruses are capable of infecting humans: isolation of a novel feline coronavirus from a visitor to Haiti. passage: Isolation of a Novel Recombinant Canine Coronavirus from a Visitor to Haiti: Further Evidence of Transmission of Coronaviruses of Zoonotic Origin to Humans. We isolated a novel coronavirus from a medical team member presenting with fever and malaise after travel to Haiti. The virus showed 99.4% similarity with a recombinant canine coronavirus recently identified in a pneumonia patient in Malaysia, suggesting that infection with this virus and/or recombinant variants occurs in multiple locations. passage: A human coronavirus evolves antigenically to escape antibody immunity. There is intense interest in antibody immunity to coronaviruses. However, it is unknown if coronaviruses evolve to escape such immunity, and if so, how rapidly. Here we address this question by characterizing the historical evolution of human coronavirus 229E. We identify human sera from the 1980s and 1990s that have neutralizing titers against contemporaneous 229E that are comparable to the anti-SARS-CoV-2 titers induced by SARS-CoV-2 infection or vaccination. We test these sera against 229E strains isolated after sera collection, and find that neutralizing titers are lower against these “future” viruses. In some cases, sera that neutralize contemporaneous 229E viral strains with titers >1:100 do not detectably neutralize strains isolated 8–17 years later. The decreased neutralization of “future” viruses is due to antigenic evolution of the viral spike, especially in the receptor-binding domain. If these r...
  • Loss: MultipleNegativesRankingLoss with these parameters:
    {
        "scale": 20.0,
        "similarity_fct": "cos_sim",
        "gather_across_devices": false,
        "directions": [
            "query_to_doc"
        ],
        "partition_mode": "joint",
        "hardness_mode": null,
        "hardness_strength": 0.0
    }
    

Training Hyperparameters

Non-Default Hyperparameters

  • per_device_train_batch_size: 32
  • num_train_epochs: 1
  • per_device_eval_batch_size: 32
  • batch_sampler: no_duplicates
  • multi_dataset_batch_sampler: round_robin

All Hyperparameters

Click to expand
  • per_device_train_batch_size: 32
  • num_train_epochs: 1
  • max_steps: -1
  • learning_rate: 5e-05
  • lr_scheduler_type: linear
  • lr_scheduler_kwargs: None
  • warmup_steps: 0
  • optim: adamw_torch_fused
  • optim_args: None
  • weight_decay: 0.0
  • adam_beta1: 0.9
  • adam_beta2: 0.999
  • adam_epsilon: 1e-08
  • optim_target_modules: None
  • gradient_accumulation_steps: 1
  • average_tokens_across_devices: True
  • max_grad_norm: 1
  • label_smoothing_factor: 0.0
  • bf16: False
  • fp16: False
  • bf16_full_eval: False
  • fp16_full_eval: False
  • tf32: None
  • gradient_checkpointing: False
  • gradient_checkpointing_kwargs: None
  • torch_compile: False
  • torch_compile_backend: None
  • torch_compile_mode: None
  • use_liger_kernel: False
  • liger_kernel_config: None
  • use_cache: False
  • neftune_noise_alpha: None
  • torch_empty_cache_steps: None
  • auto_find_batch_size: False
  • log_on_each_node: True
  • logging_nan_inf_filter: True
  • include_num_input_tokens_seen: no
  • log_level: passive
  • log_level_replica: warning
  • disable_tqdm: False
  • project: huggingface
  • trackio_space_id: None
  • trackio_bucket_id: None
  • trackio_static_space_id: None
  • per_device_eval_batch_size: 32
  • prediction_loss_only: True
  • eval_on_start: False
  • eval_do_concat_batches: True
  • eval_use_gather_object: False
  • eval_accumulation_steps: None
  • include_for_metrics: []
  • batch_eval_metrics: False
  • save_only_model: False
  • save_on_each_node: False
  • enable_jit_checkpoint: False
  • push_to_hub: False
  • hub_private_repo: None
  • hub_model_id: None
  • hub_strategy: every_save
  • hub_always_push: False
  • hub_revision: None
  • load_best_model_at_end: False
  • ignore_data_skip: False
  • restore_callback_states_from_checkpoint: False
  • full_determinism: False
  • seed: 42
  • data_seed: None
  • use_cpu: False
  • accelerator_config: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
  • parallelism_config: None
  • dataloader_drop_last: False
  • dataloader_num_workers: 0
  • dataloader_pin_memory: True
  • dataloader_persistent_workers: False
  • dataloader_prefetch_factor: None
  • dataloader_multiprocessing_context: None
  • dataloader_in_order: True
  • remove_unused_columns: True
  • label_names: None
  • train_sampling_strategy: random
  • length_column_name: length
  • ddp_find_unused_parameters: None
  • ddp_bucket_cap_mb: None
  • ddp_broadcast_buffers: False
  • ddp_static_graph: None
  • ddp_backend: None
  • ddp_timeout: 1800
  • fsdp: None
  • fsdp_config: None
  • deepspeed: None
  • debug: []
  • skip_memory_metrics: True
  • do_predict: False
  • resume_from_checkpoint: None
  • local_rank: -1
  • prompts: None
  • batch_sampler: no_duplicates
  • multi_dataset_batch_sampler: round_robin
  • router_mapping: {}
  • learning_rate_mapping: {}
  • activation_checkpointing: False
  • activation_checkpointing_kwargs: None
  • warmup_ratio: None

Training Time

  • Training: 12.2 minutes

Framework Versions

  • Python: 3.13.16
  • Sentence Transformers: 6.3.0
  • Transformers: 5.20.2
  • PyTorch: 2.11.0+cu130
  • Accelerate: 1.16.0
  • Datasets: 4.8.5
  • Tokenizers: 0.23.3

Additional Resources

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",
}

MultipleNegativesRankingLoss

@misc{oord2019representationlearningcontrastivepredictive,
      title={Representation Learning with Contrastive Predictive Coding},
      author={Aaron van den Oord and Yazhe Li and Oriol Vinyals},
      year={2019},
      eprint={1807.03748},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/1807.03748},
}
Downloads last month
-
Safetensors
Model size
0.1B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Dharanidhar1709/checkthat-task4b-dense-ft

Finetuned
(82)
this model

Papers for Dharanidhar1709/checkthat-task4b-dense-ft