Instructions to use HeavensHackDev/HCAE-21M-Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use HeavensHackDev/HCAE-21M-Base with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("HeavensHackDev/HCAE-21M-Base") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files123456789101112131415161718192021222324252627282930---license: apache-2.0library_name: pytorchtags:- sentence-transformers- feature-extraction- sentence-similarity- mteb- hcae---# HCAE-21M (Hybrid Convolutional-Attention Encoder)**HCAE-21M** is a mid-scale (21 Million parameters) text embedding model combining Depthwise Separable Convolutions and Self-Attention layers. It achieves high performance on Semantic Textual Similarity and Retrieval tasks while remaining extremely memory-efficient.## Architecture Description- **Size:** ~21M parameters (d_model=384)- **Lower Layers:** 5 layers of Depthwise Separable Conv1d + FFN.- **Upper Layers:** 3 layers of Multihead Self-Attention.- **Pooling Strategy:** Global Mean Pooling.*Note: This is the BASE model. Refer to the `HCAE-21M-Instruct` repository for the fully tuned version.*## Benchmark Comparison (MTEB)This table delineates the performance disparities between architectural iterations:| Model Revision | STSBenchmark (Spearman) | SciFact (Recall@10) | Description ||---|---|---|---|| **HCAE-21M-Base** | `0.507` | `0.324` | Baseline configuration trained extensively on the MS MARCO dataset. || **HCAE-21M-Instruct** | `0.591` | `0.393` | Multi-stage tuning incorporating ArXiv, STS-B, and SQuAD instruction tuning paradigms. |123456789101112131415161718192021222324252627282930313233---license: apache-2.0library_name: pytorchtags:- sentence-transformers- feature-extraction- sentence-similarity- mteb- hcae---# HCAE-21M (Hybrid Convolutional-Attention Encoder)**HCAE-21M** is a mid-scale (21 Million parameters) text embedding model combining Depthwise Separable Convolutions and Self-Attention layers. It achieves high performance on Semantic Textual Similarity and Retrieval tasks while remaining extremely memory-efficient.## Architecture Description- **Size:** ~21M parameters (d_model=384)- **Lower Layers:** 5 layers of Depthwise Separable Conv1d + FFN.- **Upper Layers:** 3 layers of Multihead Self-Attention.- **Pooling Strategy:** Global Mean Pooling.*Note: This is the BASE model. Refer to the `HCAE-21M-Instruct` repository for the fully tuned version.*## Benchmark Comparison (MTEB)This table delineates the performance disparities between architectural iterations:| Model Revision | STSBenchmark (Spearman) | SciFact (Recall@10) | Description ||---|---|---|---|| **HCAE-21M-Base** | `0.507` | `0.324` | Baseline configuration trained extensively on the MS MARCO dataset. || **HCAE-21M-Instruct** | `0.591` | `0.393` | Multi-stage tuning incorporating ArXiv, STS-B, and SQuAD instruction tuning paradigms. |
README.md+33-30