Downloads · 30 days
20
22% of all-time downloads
serda-dev/mamba-130m-hf-turkish
mamba-130m-hf-turkish is a text generation model from serda-dev. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
EN: This announcement is identical for mamba-130m-hf-turkish and mamba-370m-hf-turkish — you don’t need to check the other repository separately. TR: Bu duyuru mamba-130m-hf-turkish ve mamba-370m-hf-turkish için aynıd…
Downloads · 30 days
20
22% of all-time downloads
All-time downloads
93
Public
Parameters
168M
671 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors671 MB · 99%
From the Hugging Face model README
<details> <summary><b>EN — Details</b></summary>EN: This announcement is identical for
mamba-130m-hf-turkishandmamba-370m-hf-turkish— you don’t need to check the other repository separately.
TR: Bu duyurumamba-130m-hf-turkishvemamba-370m-hf-turkishiçin aynıdır — diğer repoyu ayrıca kontrol etmenize gerek yoktur.
Due to an embedding-related incompatibility in mamba-130m-hf-turkish, the current text generation behavior may be buggy (unstable or inconsistent outputs). This issue has been fixed in mamba-370m-hf-turkish, and we will port the same fix to mamba-130m-hf-turkish as soon as possible.
Overall, Turkish fluency and grammar are generally solid, but logical/contextual consistency issues remain because of current dataset limitations. We are continuing to improve the dataset pipeline (ongoing web scraping and cleaning). When mamba-2.8b-hf-turkish is ready, we plan to retrain and re-release the Turkish checkpoints together using the improved dataset. Until then, we recommend using these models mainly via fine-tuning, and we appreciate any additional bug reports.
mamba-130m-hf-turkish modelinde embedding tarafındaki bir uyumsuzluk nedeniyle mevcut text generation davranışı zaman zaman buglu çalışabiliyor (çıktılar tutarsız/kararsız olabiliyor). Bu sorun mamba-370m-hf-turkish modelinde çözüldü ve aynı düzeltmeyi mamba-130m-hf-turkish reposuna da en kısa sürede aktaracağız.
Genel olarak Türkçe akıcılık ve gramer tarafı iyi; ancak mevcut dataset kısıtları nedeniyle mantıksal bağlam ve tutarlılık problemleri hâlâ görülebilir. Dataset hattını (web scrape + temizlik) iyileştirmeye devam ediyoruz. mamba-2.8b-hf-turkish hazır olduğunda, geliştirilmiş dataset ile Türkçe checkpoint’leri birlikte yeniden eğitip yeniden yayınlamayı planlıyoruz. O zamana kadar modelleri ağırlıklı olarak fine-tune ederek kullanmanızı öneririz; ek hataları bildirmekten çekinmeyin.
mamba-130m-hfThis repository provides a Turkish continued-pretrained variant of state-spaces/mamba-130m-hf (Transformers-compatible Mamba 130M). The goal is to improve Turkish fluency and local domain robustness while keeping the original architecture and HF usage experience.
Developed by the LinguAI Team, affiliated with KTUN and the YAZGİT community.
Mamba is a selective State Space Model (SSM) architecture designed for efficient sequence modeling with linear-time scaling in sequence length. It was introduced by Gu & Dao in “Mamba: Linear-Time Sequence Modeling with Selective State Spaces”.
state-spaces/mamba-130m-hfNotes on the token estimate: without the exact tokenizer statistics (total
input_idscount) and exact encoding (UTF-8 composition, whitespace density, punctuation rate), the most honest way is a range. If you want, you can compute the exact value by summing tokenized lengths across your dataset shards and update this section.
transformersNot intended for:
The original publisher recommends installing transformers from main (historically required until a given release), plus the optimized CUDA-kernel dependencies for best performance: causal-conv1d and mamba-ssm.
pip install git+https://github.com/huggingface/transformers@main
pip install "causal-conv1d>=1.2.0"
pip install mamba-ssm
If causal-conv1d and/or mamba-ssm are not installed, Transformers will fall back to an “eager” implementation; with them installed, it can use optimized CUDA kernels when available. ([Hugging Face][1])
Below is the standard transformers generate workflow used by the upstream model card.
import torch
from transformers import AutoTokenizer, MambaForCausalLM
MODEL_ID = "serda-dev/mamba-130m-hf-turkish"
tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)
model = MambaForCausalLM.from_pretrained(MODEL_ID)
prompt = "Türkiye'de yazılım mühendisi olmak hakkında kısa bir paragraf yaz:"
inputs = tokenizer(prompt, return_tensors="pt")
with torch.no_grad():
out = model.generate(
**inputs,
max_new_tokens=120,
do_sample=True,
temperature=0.9,
top_p=0.95,
)
print(tokenizer.decode(out[0], skip_special_tokens=True))
For fastest inference on NVIDIA GPUs, ensure CUDA kernels are enabled by installing mamba-ssm + causal-conv1d.
If you run into build issues for these packages, double-check:
build-essential) on LinuxThe upstream model card includes a PEFT fine-tuning example and recommends keeping the model in float32 during finetuning in that example context.
High-level LoRA recipe:
x_proj, in_proj, out_proj, embeddings)(If you want, you can paste your exact training script + config and I’ll write a “Reproducibility” section with command lines and hyperparameters.)
For a CPT’d base LM, common quick checks:
This is a base language model (not instruction-tuned). It may:
Use standard filtering and safety layers for deployments.
This model is a continued-pretrained derivative of state-spaces/mamba-130m-hf. The installation and usage instructions above are based on the upstream Hugging Face model card for Transformers-compatible Mamba.
Mamba architecture reference:
If you use this model in academic work, please cite the Mamba paper:
@article{gu2023mamba,
title={Mamba: Linear-Time Sequence Modeling with Selective State Spaces},
author={Gu, Albert and Dao, Tri},
journal={arXiv preprint arXiv:2312.00752},
year={2023}
}
Also consider citing the upstream HF checkpoint:
state-spaces/mamba-130m-hfThis model was developed by the LinguAI Team, an independent research-oriented AI team affiliated with Konya Technical University (KTUN) and operating under the YAZGİT community.
LinguAI Team Members (Core Contributors):