SentenceTransformer based on Octen/Octen-Embedding-0.6B
This is a sentence-transformers model finetuned from Octen/Octen-Embedding-0.6B on the csv dataset. 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: Octen/Octen-Embedding-0.6B
- Maximum Sequence Length: 64 tokens
- Output Dimensionality: 1024 dimensions
- Similarity Function: Cosine Similarity
- Training Dataset:
- csv
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': 64, '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-transformers
Then you can load this model and run inference.
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("rsl-ai/octen-embedding-0.6-finetuned")
# Run inference
queries = [
"ford transit ft 350 l td asm",
]
documents = [
'ford transit ft 350 l td',
'honda edix 2.0i',
'bmw 3er 325i',
]
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.7983, 0.0362, 0.0948]])
Evaluation
Metrics
Semantic Similarity
- Dataset:
dev-positive-pairs - Evaluated with EmbeddingSimilarityEvaluator
| Metric | Value |
|---|---|
| pearson_cosine | nan |
| spearman_cosine | nan |
Training Details
Training Dataset
csv
- Dataset: csv
- Size: 19,662 training samples
- Columns: anchor and positive
- Approximate statistics based on the first 1000 samples:
anchor positive type string string details min: 4 tokensmean: 14.85 tokensmax: 45 tokens min: 6 tokensmean: 16.96 tokensmax: 47 tokens - Samples:
anchor positive citroen c25 1400 948 citroen c 25 1400 948 volkswagen xl1 volkswagen xl1 0.8td skoda roomster 1.4 scout skoda roomster 1.4i scout - 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 }
Evaluation Dataset
csv
- Dataset: csv
- Size: 1,035 evaluation samples
- Columns: anchor and positive
- Approximate statistics based on the first 1000 samples:
anchor positive type string string details min: 3 tokensmean: 15.63 tokensmax: 42 tokens min: 7 tokensmean: 17.45 tokensmax: 43 tokens - Samples:
anchor positive вазlada granta 1.6 luxe prestige 21927-a2-5yg вазlada 2190 granta 1.6i club 21907-a1-v02 toyota land cruiser 4.0dual vvt-i sport toyota land cruiser 4.5i toyota land cruiser 3.0td 4wd toyota land cruiser 3.4d - 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
eval_strategy: epochper_device_train_batch_size: 16per_device_eval_batch_size: 32learning_rate: 2e-05lr_scheduler_type: cosinebf16: Truedataloader_num_workers: 2dataloader_prefetch_factor: 2gradient_checkpointing: Trueeval_on_start: Truebatch_sampler: no_duplicates
All Hyperparameters
do_predict: Falseeval_strategy: epochprediction_loss_only: Trueper_device_train_batch_size: 16per_device_eval_batch_size: 32gradient_accumulation_steps: 1eval_accumulation_steps: Nonetorch_empty_cache_steps: Nonelearning_rate: 2e-05weight_decay: 0.0adam_beta1: 0.9adam_beta2: 0.999adam_epsilon: 1e-08max_grad_norm: 1.0num_train_epochs: 3max_steps: -1lr_scheduler_type: cosinelr_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: Truefp16: Falsebf16_full_eval: Falsefp16_full_eval: Falsetf32: Nonelocal_rank: -1ddp_backend: Nonedebug: []dataloader_drop_last: Falsedataloader_num_workers: 2dataloader_prefetch_factor: 2disable_tqdm: Falseremove_unused_columns: Truelabel_names: Noneload_best_model_at_end: Falseignore_data_skip: Falsefsdp: []fsdp_config: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': 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: Nonedeepspeed: Nonelabel_smoothing_factor: 0.0optim: adamw_torch_fusedoptim_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: Truegradient_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: Trueuse_liger_kernel: Falseliger_kernel_config: Noneeval_use_gather_object: Falseaverage_tokens_across_devices: Trueuse_cache: Falseprompts: Nonebatch_sampler: no_duplicatesmulti_dataset_batch_sampler: proportionalrouter_mapping: {}learning_rate_mapping: {}
Training Logs
| Epoch | Step | Training Loss | Validation Loss | dev-positive-pairs_spearman_cosine |
|---|---|---|---|---|
| 0 | 0 | - | 0.1335 | nan |
| 0.0407 | 50 | 0.0100 | - | - |
| 0.0814 | 100 | 0.0187 | - | - |
| 0.1221 | 150 | 0.0160 | - | - |
| 0.1627 | 200 | 0.0155 | - | - |
| 0.2034 | 250 | 0.0141 | - | - |
| 0.2441 | 300 | 0.0133 | - | - |
| 0.2848 | 350 | 0.0136 | - | - |
| 0.3255 | 400 | 0.0134 | - | - |
| 0.3662 | 450 | 0.0083 | - | - |
| 0.4068 | 500 | 0.0310 | - | - |
| 0.4475 | 550 | 0.0086 | - | - |
| 0.4882 | 600 | 0.0197 | - | - |
| 0.5289 | 650 | 0.0174 | - | - |
| 0.5696 | 700 | 0.0086 | - | - |
| 0.6103 | 750 | 0.0108 | - | - |
| 0.6509 | 800 | 0.0275 | - | - |
| 0.6916 | 850 | 0.0072 | - | - |
| 0.7323 | 900 | 0.0080 | - | - |
| 0.7730 | 950 | 0.0220 | - | - |
| 0.8137 | 1000 | 0.0144 | - | - |
| 0.8544 | 1050 | 0.0118 | - | - |
| 0.8950 | 1100 | 0.0087 | - | - |
| 0.9357 | 1150 | 0.0075 | - | - |
| 0.9764 | 1200 | 0.0062 | - | - |
| 1.0 | 1229 | - | 0.0205 | nan |
| 1.0171 | 1250 | 0.0076 | - | - |
| 1.0578 | 1300 | 0.0092 | - | - |
| 1.0985 | 1350 | 0.0107 | - | - |
| 1.1391 | 1400 | 0.0059 | - | - |
| 1.1798 | 1450 | 0.0098 | - | - |
| 1.2205 | 1500 | 0.0037 | - | - |
| 1.2612 | 1550 | 0.0069 | - | - |
| 1.3019 | 1600 | 0.0097 | - | - |
| 1.3426 | 1650 | 0.0030 | - | - |
| 1.3832 | 1700 | 0.0106 | - | - |
| 1.4239 | 1750 | 0.0157 | - | - |
| 1.4646 | 1800 | 0.0084 | - | - |
| 1.5053 | 1850 | 0.0046 | - | - |
| 1.5460 | 1900 | 0.0103 | - | - |
| 1.5867 | 1950 | 0.0025 | - | - |
| 1.6273 | 2000 | 0.0080 | - | - |
| 1.6680 | 2050 | 0.0151 | - | - |
| 1.7087 | 2100 | 0.0099 | - | - |
| 1.7494 | 2150 | 0.0018 | - | - |
| 1.7901 | 2200 | 0.0072 | - | - |
| 1.8308 | 2250 | 0.0018 | - | - |
| 1.8714 | 2300 | 0.0096 | - | - |
| 1.9121 | 2350 | 0.0024 | - | - |
| 1.9528 | 2400 | 0.0056 | - | - |
| 1.9935 | 2450 | 0.0040 | - | - |
| 2.0 | 2458 | - | 0.0231 | nan |
| 2.0342 | 2500 | 0.0029 | - | - |
| 2.0749 | 2550 | 0.0108 | - | - |
| 2.1155 | 2600 | 0.0036 | - | - |
| 2.1562 | 2650 | 0.0080 | - | - |
| 2.1969 | 2700 | 0.0007 | - | - |
| 2.2376 | 2750 | 0.0027 | - | - |
| 2.2783 | 2800 | 0.0070 | - | - |
| 2.3190 | 2850 | 0.0048 | - | - |
| 2.3596 | 2900 | 0.0055 | - | - |
| 2.4003 | 2950 | 0.0083 | - | - |
| 2.4410 | 3000 | 0.0030 | - | - |
| 2.4817 | 3050 | 0.0131 | - | - |
| 2.5224 | 3100 | 0.0018 | - | - |
| 2.5631 | 3150 | 0.0041 | - | - |
| 2.6037 | 3200 | 0.0106 | - | - |
| 2.6444 | 3250 | 0.0117 | - | - |
| 2.6851 | 3300 | 0.0014 | - | - |
| 2.7258 | 3350 | 0.0059 | - | - |
| 2.7665 | 3400 | 0.0042 | - | - |
| 2.8072 | 3450 | 0.0122 | - | - |
| 2.8478 | 3500 | 0.0027 | - | - |
| 2.8885 | 3550 | 0.0118 | - | - |
| 2.9292 | 3600 | 0.0055 | - | - |
| 2.9699 | 3650 | 0.0147 | - | - |
| 3.0 | 3687 | - | 0.0225 | nan |
Framework Versions
- Python: 3.12.13
- Sentence Transformers: 5.3.0
- 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",
}
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},
}