Sentence Similarity
sentence-transformers
Safetensors
new
feature-extraction
Generated from Trainer
dataset_size:1840212
loss:MatryoshkaLoss
loss:CachedMultipleNegativesRankingLoss
custom_code
text-embeddings-inference
Run this model with HF Jobs
Run newmindai/TurkEmbed4Retrieval on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/newmindai/TurkEmbed4Retrieval. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/newmindai/TurkEmbed4Retrieval on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use newmindai/TurkEmbed4Retrieval with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use newmindai/TurkEmbed4Retrieval with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("newmindai/TurkEmbed4Retrieval", trust_remote_code=True) sentences = [ "Yoksulluk çeken devletlerin çoğu", "(verb) yerine bir kişi veya şey (kırılan veya verimsiz olan veya kaybedilen veya artık çalışmayan veya bekleneni vermeyen bir başkası) yerine eski jilet bıçağını değiştirdi; Bir ay önce ayrılan sekreteri değiştirmemiz gerekiyor; Sigorta kayıp gelirin yerini alacak; Bu antik vazo asla değiştirilemez.", "Homefacts City Report. Portland, Multnomah County, OR'da yer almaktadır. Nüfus 603.650 olup, Portland'ı Multnomah County'nin en büyük şehri ve Oregon eyaletinin en büyük şehri yapmaktadır. Portland'da ortalama Homefacts puanı B olan 169 devlet okulu vardır. Portland için toplam suç oranı ılımlıdır ve şehirde ikamet eden 204 kayıtlı seks suçlusu vardır.", "Bununla birlikte, yoksulluğun en az sayıldığı eyaletlerin çoğunda, kredi alan uygun dosyacıların yüzdesi çok daha düşüktür. Nevada'da, sadece% 71.5'i kredilerini talep ederken, Kaliforniya'da sadece% 71'i ABD'deki en düşük oranlar arasında yer aldı." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Download config.json from newmindai/TurkEmbed4Retrieval: direct link, hf CLI and curl.
- Browser
- Download file 1.52 kB
-
https://huggingface.co/newmindai/TurkEmbed4Retrieval/resolve/main/config.json
- Command line
-
hf download hf://newmindai/TurkEmbed4Retrieval/config.json
-
curl -L -o config.json https://huggingface.co/newmindai/TurkEmbed4Retrieval/resolve/main/config.json
1.52 kB
| { | |
| "architectures": [ | |
| "NewModel" | |
| ], | |
| "attention_probs_dropout_prob": 0.0, | |
| "auto_map": { | |
| "AutoConfig": "Alibaba-NLP/new-impl--configuration.NewConfig", | |
| "AutoModel": "Alibaba-NLP/new-impl--modeling.NewModel", | |
| "AutoModelForMaskedLM": "Alibaba-NLP/new-impl--modeling.NewForMaskedLM", | |
| "AutoModelForMultipleChoice": "Alibaba-NLP/new-impl--modeling.NewForMultipleChoice", | |
| "AutoModelForQuestionAnswering": "Alibaba-NLP/new-impl--modeling.NewForQuestionAnswering", | |
| "AutoModelForSequenceClassification": "Alibaba-NLP/new-impl--modeling.NewForSequenceClassification", | |
| "AutoModelForTokenClassification": "Alibaba-NLP/new-impl--modeling.NewForTokenClassification" | |
| }, | |
| "classifier_dropout": 0.0, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "LABEL_0" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "label2id": { | |
| "LABEL_0": 0 | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "layer_norm_type": "layer_norm", | |
| "logn_attention_clip1": false, | |
| "logn_attention_scale": false, | |
| "max_position_embeddings": 8192, | |
| "model_type": "new", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 12, | |
| "pack_qkv": true, | |
| "pad_token_id": 1, | |
| "position_embedding_type": "rope", | |
| "rope_scaling": { | |
| "factor": 8.0, | |
| "type": "ntk" | |
| }, | |
| "rope_theta": 20000, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.51.3", | |
| "type_vocab_size": 1, | |
| "unpad_inputs": false, | |
| "use_memory_efficient_attention": false, | |
| "vocab_size": 250048 | |
| } | |