Edit model card

SentenceTransformer

This is a sentence-transformers model trained. 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 Type: Sentence Transformer
  • Maximum Sequence Length: 512 tokens
  • Output Dimensionality: 768 tokens
  • Similarity Function: Dot Product

Model Sources

Full Model Architecture

SentenceTransformer(
  (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: BertModel 
  (1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
)

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 = [
    '"professional hair cutting scissors extremely sharp blades 6 inch barber scissors set for men and women Fagaci"',
    '5.5" Professional Hair Cutting & Thinning Barber Scissors Set, Stainless Steel, Lightweight Razor Edge Haircut Scissors for Hair Salon, Hairdresser\nProduct Description SUPERIOR Blade Edge Retention - Premium build shears stay razor sharp longer than the competition\'s scissors. EFFORTLESS Cutting Power - Top of the line materials and craftsmanship ensure a smooth cut everytime, even through multiple layers, for years to come. HEAVY Duty Industrial Grade Materials - Japanese J2 Stainless Steel - Stronger and harder than the standard stainless steel used in other shears. SHARP, SMOOTH AND EFFICIENT: With a finely honed blade and a custom designed Culton tension adjustment screw, these shears will outperform any other shears in its class. We invested more time on our product so you can spend more time being productive. CUT HAIR IN COMFORT: These premium scissors were designed for professionals, this means you can shear all day and never experience fatigue. These comfortable and easy to use shears will allow you to cut a day\'s worth of hair without feeling stress in your hands or shoulders. Product Description SUPERIOR Blade Edge Retention - Premium build shears stay razor sharp longer than the competition\'s scissors. EFFORTLESS Cutting Power - Top of the line materials and craftsmanship ensure a smooth cut everytime, even through multiple layers, for years to come. HEAVY Duty Industrial Grade Materials - Japanese J2 Stainless Steel - Stronger and harder than the standard stainless steel used in other shears. SHARP, SMOOTH AND EFFICIENT: With a finely honed blade and a custom designed Culton tension adjustment screw, these shears will outperform any other shears in its class. We invested more time on our product so you can spend more time being productive. CUT HAIR IN COMFORT: These premium scissors were designed for professionals, this means you can shear all day and never experience fatigue. These comfortable and easy to use shears will allow you to cut a day\'s worth of hair without feeling stress in your hands or shoulders.',
    'Top Dog Knits: 12 QuickKnit Fashions for Your Big Best Friend\n',
]
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]

Training Details

Training Dataset

Unnamed Dataset

  • Size: 180 training samples
  • Columns: sentence_0, sentence_1, and sentence_2
  • Approximate statistics based on the first 180 samples:
    sentence_0 sentence_1 sentence_2
    type string string string
    details
    • min: 12 tokens
    • mean: 18.2 tokens
    • max: 23 tokens
    • min: 11 tokens
    • mean: 301.11 tokens
    • max: 512 tokens
    • min: 2 tokens
    • mean: 105.54 tokens
    • max: 512 tokens
  • Samples:
    sentence_0 sentence_1 sentence_2
    "4 ton hydraulic low profile floor jack with dual piston quick lift pump" Pro-Lift F-767 Grey Low Profile Floor Jack - 2 Ton Capacity
    Product Description Fit Under Low Ground Clearance Vehicle Pro-Lift F-767 Grey Low Profile Floor Jack is a 2 Ton floor jack that give you better access to low ground clearance vehicle. And,give you the lifting range from 3-1/2 inches to 14 inches. The Jack can be fit under a clearance of 3-1/2 inches and maneuvered easily into position. Pro Lift F-767 floor jack also features the heavy duty steel construction that provides the long lasting durability. Pro Lift unique patented bypass device protects against over pumping. Its built-in safety valve provides overload protection. - Extra Low Profile - Lifting Range from 3-1/2 inches to 14 inches - Patented bypass device protect over pumping - Built-In Safty Valve Provides overload protection Take one now to access to the areas you never access before. Product Description Fit Under Low Ground Clearance Vehicle Pro-Lift F-767 Grey Low Profile Floor Jack is a 2 Ton floor jack that give you better access to low ground clearance vehicle. And,give you the lifting range from 3-1/2 inches to 14 inches. The Jack can be fit under a clearance of 3-1/2 inches and maneuvered easily into position. Pro Lift F-767 floor jack also features the heavy duty steel construction that provides the long lasting durability. Pro Lift unique patented bypass device protects against over pumping. Its built-in safety valve provides overload protection. - Extra Low Profile - Lifting Range from 3-1/2 inches to 14 inches - Patented bypass device protect over pumping - Built-In Safty Valve Provides overload protection Take one now to access to the areas you never access before.From the brand Previous page About Pro-Lift Our products have consistently led the industry in quality and innovation. Designed after professional-grade equipment standards, Pro-Lift is kept under close quality control standards from the factory to your home. Our patented products provide your garage with all your maintenance needs. Pro-Lift Welded Bottle Jacks Visit the Store Pro-Lift Floor & Trolley Jacks Visit the Store Next page From the manufacturer Pro-Lift F-767 Grey Low Profile Floor Jack - 2 Ton Capacity About Us: Our ProLift hydraulic automotive jacks, lifts and garage equipment range will cater to many 'do it yourself' enthusiast. The product line includes bottle jacks, floor jacks, garage jacks, aluminum jacks. scissor jack, lawn mower lifts, utility lifts, chokes, dirt bike lift, creepers, mechanic seats and more! Explore our range on the products page. ProLift has become a global presence in the go to automotive garage maintenance equipment with locations in the United States, The Netherlands, Taiwan and Australia. We create dependable and reliable performance hydraulic equipment. Read more
    Funnytree 7x5FT Blue Wood Grain Backdrop for Photography Painted Fuax Wooden Board Planks Texture Background Floor Wall Birthday Summer Sea Party Decoration Banner Selfie Photo Booth Prop
    Product Description Blue Wood Backdrop Beach Surfboard Backdrop Tropical Beach Backdrop Palm Tree Backdrop Summer Beach Backdrop Dark Wood Backdrop White Wood Backdrop Rustic Wood Backdrop Graffiti Brick Backdrop Old Wood Backdrop
    "Blue pet grooming gloves for hair removal and massage" Pet Grooming Glove, Pet Ninja Glove, Amazingly cat glove, Gentle Deshedding Brush Glove - Efficient Pet Hair Remover Mitt - Enhanced Five Finger Design - Perfect for Dog & Cat - 1 Pair (Sky Blue)
    Product Description Slip on the ForLiving pet grooming glove and keep your pet’s coat looking clean and healthy while reducing the hair scattered about the house! Keeping your dog’s or cat’s coat brushed regularly is important for their overall health, as well as yours - and the ForLiving Pet Grooming and Deshedding Gloves make it easier and more efficient than ever before! Brush Away the Mess This flexible, slip-on grooming gloves allow you to brush away dirt, grime, dander and loose hair from cats, dogs and horses of all shapes and sizes. More importantly, it helps stimulate the healthy oils on their skin which can improve the softness and radiance of their coat. A Healthier Home Gentle on the skin thanks to soft rubber tips, our groomer’s glove not only helps reduce the amount of hair left behind on furniture, clothes or in the car; it can help reduce allergens in the air for cleaner, healthier breathing. Product Details: Multi-function Deshedding Glove (Upgrade Version) With Enhanced 255 Soft Rubber Tips Adjustable Wrist Strap (One Size Fits All). Lightweight and Breathable Gentle Hair Remover Machine Washable (Easy to Clean) Safe for Cats, Dogs and Other Pets Works great for Samoyed fur. Sticks to the gloves and you can peel it off. What You Get: 2 BLUE pet hair remover gloves (1 left-hand and 1 right-hand) Click ‘Add to Cart’ above to get the ForLiving pet grooming glove and keep your pet happy, healthy, and free of loose hair. Product Description Slip on the ForLiving pet grooming glove and keep your pet’s coat looking clean and healthy while reducing the hair scattered about the house! Keeping your dog’s or cat’s coat brushed regularly is important for their overall health, as well as yours - and the ForLiving Pet Grooming and Deshedding Gloves make it easier and more efficient than ever before! Brush Away the Mess This flexible, slip-on grooming gloves allow you to brush away dirt, grime, dander and loose hair from cats, dogs and horses of all shapes and sizes. More importantly, it helps stimulate the healthy oils on their skin which can improve the softness and radiance of their coat. A Healthier Home Gentle on the skin thanks to soft rubber tips, our groomer’s glove not only helps reduce the amount of hair left behind on furniture, clothes or in the car; it can help reduce allergens in the air for cleaner, healthier breathing. Product Details: Multi-function Deshedding Glove (Upgrade Version) With Enhanced 255 Soft Rubber Tips Adjustable Wrist Strap (One Size Fits All). Lightweight and Breathable Gentle Hair Remover Machine Washable (Easy to Clean) Safe for Cats, Dogs and Other Pets Works great for Samoyed fur. Sticks to the gloves and you can peel it off. What You Get: 2 BLUE pet hair remover gloves (1 left-hand and 1 right-hand) Click ‘Add to Cart’ above to get the ForLiving pet grooming glove and keep your pet happy, healthy, and free of loose hair.
    Nike NSW Club Hoodie Pullover Graphics
    "professional hair cutting scissors extremely sharp blades 6 inch barber scissors set for men and women Fagaci" Hair Cutting Shears Set of Professional Razor and Thinning Scissors, Kit of 6. 5 Inches Hair Scissors Suitable for all adults, men, women Haircut by Beautlex
    Vakker Bahay Holiday Non Adhesive Beatiful Window Film Decorative Color Stained Removable Window Glass Film No Glue Privacy Static Cling Glass Film for Kitchen Office Bathroom,17.7 x 78.7 Inches
    Product Description Size:17.7 by 78.7 Inches(45 x 200CM) in roll No glue:Static cling;Easy to install and removal Function:Keep privacy and decorate your window Install instruction: Step 01.Clean your window thoroughly. Step 02.Measure the size of your window both width and length. Step 03.Cut film into proper size,about 1 inch longer than the window. Step 04.Wet the window totally. Step 05.Peel off the backing clear protective film gently.( Please make sure the backing film is removed, or the film will fall down from window) Step 06.Position the film against the window and use your finger to press across the entire top of the film to allow it grip the sightly. Step 07.Smooth out the film with with squeegee,make sure no air and bubbles inside. (The squeegee you can use like ID card,bank card ect.) Step 08.Dry off your window film with rag,cut the excessive bit slowly. Read more Why choose us Keep Privacy:F rosted glass film perfect for Bathroom, Balcony, Living Room, Bedroom, Bathroom, Office,hotel, etc. U ser-Friendly:E nvironmental & Static speciality, don't use any adhesive;Applies to any smooth glass surface in minutes. N on adhesive:n o harmful substances release, easy to position and remove without any residue. R eusable:P remium PVC material offers extra durability, can be re-positioned and reused repeatedly U V Block:B lock more than 96% of harmful ultraviolet rays,protect the physical health;To prevent floor,curtain,carpet,furniture,art and many fabrics fade aging. E nergy Saving:C ontrol your energy costs by reducing heat in summer and retaining the heat in winter Read more Package Included 1 roll 17.7-inch by 78.7-inch window film 1 piece step by step window film install instruction Read more Flower window film Check window film Blind window film Mosaic window film Stripe window film 17.578.7 inch ✓ ✓ ✓ ✓ ✓ 17.578.7 inch ✓ ✓ ✓ ✓ ✓ Privacy level High High High High Low Color White White White White White
  • Loss: TripletLoss with these parameters:
    {
        "distance_metric": "TripletDistanceMetric.EUCLIDEAN",
        "triplet_margin": 5.0
    }
    

Training Hyperparameters

Non-Default Hyperparameters

  • per_device_train_batch_size: 2
  • per_device_eval_batch_size: 2
  • num_train_epochs: 1
  • multi_dataset_batch_sampler: round_robin

All Hyperparameters

Click to expand
  • overwrite_output_dir: False
  • do_predict: False
  • eval_strategy: no
  • prediction_loss_only: True
  • per_device_train_batch_size: 2
  • per_device_eval_batch_size: 2
  • 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: 1
  • 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: False
  • 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: False
  • hub_always_push: False
  • gradient_checkpointing: False
  • gradient_checkpointing_kwargs: None
  • include_inputs_for_metrics: False
  • 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
  • eval_use_gather_object: False
  • batch_sampler: batch_sampler
  • multi_dataset_batch_sampler: round_robin

Framework Versions

  • Python: 3.10.12
  • Sentence Transformers: 3.1.0
  • Transformers: 4.44.2
  • PyTorch: 2.4.1
  • Accelerate: 0.34.2
  • Datasets: 3.0.0
  • Tokenizers: 0.19.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",
}

TripletLoss

@misc{hermans2017defense,
    title={In Defense of the Triplet Loss for Person Re-Identification},
    author={Alexander Hermans and Lucas Beyer and Bastian Leibe},
    year={2017},
    eprint={1703.07737},
    archivePrefix={arXiv},
    primaryClass={cs.CV}
}
Downloads last month
16
Safetensors
Model size
109M params
Tensor type
F32
·
Inference Examples
Inference API (serverless) is not available, repository is disabled.