Text Generation
Transformers
Turkish
erk_linear
linear-attention
gated-deltanet
hybrid-attention
efficient-attention
turkish
erk
research
custom_code
conversational
Eval Results (legacy)
Instructions to use ecloudtech/Erk-Linear with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ecloudtech/Erk-Linear with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ecloudtech/Erk-Linear", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("ecloudtech/Erk-Linear", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ecloudtech/Erk-Linear with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ecloudtech/Erk-Linear" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ecloudtech/Erk-Linear", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ecloudtech/Erk-Linear
- SGLang
How to use ecloudtech/Erk-Linear 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 "ecloudtech/Erk-Linear" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ecloudtech/Erk-Linear", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "ecloudtech/Erk-Linear" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ecloudtech/Erk-Linear", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use ecloudtech/Erk-Linear with Docker Model Runner:
docker model run hf.co/ecloudtech/Erk-Linear
Update README.md
Browse files
README.md
CHANGED
|
@@ -5,6 +5,8 @@ base_model:
|
|
| 5 |
- Qwen/Qwen3-14B
|
| 6 |
language:
|
| 7 |
- tr
|
|
|
|
|
|
|
| 8 |
tags:
|
| 9 |
- linear-attention
|
| 10 |
- gated-deltanet
|
|
@@ -13,6 +15,7 @@ tags:
|
|
| 13 |
- turkish
|
| 14 |
- erk
|
| 15 |
- research
|
|
|
|
| 16 |
inference: false
|
| 17 |
model-index:
|
| 18 |
- name: Erk-Linear
|
|
@@ -32,7 +35,7 @@ model-index:
|
|
| 32 |
|
| 33 |
**%20-lineer hibrit:** Erk-14B'nin 40 dikkat katmanından 8'i, subquadratic bir lineer-dikkat mekanizmasına ([Gated DeltaNet](https://github.com/fla-org/flash-linear-attention)) damıtılmıştır. Kalan 32 katman softmax "çıpa" olarak korunur.
|
| 34 |
|
| 35 |
-
>
|
| 36 |
|
| 37 |
> **Kod, protokol, teknik rapor:** [github.com/ecloudtechnology/erk-linear](https://github.com/ecloudtechnology/erk-linear) · **Temel model:** [Qwen3-14B](https://huggingface.co/Qwen/Qwen3-14B)
|
| 38 |
|
|
@@ -62,13 +65,20 @@ pip install torch transformers flash-linear-attention safetensors huggingface_hu
|
|
| 62 |
```
|
| 63 |
|
| 64 |
```python
|
| 65 |
-
from
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
```
|
| 70 |
|
| 71 |
-
|
|
|
|
|
|
|
|
|
|
| 72 |
|
| 73 |
## Sınırlamalar
|
| 74 |
|
|
|
|
| 5 |
- Qwen/Qwen3-14B
|
| 6 |
language:
|
| 7 |
- tr
|
| 8 |
+
library_name: transformers
|
| 9 |
+
pipeline_tag: text-generation
|
| 10 |
tags:
|
| 11 |
- linear-attention
|
| 12 |
- gated-deltanet
|
|
|
|
| 15 |
- turkish
|
| 16 |
- erk
|
| 17 |
- research
|
| 18 |
+
- custom_code
|
| 19 |
inference: false
|
| 20 |
model-index:
|
| 21 |
- name: Erk-Linear
|
|
|
|
| 35 |
|
| 36 |
**%20-lineer hibrit:** Erk-14B'nin 40 dikkat katmanından 8'i, subquadratic bir lineer-dikkat mekanizmasına ([Gated DeltaNet](https://github.com/fla-org/flash-linear-attention)) damıtılmıştır. Kalan 32 katman softmax "çıpa" olarak korunur.
|
| 37 |
|
| 38 |
+
> **Gereksinim:** `trust_remote_code=True`, `flash-linear-attention` ve bir CUDA GPU'su. Mimari özeldir (`model_type: erk_linear`) ve Gated DeltaNet çekirdekleri Triton kullanır.
|
| 39 |
|
| 40 |
> **Kod, protokol, teknik rapor:** [github.com/ecloudtechnology/erk-linear](https://github.com/ecloudtechnology/erk-linear) · **Temel model:** [Qwen3-14B](https://huggingface.co/Qwen/Qwen3-14B)
|
| 41 |
|
|
|
|
| 65 |
```
|
| 66 |
|
| 67 |
```python
|
| 68 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 69 |
+
|
| 70 |
+
model = AutoModelForCausalLM.from_pretrained("ecloudtech/Erk-Linear", trust_remote_code=True)
|
| 71 |
+
tok = AutoTokenizer.from_pretrained("ecloudtech/Erk-Linear")
|
| 72 |
+
|
| 73 |
+
msg = [{"role": "user", "content": "Türkiye'nin başkenti neresidir?"}]
|
| 74 |
+
ids = tok.apply_chat_template(msg, add_generation_prompt=True, return_tensors="pt").to(model.device)
|
| 75 |
+
print(tok.decode(model.generate(ids, max_new_tokens=48)[0][ids.shape[1]:], skip_special_tokens=True))
|
| 76 |
```
|
| 77 |
|
| 78 |
+
Hibrit iki kaynaktan kurulur: **gövde** (32 softmax katmanı + gömme/LM başı) [`ecloudtech/Erk-14B`](https://huggingface.co/ecloudtech/Erk-14B) deposundan, **8 GDN katmanı** bu depodan (`gdn_weights.safetensors`). `from_pretrained` ikisini birleştirip çalışır bir nedensel dil modeli döndürür — `.generate()`, sohbet şablonu ve `use_cache` standart biçimde çalışır.
|
| 79 |
+
|
| 80 |
+
GDN sarmalayıcısı cache'li üretimde recurrent + convolution durumunu adımlar arası **devreder**; çıktı tam-yeniden-hesaplamayla (`use_cache=False`) sayısal gürültüye kadar aynıdır. Sarmalayıcı tek-dizi referans kullanım içindir; eş zamanlı/batch-paylaşımlı serviste her dizi için ayrı durum yönetimi gerekir.
|
| 81 |
+
|
| 82 |
|
| 83 |
## Sınırlamalar
|
| 84 |
|