Text Generation
Transformers
Safetensors
GGUF
gemma3_text
turkish
türkiye
english
ai
lamapi
gemma3
next
next-x1
efficient
open-source
1b
huggingface
large-language-model
llm
causal
transformer
artificial-intelligence
machine-learning
ai-research
natural-language-processing
nlp
finetuned
lightweight
creative
summarization
question-answering
chat-model
generative-ai
optimized-model
unsloth
trl
sft
chemistry
biology
finance
legal
music
art
code
climate
medical
agent
text-generation-inference
conversational
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,7 +1,177 @@
|
|
| 1 |
-
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
-
|
| 6 |
-
-
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: tr
|
| 3 |
+
license: mit
|
| 4 |
+
tags:
|
| 5 |
+
- turkish
|
| 6 |
+
- türkiye
|
| 7 |
+
- english
|
| 8 |
+
- ai
|
| 9 |
+
- lamapi
|
| 10 |
+
- gemma3
|
| 11 |
+
- next
|
| 12 |
+
- next-x1
|
| 13 |
+
- efficient
|
| 14 |
+
- text-generation
|
| 15 |
+
- open-source
|
| 16 |
+
- 4b
|
| 17 |
+
- huggingface
|
| 18 |
+
- large-language-model
|
| 19 |
+
- llm
|
| 20 |
+
- causal
|
| 21 |
+
- transformer
|
| 22 |
+
- artificial-intelligence
|
| 23 |
+
- machine-learning
|
| 24 |
+
- ai-research
|
| 25 |
+
- natural-language-processing
|
| 26 |
+
- nlp
|
| 27 |
+
- finetuned
|
| 28 |
+
- lightweight
|
| 29 |
+
- creative
|
| 30 |
+
- summarization
|
| 31 |
+
- question-answering
|
| 32 |
+
- chat-model
|
| 33 |
+
- generative-ai
|
| 34 |
+
- optimized-model
|
| 35 |
+
- unsloth
|
| 36 |
+
- trl
|
| 37 |
+
- sft
|
| 38 |
+
pipeline_tag: text-generation
|
| 39 |
+
metrics:
|
| 40 |
+
- bleu
|
| 41 |
+
- accuracy
|
| 42 |
+
---
|
| 43 |
+
|
| 44 |
+
Tamam Sarp, şimdi bunu **1B parametreli, verimli ve Türkiye odaklı Next-1B modeli** için hazırladım. Vision yok, sadece text-generation ve reasoning için optimize edilmiş:
|
| 45 |
+
|
| 46 |
+
---
|
| 47 |
+
|
| 48 |
+
# 🚀 Next-1B
|
| 49 |
+
|
| 50 |
+
### *Lightweight, Efficient, and Türkiye-Focused AI*
|
| 51 |
+
|
| 52 |
+
[](https://opensource.org/licenses/MIT)
|
| 53 |
+
[]()
|
| 54 |
+
[](https://huggingface.co/Lamapi/next-1b)
|
| 55 |
+
|
| 56 |
+
---
|
| 57 |
+
|
| 58 |
+
## 📖 Overview
|
| 59 |
+
|
| 60 |
+
**Next-1B** is a **1-billion parameter causal language model** based on **Gemma 3**, designed for **efficiency, low-resource deployment, and reasoning-focused natural language understanding**.
|
| 61 |
+
|
| 62 |
+
Key highlights:
|
| 63 |
+
|
| 64 |
+
* Extremely **lightweight** — can run on consumer GPUs with low VRAM.
|
| 65 |
+
* Optimized for **text reasoning, summarization, and creative generation**.
|
| 66 |
+
* Supports **Turkish natively** while remaining multilingual.
|
| 67 |
+
* Open-source and transparent for research and applications.
|
| 68 |
+
|
| 69 |
+
Ideal for **developers, students, and organizations** needing **fast, reliable, and low-resource text-generation**.
|
| 70 |
+
|
| 71 |
+
---
|
| 72 |
+
|
| 73 |
+
## 🎯 Goals
|
| 74 |
+
|
| 75 |
+
1. **Lightweight Efficiency:** Run smoothly on low-resource devices.
|
| 76 |
+
2. **Reasoning-Focused:** Provide logical and coherent text outputs.
|
| 77 |
+
3. **Accessibility:** Fully open-source with clear documentation.
|
| 78 |
+
4. **Multilingual Adaptability:** Turkish-focused but supports other languages.
|
| 79 |
+
|
| 80 |
+
---
|
| 81 |
+
|
| 82 |
+
## ✨ Key Features
|
| 83 |
+
|
| 84 |
+
| Feature | Description |
|
| 85 |
+
| --------------------------- | --------------------------------------------------------------------- |
|
| 86 |
+
| 🔋 Lightweight Architecture | Optimized for low VRAM usage; ideal for small GPUs or CPU deployment. |
|
| 87 |
+
| 🇹🇷 Turkish & Multilingual | Handles complex Turkish prompts accurately. |
|
| 88 |
+
| 🧠 Reasoning Capabilities | Logical chain-of-thought for question-answering and problem-solving. |
|
| 89 |
+
| 📊 Consistent Outputs | Reliable and reproducible results across multiple runs. |
|
| 90 |
+
| 🌍 Open Source | Transparent, research-friendly, and community-driven. |
|
| 91 |
+
|
| 92 |
+
---
|
| 93 |
+
|
| 94 |
+
## 📐 Model Specifications
|
| 95 |
+
|
| 96 |
+
| Specification | Details |
|
| 97 |
+
| ------------------ | ---------------------------------------------------------------------- |
|
| 98 |
+
| Base Model | Gemma 3 |
|
| 99 |
+
| Parameter Count | 1 Billion |
|
| 100 |
+
| Architecture | Transformer, causal LLM |
|
| 101 |
+
| Fine-Tuning Method | Instruction fine-tuning (SFT) with Turkish and multilingual datasets |
|
| 102 |
+
| Optimizations | Quantization-ready (q8, f16, f32) |
|
| 103 |
+
| Use Cases | Text generation, summarization, Q&A, creative writing, reasoning tasks |
|
| 104 |
+
|
| 105 |
+
---
|
| 106 |
+
|
| 107 |
+
## 🚀 Installation & Usage
|
| 108 |
+
|
| 109 |
+
### Python
|
| 110 |
+
|
| 111 |
+
```python
|
| 112 |
+
from unsloth import FastModel
|
| 113 |
+
from transformers import TextStreamer
|
| 114 |
+
|
| 115 |
+
model_path = "Lamapi/next-1b"
|
| 116 |
+
|
| 117 |
+
# Load model (4-bit for low VRAM)
|
| 118 |
+
model, tokenizer = FastModel.from_pretrained(model_path, load_in_4bit=True)
|
| 119 |
+
|
| 120 |
+
# Chat messages
|
| 121 |
+
messages = [
|
| 122 |
+
{"role": "system", "content": "You are a creative, reasoning-focused assistant."},
|
| 123 |
+
{"role": "user", "content": "Summarize the main AI milestones in Turkey."},
|
| 124 |
+
]
|
| 125 |
+
|
| 126 |
+
# Prepare prompt
|
| 127 |
+
prompt = tokenizer.apply_chat_template(messages, add_generation_prompt=True)
|
| 128 |
+
streamer = TextStreamer(tokenizer, skip_prompt=True)
|
| 129 |
+
|
| 130 |
+
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
|
| 131 |
+
|
| 132 |
+
# Generate output
|
| 133 |
+
_ = model.generate(**inputs, streamer=streamer, max_new_tokens=200, temperature=0.7, top_p=0.9)
|
| 134 |
+
```
|
| 135 |
+
|
| 136 |
+
---
|
| 137 |
+
|
| 138 |
+
### 💡 Usage Examples
|
| 139 |
+
|
| 140 |
+
| Category | Example Prompt |
|
| 141 |
+
| ---------------- | ----------------------------------------------------------------- |
|
| 142 |
+
| 🗣️ Conversation | "Introduce yourself as an AI assistant." |
|
| 143 |
+
| 📚 Knowledge | "List AI milestones in Turkey from 2000 to 2025." |
|
| 144 |
+
| ✍️ Creative | "Write a short story about an AI exploring Istanbul." |
|
| 145 |
+
| 📊 Analytical | "Compare 1B vs 7B parameter models for reasoning and efficiency." |
|
| 146 |
+
| 🎓 Cultural | "Explain Mustafa Kemal Atatürk's impact on modern Turkey." |
|
| 147 |
+
|
| 148 |
+
---
|
| 149 |
+
|
| 150 |
+
## 📊 Performance & Benchmarks
|
| 151 |
+
|
| 152 |
+
Next-1B is optimized for **low-resource devices**:
|
| 153 |
+
|
| 154 |
+
* **Perplexity (Turkish text):** ~15–18
|
| 155 |
+
* **Tokens/sec on 4-bit consumer GPUs:** 800–2000
|
| 156 |
+
* **Output quality:** Strong reasoning and text coherence for small-scale models
|
| 157 |
+
|
| 158 |
+
> Ideal for applications needing **lightweight, fast, and reliable LLM performance**.
|
| 159 |
+
|
| 160 |
+
---
|
| 161 |
+
|
| 162 |
+
## 📄 License
|
| 163 |
+
|
| 164 |
+
MIT License — free to use, modify, and distribute. Attribution appreciated.
|
| 165 |
+
|
| 166 |
+
---
|
| 167 |
+
|
| 168 |
+
## 📞 Contact & Support
|
| 169 |
+
|
| 170 |
+
* 📧 **Email:** [lamapicontact@gmail.com](mailto:lamapicontact@gmail.com)
|
| 171 |
+
* 🤗 **HuggingFace:** [Lamapi](https://huggingface.co/Lamapi)
|
| 172 |
+
|
| 173 |
+
---
|
| 174 |
+
|
| 175 |
+
> **Next-1B** — Lightweight, **efficient, and reasoning-focused**, bringing **Turkey’s AI forward** on low-resource hardware.
|
| 176 |
+
|
| 177 |
+
[](https://huggingface.co/Lamapi)
|