Feature Extraction
sentence-transformers
Safetensors
Transformers
Arabic
bert
mteb
sentence-similarity
Generated from Trainer
dataset_size:947818
loss:SoftmaxLoss
loss:CosineSimilarityLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use Omartificial-Intelligence-Space/GATE-AraBert-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Omartificial-Intelligence-Space/GATE-AraBert-v1 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Omartificial-Intelligence-Space/GATE-AraBert-v1") sentences = [ "امرأة تكتب شيئاً", "مراهق يتحدث إلى فتاة عبر كاميرا الإنترنت", "امرأة تقطع البصل الأخضر.", "مجموعة من كبار السن يتظاهرون حول طاولة الطعام." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Transformers
How to use Omartificial-Intelligence-Space/GATE-AraBert-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="Omartificial-Intelligence-Space/GATE-AraBert-v1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("Omartificial-Intelligence-Space/GATE-AraBert-v1") model = AutoModel.from_pretrained("Omartificial-Intelligence-Space/GATE-AraBert-v1", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Download 1_Pooling/config.json from Omartificial-Intelligence-Space/GATE-AraBert-v1: direct link, hf CLI and curl.
- Browser
- Download file 296 Bytes
-
https://huggingface.co/Omartificial-Intelligence-Space/GATE-AraBert-v1/resolve/main/1_Pooling/config.json
- Command line
-
hf download hf://Omartificial-Intelligence-Space/GATE-AraBert-v1/1_Pooling/config.json
-
curl -L -o config.json https://huggingface.co/Omartificial-Intelligence-Space/GATE-AraBert-v1/resolve/main/1_Pooling/config.json
296 Bytes
| { | |
| "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 | |
| } |