CoolFace
Modelpublic

MohammadKhodadad/CTMEDBERT_CLS_Encoder2

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes37downloads
README.md141 linesDownload Raw Back to root
1---2tags:3- sentence-transformers4- sentence-similarity5- feature-extraction6base_model: skyfury/CTMEDBERT-cl2-step_450007pipeline_tag: sentence-similarity8library_name: sentence-transformers9---10 11# SentenceTransformer based on skyfury/CTMEDBERT-cl2-step_4500012 13This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [skyfury/CTMEDBERT-cl2-step_45000](https://huggingface.co/skyfury/CTMEDBERT-cl2-step_45000). 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.14 15## Model Details16 17### Model Description18- **Model Type:** Sentence Transformer19- **Base model:** [skyfury/CTMEDBERT-cl2-step_45000](https://huggingface.co/skyfury/CTMEDBERT-cl2-step_45000) <!-- at revision a52da0cbdeec264a4dfdbe10f0e9304714d9370f -->20- **Maximum Sequence Length:** 512 tokens21- **Output Dimensionality:** 768 tokens22- **Similarity Function:** Cosine Similarity23<!-- - **Training Dataset:** Unknown -->24<!-- - **Language:** Unknown -->25<!-- - **License:** Unknown -->26 27### Model Sources28 29- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)30- **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)31- **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)32 33### Full Model Architecture34 35```36SentenceTransformer(37  (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: BertModel 38  (1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': True, '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': False, 'include_prompt': True})39)40```41 42## Usage43 44### Direct Usage (Sentence Transformers)45 46First install the Sentence Transformers library:47 48```bash49pip install -U sentence-transformers50```51 52Then you can load this model and run inference.53```python54from sentence_transformers import SentenceTransformer55 56# Download from the 🤗 Hub57model = SentenceTransformer("skyfury/CTMEDBERT_CLS_Encoder2")58# Run inference59sentences = [60    'The weather is lovely today.',61    "It's so sunny outside!",62    'He drove to the stadium.',63]64embeddings = model.encode(sentences)65print(embeddings.shape)66# [3, 768]67 68# Get the similarity scores for the embeddings69similarities = model.similarity(embeddings, embeddings)70print(similarities.shape)71# [3, 3]72```73 74<!--75### Direct Usage (Transformers)76 77<details><summary>Click to see the direct usage in Transformers</summary>78 79</details>80-->81 82<!--83### Downstream Usage (Sentence Transformers)84 85You can finetune this model on your own dataset.86 87<details><summary>Click to expand</summary>88 89</details>90-->91 92<!--93### Out-of-Scope Use94 95*List how the model may foreseeably be misused and address what users ought not to do with the model.*96-->97 98<!--99## Bias, Risks and Limitations100 101*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*102-->103 104<!--105### Recommendations106 107*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*108-->109 110## Training Details111 112### Framework Versions113- Python: 3.11.4114- Sentence Transformers: 3.2.1115- Transformers: 4.46.1116- PyTorch: 2.5.0117- Accelerate: 118- Datasets: 3.1.0119- Tokenizers: 0.20.0120 121## Citation122 123### BibTeX124 125<!--126## Glossary127 128*Clearly define terms in order to be accessible across audiences.*129-->130 131<!--132## Model Card Authors133 134*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*135-->136 137<!--138## Model Card Contact139 140*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*141-->