Instructions to use sinanalyuruk/trmteb-trnews-v1-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use sinanalyuruk/trmteb-trnews-v1-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir trmteb-trnews-v1-mlx sinanalyuruk/trmteb-trnews-v1-mlx
- sentence-transformers
How to use sinanalyuruk/trmteb-trnews-v1-mlx with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("sinanalyuruk/trmteb-trnews-v1-mlx") 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
- Local Apps Settings
- LM Studio
- Atomic Chat
trmteb-trnews — MLX build
Apple-Silicon MLX float16 build of the Turkish-news retrieval fine-tune of
trmteb/turkish-embedding-model. Same weights (mean pooling, 768-d, L2-normalized),
converted with mlx-embeddings; verified at parity with the PyTorch source
(per-text cosine 1.00000; identical R@1/MRR).
- Format: mlx-embeddings, float16 (~211 MB) ·
max_seq_length512 - Evaluation: the full before/after table lives on the main model card → trmteb-trnews-v1 (the PyTorch build this was converted from).
Usage
import numpy as np, mlx_embeddings
model, tok = mlx_embeddings.load("<this-repo-or-path>")
o = mlx_embeddings.generate(model, tok, ["Örnek başlık.", "İkinci haber."])
E = np.array(o.text_embeds) # already L2-normalized; cosine == dot product
Requires mlx>=0.30, mlx-embeddings>=0.1.0.
License & attribution
Released under the MIT license — matching the verified upstream root
(dbmdz/bert-base-turkish-uncased, MIT).
NOTICE — this is a derivative work. Attribution chain:
- Fine-tuned from
trmteb/turkish-embedding-model— no license is declared upstream (as of 2026-07-03 the source model card states none); attribution retained. - Whose base is
dbmdz/bert-base-turkish-uncased(BERTurk) — MIT. Retain BERTurk's copyright and permission notice (see its model card). - Changes (documented for provenance): fine-tuned on 100,000 TR-News (title, abstract) pairs with MultipleNegativesRankingLoss; published at max_seq_length 512.
trmteb/turkish-embedding-model itself declares no license, so the MIT terms above
inherit from the BERTurk root and cover this fine-tune's contribution; confirm the
intermediate model's terms with its author before commercial redistribution.
Citation — training data (TR-News)
@article{10.1007/s10579-021-09568-y,
year = {2022},
title = {{Abstractive text summarization and new large-scale datasets for agglutinative languages Turkish and Hungarian}},
author = {Baykara, Batuhan and Güngör, Tunga},
journal = {Language Resources and Evaluation},
issn = {1574-020X},
doi = {10.1007/s10579-021-09568-y},
pages = {1--35}
}
- Downloads last month
- 8
Quantized
Model tree for sinanalyuruk/trmteb-trnews-v1-mlx
Base model
dbmdz/bert-base-turkish-uncased