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
- Maximum Sequence Length: 256 tokens
- Output Dimensionality: 1024 dimensions
- Similarity Function: Cosine Similarity
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': 256, '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("sentence_transformers_model_id")
# Run inference
queries = [
"Current request: Maybe, but I\u0027m not sure I need more nail stuff right now.\nConversation:\nuser: I\u0027ve been using those KBShimmer polishes I picked up, but my nail art feels kinda basic.\nassistant: Gotcha. Looking for any tools to step it up?\nuser: I doubt a tool would help much\u2014I already have my purple brush set.\nassistant: Brushes are good for blending, but dotting pens make precise dots and swirls.\nuser: Maybe, but I\u0027m not sure I need more nail stuff right now.",
]
documents = [
'Dotting 5 X 2 Way Marbleizing Dotting Pen Set for Nail Art Manicure Pedicure, 4 Ounce\nCategory: Beauty Description: 5 X 2 way marbleizing dotting pen set for nail art manicure pedicure in 10 different shape.',
'Debra Lynn Professional 10 pcs. Acrylics Nail Brush Set\nCategory: Beauty Description: Product Description Create great nail art designs with this assortment of synthetic brushes',
"MINING PIXELATED GLOW IN THE DARK Bracelets Wristbands Kids Birthday Party Favors Supplies Video Game (12 pack)\nBrand: MA Creations Category: Toys & Games > Party Supplies > Party Favors Features: <p>SAFE TO USE - Our premium quality silicone bracelets are Non-stick, Water-proof, Eco-friendly, non-toxic, RoHs approved, 100% Flexible Silicone.</p> <p>PARTY FAVORS - Great For Themed Birthday Parties, Party Favors, Gaming With Your Friends, Good Bag Stuffers, Classroom Rewards and Room Decorations.</p> <p>SET OF 13 - Glow In The Dark and High Quality Debossed Lettering.</p> <p>SIZE - Medium ( 7.95 inches x 0.47 inches x 2 mm), fits a 6 year old's wrist, up to a medium framed adult<p/> <p>100% Money Back Guarantee, If you're not satisfied with your purchase.</p> Description: GLOW IN THE DARK - MINING PIXELATED BRACELETS - GREAT FOR THEMED BIRTHDAY PARTIES, BIRTHDAY PARTY FAVORS, GOODY BAG STUFFERS, SCHOOL FUNDRAISERS/FESTIVALS, CLASSROOM REWARDS, VALENTINE'S DAY GRAMS, EASTER BASKET TOYS, GLOW IN THE DARK STICKS, ROOM DECORATIONS, ETC. Features: 1. Size: Medium 2. 100% silicone 3. Never goes out of shape or fades 4. RoHs approved, Eco-friendly, non-toxic, and safe 5. Multicolor 6. Soft, flexible, excellent abrasion resistance 7. Non-stick finish, water-proof, elastic and comfortable design 8. Can return to their original shape when you take them off your wristband 9. Please make sure to charge your bracelets under direct sun or artificial light to activate Glow In The Dark Feature COLLECT THEM ALL! Details: Material: Silicone Brand: MA Creations Age Range (Description): 6 year old Size: Medium Item Weight: 0.06 Kilograms Package Dimensions: 3.31 x 2.48 x 2.36 inches; 2.08 Ounces Manufacturer recommended age: 5 years and up Item model number: 742185177114 Department: Kids Date First Available: July 18, 2019 Manufacturer: MA Creations",
]
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.4616, 0.2195, -0.0393]])
Training Details
Training Dataset
Unnamed Dataset
- Size: 4,347 training samples
- Columns: anchor, positive, and negative_1
- Approximate statistics based on the first 1000 samples:
anchor positive negative_1 type string string string details min: 60 tokensmean: 124.05 tokensmax: 209 tokens min: 10 tokensmean: 184.0 tokensmax: 256 tokens min: 19 tokensmean: 223.29 tokensmax: 256 tokens - Samples:
anchor positive negative_1 Current request: Easy cleaning is key since he tracks in dirt, and yes, joint support would be great for an older dog.Conversation:user: My big dog needs a new bed for his crate. He’s around 100 lbs and tends to sprawl out when he sleeps.assistant: Do you care more about easy cleaning or orthopedic support for his joints? And would a water-resistant lining matter for your setup?user: Easy cleaning is key since he tracks in dirt, and yes, joint support would be great for an older dog. Barkbox Tufted Soft Foam Dog Bed, Orthopedic Crate Pillow Cushion for Dogs & Cats, Machine Washable Cover with Water-Resistant Lining, Includes Squeaker ToyBrand: Barkbox Category: Pet Supplies > Dogs > Beds & Furniture > Beds Features: Perfect Dog Size for Your Pup: Our x-large tufted dog bed is 41” x 29” x 4" and comfortably fits breeds like Golden Retriever, Labrador Retriever, Pit bull, Standard Poodle, and other similarly sized dogs up to 120 lbs. Chipped Foam Mattress: With chipped memory foam filler and a soft plush cover, your dog will doze off and dream big while the bed forms to your dog’s sleeping position. Removable, Water-Resistant, & Machine Washable Cover: Keep your dog’s bed looking, smelling, and feeling fresh and clean. The zippered cover slides off easily for convenient machine wash cleaning. The Fuzzy Mattress Bed: This dog bed is the sleeping staple to give any and all dogs the sleep of their dreams. Just remember to fluff up the bed and give the bed some time to ... Berkley Trilene XL Monofilament Fishing LineBrand: Berkley Category: Sports & Outdoors > Hunting & Fishing > Fishing > Fishing Line > Monofilament Line Features: BERKLEY TRILENE XL: Don't let fish off the hook. Stronger and smoother than ever before, this versatile clear fishing line offers exceptional performance with a wide variety of baits and techniques. MAXIMUM MANAGEABILITY: This mono fishing line resists twists and kinks allowing for remarkably smooth casting that lets you land your lure exactly where you want it. HIGH STRENGTH PER DIAMETER MONOFILAMENT FISHING LINE: This easy-casting fish line offers a break strength of 4lb | 1.8kg. Length: 1000yd | 914m. The Clear design disguises the presence of the line when submerged. POWERFUL FISHING PARTNER: With optimal wet strength, this heavy duty fishing line maintains its durability even when submerged for confidence and control in any situation. WIDE RANGE OF BREAK STRENGTHS AVAILABLE, from 2 pounds to 30. Diameter of 0.008in | 0.2... Current request: Soak in fast sounds fake—how would that help my over-processed strands?Conversation:user: I've been using my shears and dryer from before, but I'm pretty skeptical of hair oils making my hair greasy.assistant: That makes sense, a lot of them sit heavy on styled hair.user: Yeah, and my salon boards are for nails anyway, so I need something that won't mess up my hair routine.assistant: Some lightweight formulas actually soak in fast and leave a silky finish without buildup.user: Soak in fast sounds fake—how would that help my over-processed strands? Moroccan Oil Hair Treatment 3.4 Oz Bottle with Blue BoxCategory: Beauty Description: Moroccanoil is an ultra-light formula which is absorbed by the hair instantly, resulting in a natural, silky finish and brilliant shine. Moroccanoil has the ability to restore over-processed hair damaged by environmental factors and chemical procedures - it also revives, hydrates and detangles hair, wigs and hair extensions. KMC Missing Link Bicycle Chain Link (9-Speed, 6-Pack) SilverBrand: KMC Category: Sports & Outdoors > Sports > Cycling > Parts & Components > Drivetrain Components > Chains Features: Package length: 0.762 cm Package width: 8.89 cm Package height: 17.526 cm Product Type: OUTDOOR RECREATION PRODUCT Description: Connect and disconnect KMC chains with no tools required Details: Item Package Dimensions L x W x H: 6.9 x 3.5 x 0.3 inches Package Weight: 0.02 Kilograms Item Dimensions LxWxH: 7 x 4 x 1 inches Item Weight: 0.05 Pounds Brand Name: KMC Warranty Description: Replace if was broken from factory Model Name: CH4001 Color: Silver Material: Other Suggested Users: Mens Number of Items: 1 Manufacturer: KMC Part Number: MissingLink-9R, card of 6 sets Style: 9-speed Included Components: 6 chains Outer Material: Aluminum Size: 6 Pack Sport Type: Cycling Best Sellers Rank: {'Sports & Outdoors': 321928, 'Bike Chains': 411} Date First Available: January 16, 2009 Brand: KMC Strand Type: Single Re... Current request: Yeah, just a quick tint, no commitment or streaks.Conversation:user: I've been happy with that lavender sugar scrub and the clear side combs I got earlier, but I want something for a temporary skin glow.assistant: Nice, those are good picks. Are you looking for something that washes off easily?user: Yeah, just a quick tint, no commitment or streaks. L'Oreal Paris Sublime Bronze One-Day Tinted Gel, 6.7-Fluid OunceCategory: Beauty Description: Sublime Bronze One Day Instant Tanning Gel delivers a sheer tint of bronze color that lasts up to one day. This unique quick-drying formulation with natural caramel colorant and golden pearls gives skin a natural-looking sun-kissed glow. The no-mistakes formula washes away with soap and water. Mighty Paw Retractable Leash with Built-in Poop Bag Holder | 16' Long Retractable Dog Leash for Small Dogs, Medium Breeds & Large Pets. Dog Leash Retractable Tape for Quick Control. Poop Bags IncludedBrand: Mighty Paw Category: Pet Supplies > Dogs > Collars, Harnesses & Leashes > Leashes > Retractable Leashes Features: Easy Control at Your Fingertips: Our retractable dog leash features a one touch quick-lock braking system for ultimate length control at the flick of a button. Your dog will love the freedom, and you'll love the peace of mind. Say Goodbye to Tangles and Jams: We made our retractable dog leash with a 360° tangle-free swivel clip that is built to handle even the most playful dogs. Coupled with a U-shaped leash guide, leash tangles will be a thing of the past. Freedom When You Want It: Set your dog free with our 16’ retractable dog lead. They'll have freedom to explore, and you'll have the control to keep them safe! The lite sizes are great small dog leashes & the standard... - Loss: CachedMultipleNegativesRankingLoss with these parameters:
{ "scale": 20.0, "similarity_fct": "cos_sim", "mini_batch_size": 8, "gather_across_devices": false }
Training Hyperparameters
Non-Default Hyperparameters
per_device_train_batch_size: 64learning_rate: 1e-05weight_decay: 0.01warmup_ratio: 0.1bf16: Trueprompts: {'anchor': 'Instruct: Given a customer shopping conversation, retrieve the product that best satisfies the customer needs\nQuery:'}batch_sampler: no_duplicates
All Hyperparameters
overwrite_output_dir: Falsedo_predict: Falseeval_strategy: noprediction_loss_only: Trueper_device_train_batch_size: 64per_device_eval_batch_size: 8per_gpu_train_batch_size: Noneper_gpu_eval_batch_size: Nonegradient_accumulation_steps: 1eval_accumulation_steps: Nonetorch_empty_cache_steps: Nonelearning_rate: 1e-05weight_decay: 0.01adam_beta1: 0.9adam_beta2: 0.999adam_epsilon: 1e-08max_grad_norm: 1.0num_train_epochs: 3max_steps: -1lr_scheduler_type: linearlr_scheduler_kwargs: {}warmup_ratio: 0.1warmup_steps: 0log_level: passivelog_level_replica: warninglog_on_each_node: Truelogging_nan_inf_filter: Truesave_safetensors: Truesave_on_each_node: Falsesave_only_model: Falserestore_callback_states_from_checkpoint: Falseno_cuda: Falseuse_cpu: Falseuse_mps_device: Falseseed: 42data_seed: Nonejit_mode_eval: Falseuse_ipex: Falsebf16: Truefp16: Falsefp16_opt_level: O1half_precision_backend: autobf16_full_eval: Falsefp16_full_eval: Falsetf32: Nonelocal_rank: 0ddp_backend: Nonetpu_num_cores: Nonetpu_metrics_debug: Falsedebug: []dataloader_drop_last: Falsedataloader_num_workers: 0dataloader_prefetch_factor: Nonepast_index: -1disable_tqdm: Falseremove_unused_columns: Truelabel_names: Noneload_best_model_at_end: Falseignore_data_skip: Falsefsdp: []fsdp_min_num_params: 0fsdp_config: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}fsdp_transformer_layer_cls_to_wrap: Noneaccelerator_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: Noneadafactor: Falsegroup_by_length: Falselength_column_name: lengthddp_find_unused_parameters: Noneddp_bucket_cap_mb: Noneddp_broadcast_buffers: Falsedataloader_pin_memory: Truedataloader_persistent_workers: Falseskip_memory_metrics: Trueuse_legacy_prediction_loop: Falsepush_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_inputs_for_metrics: Falseinclude_for_metrics: []eval_do_concat_batches: Truefp16_backend: autopush_to_hub_model_id: Nonepush_to_hub_organization: Nonemp_parameters:auto_find_batch_size: Falsefull_determinism: Falsetorchdynamo: Noneray_scope: lastddp_timeout: 1800torch_compile: Falsetorch_compile_backend: Nonetorch_compile_mode: Noneinclude_tokens_per_second: Falseinclude_num_input_tokens_seen: Falseneftune_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: Falseprompts: {'anchor': 'Instruct: Given a customer shopping conversation, retrieve the product that best satisfies the customer needs\nQuery:'}batch_sampler: no_duplicatesmulti_dataset_batch_sampler: proportionalrouter_mapping: {}learning_rate_mapping: {}
Training Logs
| Epoch | Step | Training Loss |
|---|---|---|
| 0.1471 | 10 | 1.1159 |
| 0.2941 | 20 | 0.5608 |
| 0.4412 | 30 | 0.4335 |
| 0.5882 | 40 | 0.3611 |
| 0.7353 | 50 | 0.3696 |
| 0.8824 | 60 | 0.3283 |
| 1.0294 | 70 | 0.255 |
| 1.1765 | 80 | 0.1447 |
| 1.3235 | 90 | 0.1273 |
| 1.4706 | 100 | 0.0987 |
| 1.6176 | 110 | 0.0989 |
| 1.7647 | 120 | 0.099 |
| 1.9118 | 130 | 0.0954 |
| 2.0588 | 140 | 0.0898 |
| 2.2059 | 150 | 0.048 |
| 2.3529 | 160 | 0.0415 |
| 2.5 | 170 | 0.0445 |
| 2.6471 | 180 | 0.0481 |
| 2.7941 | 190 | 0.0406 |
| 2.9412 | 200 | 0.0374 |
Framework Versions
- Python: 3.10.12
- Sentence Transformers: 5.1.0
- Transformers: 4.56.1
- PyTorch: 2.8.0+cu128
- Accelerate: 1.15.0
- Datasets: 5.0.1
- 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",
}
CachedMultipleNegativesRankingLoss
@misc{gao2021scaling,
title={Scaling Deep Contrastive Learning Batch Size under Memory Limited Setup},
author={Luyu Gao and Yunyi Zhang and Jiawei Han and Jamie Callan},
year={2021},
eprint={2101.06983},
archivePrefix={arXiv},
primaryClass={cs.LG}
}