ChenyuEcho/corruption_emaillevel_DPO
SentenceTransformer based on Qwen/Qwen3-Embedding-0.6B
This is a sentence-transformers model finetuned from Qwen/Qwen3-Embedding-0.6B. It maps sentences & paragraphs to a 1024-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: Qwen/Qwen3-Embedding-0.6B <!-- at revision c54f2e6e80b2d7b7de06f51cec4959f6b3e03418 -->
- Maximum Sequence Length: 32768 tokens
- Output Dimensionality: 1024 dimensions
- Similarity Function: Cosine Similarity <!-- - Training Dataset: Unknown --> <!-- - Language: Unknown --> <!-- - License: Unknown -->
Model Sources
- Documentation: Sentence Transformers Documentation
- Repository: Sentence Transformers on GitHub
- Hugging Face: Sentence Transformers on Hugging Face
Full Model Architecture
SentenceTransformer(
(0): Transformer({'max_seq_length': 32768, 'do_lower_case': False, 'architecture': 'Qwen3Model'})
(1): Pooling({'word_embedding_dimension': 1024, 'pooling_mode_cls_token': False, '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': True, 'include_prompt': True})
(2): Normalize()
)Usage
Direct Usage (Sentence Transformers)
First install the Sentence Transformers library:
pip install -U sentence-transformersThen 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
queries = [
"Which employees discussed circumventing compliance protocols to secure government approvals?",
]
documents = [
'Subject: PRIVILEGED AND CONFIDENTIAL - ATTORNEY-CLIENT COMMUNICATION - Mexico Operations Concern\nDate: 2025-09-17T08:05:00\nFrom: Jennifer Walsh\nParticipants: Sarah Mitchell\n\nBody:\nHi Sarah,\n\nFor the record, I am forwarding a summary of a serious anonymous complaint received via our ethics hotline regarding our Mexico operations. The report alleges that the EHS Manager (Ricardo Mendez) hosted multiple dinners with a local government official, provided gifts, and facilitated payments through fake invoices. There are further red flags: the Country Manager (Carlos Delgado) is alleged to have been aware, and there are mentions of organized crime involvement. These allegations, if substantiated, raise significant FCPA exposure.\n\nI strongly recommend we immediately engage outside counsel with FCPA expertise to lead an independent investigation. We must document everything, preserve all potentially relevant documents and communications, and strictly limit knowledge of this matter to essential personnel only. Please confirm next steps and advise on initial outreach to external counsel. Are there any additional protocols you want implemented at this stage?\n\nBest regards,\nJennifer\n\n--\nJennifer Walsh\nVice President, Global Compliance & Ethics\nAgave Spirits International\nCONFIDENTIAL - Attorney Work Product',
"Subject: Re: Request for Special Pricing Exception – Key Distributor Opportunity (Q4 Impact)\nDate: 2025-09-15T16:23:00\nFrom: Thomas Bradford\nParticipants: Kevin O'Brien\n\nBody:\nHi Kevin,\n\nThank you for flagging this opportunity and providing context regarding the potential impact on our Q4 numbers. I agree that winning this distributor could be a game-changer, but we need to ensure any pricing exception aligns with our compliance framework and avoids unintended precedents. Sarah, could you please review the specifics from a legal/compliance standpoint and advise on any restrictions or additional documentation required? Assuming there are no major obstacles, I'm supportive of proceeding with a tailored discount to secure the account.\n\nLet’s coordinate a quick call Monday to finalize.\n\nBest,\nTom",
'Subject: Re: Urgent: Water Permit Renewal Delay Threatening Production Levels\nDate: 2025-08-25T15:02:00\nFrom: Carlos Delgado\nParticipants: Roberto Garza\n\nBody:\nHola Roberto,\n\nThank you for raising your concerns. I completely understand the pressure this delay puts on the plant, but I want to reassure you that Rick has the situation well in hand. We’ve been investing a lot in our relationship with the local authorities—In Mexico, relationships matter, ya sabes. The mayor has been very receptive to our efforts, and we’ve had several productive meetings (and just a small dinner or two) with municipal leadership. This is how business is done here; these things take relationship building, and I’m confident we’ll have good news soon. Por favor, don’t worry—déjalo en nuestras manos. I’ll keep you posted as soon as I hear anything definitive.\n\nUn abrazo,\nCarlos',
]
query_embeddings = model.encode_query(queries)
document_embeddings = model.encode_document(documents)
print(query_embeddings.shape, document_embeddings.shape)
# [1, 1024] [3, 1024]
# Get the similarity scores for the embeddings
similarities = model.similarity(query_embeddings, document_embeddings)
print(similarities)
# tensor([[ 0.3281, -0.1060, 0.0874]], dtype=torch.bfloat16)<!--
Direct Usage (Transformers)
<details><summary>Click to see the direct usage in Transformers</summary>
</details> -->
<!--
Downstream Usage (Sentence Transformers)
You can finetune this model on your own dataset.
<details><summary>Click to expand</summary>
</details> -->
<!--
Out-of-Scope Use
List how the model may foreseeably be misused and address what users ought not to do with the model. -->
Evaluation
Metrics
Information Retrieval
- Dataset:
val_full_corpus - Evaluated with <code>InformationRetrievalEvaluator</code>
<!--
Bias, Risks and Limitations
What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model. -->
<!--
Recommendations
What are recommendations with respect to the foreseeable issues? For example, filtering explicit content. -->
Training Details
Training Dataset
Unnamed Dataset
- Size: 1,548 training samples
- Columns: <code>sentence0</code>, <code>sentence1</code>, <code>sentence2</code>, <code>sentence3</code>, and <code>sentence_4</code>
- Approximate statistics based on the first 1000 samples: | | sentence0 | sentence1 | sentence2 | sentence3 | sentence_4 | |:--------|:----------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------| | type | string | string | string | string | string | | details | <ul><li>min: 7 tokens</li><li>mean: 13.67 tokens</li><li>max: 27 tokens</li></ul> | <ul><li>min: 129 tokens</li><li>mean: 226.59 tokens</li><li>max: 511 tokens</li></ul> | <ul><li>min: 129 tokens</li><li>mean: 218.17 tokens</li><li>max: 511 tokens</li></ul> | <ul><li>min: 129 tokens</li><li>mean: 216.09 tokens</li><li>max: 511 tokens</li></ul> | <ul><li>min: 129 tokens</li><li>mean: 218.05 tokens</li><li>max: 511 tokens</li></ul> |
- Samples: | sentence0 | sentence1 | sentence2 | sentence3 | sentence_4 | |:-----------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | <code>Internal communications regarding upcoming tequila industry regulations</code> | <code>Subject: Upcoming Regulatory Comment Period: Tequila Industry Associations<br>Date: 2025-12-08T07:41:00<br>From: Sarah Mitchell<br>Participants: Thomas Bradford; Patricia Reeves<br><br>Body:<br>Dear Colleagues,<br><br>I wanted to bring to your attention the forthcoming public comment period for the draft regulations being proposed for tequila industry associations. This is a critical opportunity for industry stakeholders to present their perspectives and ensure that the final framework reflects operational realities and best practices. I encourage all relevant departments to review the proposal closely and prepare any formal comments or suggestions to submit before the deadline. Please coordinate internally to consolidate feedback and let me know if you require any support or clarification regarding the submission process.<br><br>Thank you and best regards,<br><br>Sarah Mitchell<br>General Counsel</code> | <code>Subject: Request for Approval: Maintenance Budget Variance – Q2<br>Date: 2026-01-26T10:51:00<br>From: David Chen<br>Participants: Maria Santos<br><br>Body:<br>Hi Maria,<br><br>Following a detailed review of our Q2 maintenance expenditures, the data shows that actual costs exceeded the initial budget by 18%. The variance stems primarily from unanticipated repairs to the distillation equipment and supply chain delays that increased third-party maintenance fees. From a financial perspective, I require a full breakdown of each line item, accompanying invoices, and a variance analysis compared to the original budget. Vague descriptors such as 'misc. repairs' are not sufficient for approval—please provide supporting documentation and justifications for each overage. Once I have this detail, I will evaluate the request accordingly.<br><br>Thanks,<br>David</code> | <code>Subject: Request for Travel Budget Exception: Supplier Audit in Guadalajara<br>Date: 2025-10-13T18:03:00<br>From: Miguel Torres<br>Participants: Maria Santos<br><br>Body:<br>Hi Maria,<br><br>I am writing to request a travel budget exception for our upcoming supplier audit in Guadalajara. The current accounts do not cover the additional airfare and lodging costs, which are $1,830 MXN and $3,200 MXN respectively, as vendor rates have increased by 15% since last quarter. The data shows this audit is required to maintain ISO compliance and mitigate supply chain risks. Please advise what documentation you require to process this exception. I have attached initial quotes and the audit schedule for your review.<br><br>Thank you for your prompt attention to this matter.<br><br>Best regards,<br>Miguel<br><br>--<br>Miguel Torres<br>Procurement Manager<br>ASI Mexico</code> | <code>Subject: Campaña en redes sociales: control del mensaje y estrategia proactiva<br>Date: 2025-11-10T08:50:00<br>From: Daniel Wright<br>Participants: Tom Bradford; Patricia Reeves<br><br>Body:<br>Estimados,<br><br>Quisiera poner sobre la mesa la importancia de definir una narrativa clara y cohesiva antes de lanzar cualquier contenido de nuestra próxima campaña en redes sociales. Me preocupa cómo pueden interpretarse ciertos mensajes externos, especialmente en el actual clima mediático. Debemos asegurarnos de que cada publicación refuerce la reputación ética y la transparencia de Agave Spirits International. Sugiero que revisemos juntos el calendario de publicaciones y los mensajes clave antes de su difusión para anticipar posibles titulares en la prensa y evitar interpretaciones adversas.<br><br>Quedo atento a sus comentarios para coordinar una reunión esta semana.<br><br>Saludos cordiales,<br>Daniel Wright<br><br>--<br>Daniel Wright<br>Director, Corporate Communications<br>Agave Spirits International</code> | | <code>How did managers justify onboarding shell or lightly documented consulting firms?</code> | <code>Subject: Re: New Vendor Setup - Consultoria Verde de Jalisco (Urgent)<br>Date: 2025-12-22T09:26:00<br>From: Carlos Delgado<br>Participants: Michelle Santos; Ricardo Mendez<br><br>Body:<br>Hola Michelle,<br><br>Rick is right—this is a top priority for our Mexico operations and we need Consultoria Verde de Jalisco operational immediately. I’ve personally reviewed the engagement: it’s just straightforward EHS consulting, nothing more. Please process their setup under the standard track and we’ll deliver any remaining documentation early next week. En México, las relaciones importan y así se mueve el negocio—if we wait, we risk operational disruption. I appreciate your attention to compliance, but sometimes local realities require us to act with agility. Let me know if you need anything else from my side, but for now, I ask you to move forward as requested. Gracias por tu apoyo y comprensión.<br><br>Saludos,<br>Carlos</code> | <code>Subject: PRIVILEGED AND CONFIDENTIAL - ATTORNEY-CLIENT COMMUNICATION - Mexico Operations Concern<br>Date: 2025-09-17T08:05:00<br>From: Jennifer Walsh<br>Participants: Sarah Mitchell<br><br>Body:<br>Hi Sarah,<br><br>For the record, I am forwarding a summary of a serious anonymous complaint received via our ethics hotline regarding our Mexico operations. The report alleges that the EHS Manager (Ricardo Mendez) hosted multiple dinners with a local government official, provided gifts, and facilitated payments through fake invoices. There are further red flags: the Country Manager (Carlos Delgado) is alleged to have been aware, and there are mentions of organized crime involvement. These allegations, if substantiated, raise significant FCPA exposure.<br><br>I strongly recommend we immediately engage outside counsel with FCPA expertise to lead an independent investigation. We must document everything, preserve all potentially relevant documents and communications, and strictly limit knowledge of this matter to essential ...</code> | <code>Subject: Campaña en redes sociales: control del mensaje y estrategia proactiva<br>Date: 2025-11-10T08:50:00<br>From: Daniel Wright<br>Participants: Tom Bradford; Patricia Reeves<br><br>Body:<br>Estimados,<br><br>Quisiera poner sobre la mesa la importancia de definir una narrativa clara y cohesiva antes de lanzar cualquier contenido de nuestra próxima campaña en redes sociales. Me preocupa cómo pueden interpretarse ciertos mensajes externos, especialmente en el actual clima mediático. Debemos asegurarnos de que cada publicación refuerce la reputación ética y la transparencia de Agave Spirits International. Sugiero que revisemos juntos el calendario de publicaciones y los mensajes clave antes de su difusión para anticipar posibles titulares en la prensa y evitar interpretaciones adversas.<br><br>Quedo atento a sus comentarios para coordinar una reunión esta semana.<br><br>Saludos cordiales,<br>Daniel Wright<br><br>--<br>Daniel Wright<br>Director, Corporate Communications<br>Agave Spirits International</code> | <code>Subject: Upcoming Regulatory Comment Period: Tequila Industry Associations<br>Date: 2025-12-08T07:41:00<br>From: Sarah Mitchell<br>Participants: Thomas Bradford; Patricia Reeves<br><br>Body:<br>Dear Colleagues,<br><br>I wanted to bring to your attention the forthcoming public comment period for the draft regulations being proposed for tequila industry associations. This is a critical opportunity for industry stakeholders to present their perspectives and ensure that the final framework reflects operational realities and best practices. I encourage all relevant departments to review the proposal closely and prepare any formal comments or suggestions to submit before the deadline. Please coordinate internally to consolidate feedback and let me know if you require any support or clarification regarding the submission process.<br><br>Thank you and best regards,<br><br>Sarah Mitchell<br>General Counsel</code> | | <code>What internal controls are in place for reviewing beneficiary account changes before processing payments?</code> | <code>Subject: Re: Urgent: Discrepancy in Beneficiary Account Information for Broker Payment<br>Date: 2025-10-22T20:38:00<br>From: Maria Santos<br>Participants: James Cooper<br><br>Body:<br>Hi James,<br><br>Thank you for catching this and bringing it to my attention. I've already reached out to the broker requesting the latest official documentation confirming their beneficiary account details. As soon as I receive the required paperwork, I will forward it to you for review. If you have a preferred template or checklist you'd like the broker to use, please send it along, and I'll make sure it's followed to the letter. My priority is to ensure compliance and avoid any delays in the payment process.<br><br>Appreciate your vigilance on this,<br>Maria</code> | <code>Subject: Trade Association Political Activity Disclosure and Government Engagement Compliance<br>Date: 2025-10-13T08:19:00<br>From: Amanda Foster<br>Participants: Sarah Mitchell<br><br>Body:<br>Hi Sarah,<br><br>I wanted to touch base regarding our upcoming trade association political activity disclosures and ensure we remain fully compliant with both US (e.g., LDA, FARA) and Mexican (Transparencia y Acceso a la Información Pública) regulations. As you know, all ASI government interactions are run through our pre-clearance process, including detailed documentation of business purposes and regulatory filings. Routine reporting—such as our semi-annual LDA filings in the US and quarterly submissions to Mexican authorities—reflects only legitimate, transparent engagement, all pre-approved in writing and logged for audit purposes. This diligence is especially critical given recent events involving unofficial channels.<br><br>Let me know if you need any further documentation from Government Relations for the upcoming comp...</code> | <code>Subject: RE: Request for Departmental Budget Inputs – FY2025 Planning<br>Date: 2025-08-12T15:38:00<br>From: Carlos Delgado<br>Participants: Maria Santos<br><br>Body:<br>Dear Maria,<br><br>Thank you for your detailed instructions on the budget process. Attached you will find our department’s completed budget template for FY2025, with all supporting documentation as requested. We have taken special care to ensure that each line item is accompanied by clear justifications. As siempre, I want to highlight that in Mexico, relationships matter—a veces eso means a small dinner with community leaders or a modest contribution to local fiestas (you'll see these reflected under 'Community & Stakeholder Engagement'). This is how business is done here; these are key to maintaining our strong ties and smooth operational flow.<br><br>Please note, we have pending invoices for environmental consulting that will be forwarded next week. If there are any doubts or further documentation needed, let me know and our team will resolve the...</code> | <code>Subject: Revisión de posicionamiento de marca y objetivos de Q4<br>Date: 2025-10-13T15:16:00<br>From: Kevin O'Brien<br>Participants: Thomas Tom Bradford; Sarah Mitchell; Patricia Reeves<br><br>Body:<br>Estimado equipo ejecutivo,<br><br>Quisiera destacar que, mientras nos acercamos al cierre de Q4, hemos observado cambios importantes en el posicionamiento de nuestra marca dentro del mercado norteamericano. Nuestros números preliminares de ventas indican una mejora notable en la cuota de mercado, especialmente en canales premium y distribución independiente. Sin embargo, la competencia está reaccionando agresivamente, lo que implica un ajuste ágil de nuestras estrategias de precio y visibilidad en el punto de venta. Si bien entiendo la importancia de los procesos de compliance, me preocupa que algunas revisiones internas estén ralentizando cierres claves justo en temporada alta. Sugiero que exploremos vías para agilizar la aprobación de nuevos contratos sin perder el control ni la transparencia requerida.<br><br>Agra...</code> |
- Loss: <code>_main_.DPOLoss</code>
Training Hyperparameters
Non-Default Hyperparameters
per_device_train_batch_size: 6per_device_eval_batch_size: 6multi_dataset_batch_sampler: round_robin
All Hyperparameters
<details><summary>Click to expand</summary>
do_predict: Falseeval_strategy: noprediction_loss_only: Trueper_device_train_batch_size: 6per_device_eval_batch_size: 6gradient_accumulation_steps: 1eval_accumulation_steps: Nonetorch_empty_cache_steps: Nonelearning_rate: 5e-05weight_decay: 0.0adam_beta1: 0.9adam_beta2: 0.999adam_epsilon: 1e-08max_grad_norm: 1num_train_epochs: 3max_steps: -1lr_scheduler_type: linearlr_scheduler_kwargs: Nonewarmup_ratio: Nonewarmup_steps: 0log_level: passivelog_level_replica: warninglog_on_each_node: Truelogging_nan_inf_filter: Trueenable_jit_checkpoint: Falsesave_on_each_node: Falsesave_only_model: Falserestore_callback_states_from_checkpoint: Falseuse_cpu: Falseseed: 42data_seed: Nonebf16: Falsefp16: Falsebf16_full_eval: Falsefp16_full_eval: Falsetf32: Nonelocal_rank: -1ddp_backend: Nonedebug: []dataloader_drop_last: Falsedataloader_num_workers: 0dataloader_prefetch_factor: Nonedisable_tqdm: Falseremove_unused_columns: Truelabel_names: Noneload_best_model_at_end: Falseignore_data_skip: Falsefsdp: []fsdp_config: {'minnumparams': 0, 'xla': False, 'xlafsdpv2': False, 'xlafsdpgrad_ckpt': False}accelerator_config: {'splitbatches': False, 'dispatchbatches': None, 'evenbatches': True, 'useseedablesampler': True, 'nonblocking': False, 'gradientaccumulationkwargs': None}parallelism_config: Nonedeepspeed: Nonelabel_smoothing_factor: 0.0optim: adamwtorchfusedoptim_args: Nonegroup_by_length: Falselength_column_name: lengthproject: huggingfacetrackio_space_id: trackioddp_find_unused_parameters: Noneddp_bucket_cap_mb: Noneddp_broadcast_buffers: Falsedataloader_pin_memory: Truedataloader_persistent_workers: Falseskip_memory_metrics: Truepush_to_hub: Falseresume_from_checkpoint: Nonehub_model_id: Nonehub_strategy: every_savehub_private_repo: Nonehub_always_push: Falsehub_revision: Nonegradient_checkpointing: Falsegradient_checkpointing_kwargs: Noneinclude_for_metrics: []eval_do_concat_batches: Trueauto_find_batch_size: Falsefull_determinism: Falseddp_timeout: 1800torch_compile: Falsetorch_compile_backend: Nonetorch_compile_mode: Noneinclude_num_input_tokens_seen: noneftune_noise_alpha: Noneoptim_target_modules: Nonebatch_eval_metrics: Falseeval_on_start: Falseuse_liger_kernel: Falseliger_kernel_config: Noneeval_use_gather_object: Falseaverage_tokens_across_devices: Trueuse_cache: Falseprompts: Nonebatch_sampler: batch_samplermulti_dataset_batch_sampler: round_robinrouter_mapping: {}learning_rate_mapping: {}
</details>
Training Logs
Framework Versions
- Python: 3.12.12
- Sentence Transformers: 5.2.3
- Transformers: 5.0.0
- PyTorch: 2.10.0+cu128
- Accelerate: 1.13.0
- Datasets: 4.0.0
- Tokenizers: 0.22.2
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",
}<!--
Glossary
Clearly define terms in order to be accessible across audiences. -->
<!--
Model Card Authors
Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction. -->
<!--
Model Card Contact
Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors. -->
