Text Generation
Transformers
Safetensors
Turkish
mamba
state-space-model
ssm
causal-lm
continued-pretraining
text-generation-inference
Instructions to use serda-dev/mamba-130m-hf-turkish with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use serda-dev/mamba-130m-hf-turkish with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="serda-dev/mamba-130m-hf-turkish")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("serda-dev/mamba-130m-hf-turkish") model = AutoModelForCausalLM.from_pretrained("serda-dev/mamba-130m-hf-turkish", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use serda-dev/mamba-130m-hf-turkish with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "serda-dev/mamba-130m-hf-turkish" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "serda-dev/mamba-130m-hf-turkish", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/serda-dev/mamba-130m-hf-turkish
- SGLang
How to use serda-dev/mamba-130m-hf-turkish with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "serda-dev/mamba-130m-hf-turkish" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "serda-dev/mamba-130m-hf-turkish", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "serda-dev/mamba-130m-hf-turkish" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "serda-dev/mamba-130m-hf-turkish", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use serda-dev/mamba-130m-hf-turkish with Docker Model Runner:
docker model run hf.co/serda-dev/mamba-130m-hf-turkish
Update README.md
Browse files
README.md
CHANGED
|
@@ -16,27 +16,31 @@ tags:
|
|
| 16 |
- continued-pretraining
|
| 17 |
---
|
| 18 |
|
| 19 |
-
## Notice /
|
|
|
|
| 20 |
|
| 21 |
-
|
| 22 |
-
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
- This issue has been **fixed** in `mamba-370m-hf-turkish`, and we will apply the same fix to `mamba-130m-hf-turkish` **as soon as possible**.
|
| 27 |
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
-
### In the meantime
|
| 35 |
-
- Until that release, we recommend using these models primarily by **fine-tuning** them for your specific tasks.
|
| 36 |
-
- Please don’t hesitate to **report additional issues** (generation bugs, tokenizer/embedding mismatches, edge cases, reproducibility problems, etc.).
|
| 37 |
|
| 38 |
-
---
|
| 39 |
-
---
|
| 40 |
---
|
| 41 |
|
| 42 |
# Turkish Continued Pretraining of `mamba-130m-hf`
|
|
|
|
| 16 |
- continued-pretraining
|
| 17 |
---
|
| 18 |
|
| 19 |
+
## ⚠️ Notice / Duyuru (applies to both repos / iki repo için geçerli)
|
| 20 |
+
#### (13.02.2026 11PM (UTC+3))
|
| 21 |
|
| 22 |
+
> **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.
|
| 23 |
+
> **TR:** Bu duyuru **`mamba-130m-hf-turkish`** ve **`mamba-370m-hf-turkish`** için aynıdır — diğer repoyu ayrıca kontrol etmenize gerek yoktur.
|
| 24 |
|
| 25 |
+
<details>
|
| 26 |
+
<summary><b>EN — Details</b></summary>
|
|
|
|
| 27 |
|
| 28 |
+
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**.
|
| 29 |
+
|
| 30 |
+
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.
|
| 31 |
+
|
| 32 |
+
</details>
|
| 33 |
+
|
| 34 |
+
<details>
|
| 35 |
+
<summary><b>TR — Detaylar</b></summary>
|
| 36 |
+
|
| 37 |
+
`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.
|
| 38 |
+
|
| 39 |
+
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.
|
| 40 |
+
|
| 41 |
+
</details>
|
| 42 |
|
|
|
|
|
|
|
|
|
|
| 43 |
|
|
|
|
|
|
|
| 44 |
---
|
| 45 |
|
| 46 |
# Turkish Continued Pretraining of `mamba-130m-hf`
|