Text Generation
Transformers
Safetensors
Turkish
English
gemma3_text
trl
cpt
text-generation-inference
Instructions to use canbingol/gemma3_1B_base-tr-cpt-3epoch_15k_data with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use canbingol/gemma3_1B_base-tr-cpt-3epoch_15k_data with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="canbingol/gemma3_1B_base-tr-cpt-3epoch_15k_data")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("canbingol/gemma3_1B_base-tr-cpt-3epoch_15k_data") model = AutoModelForCausalLM.from_pretrained("canbingol/gemma3_1B_base-tr-cpt-3epoch_15k_data", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use canbingol/gemma3_1B_base-tr-cpt-3epoch_15k_data with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "canbingol/gemma3_1B_base-tr-cpt-3epoch_15k_data" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "canbingol/gemma3_1B_base-tr-cpt-3epoch_15k_data", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/canbingol/gemma3_1B_base-tr-cpt-3epoch_15k_data
- SGLang
How to use canbingol/gemma3_1B_base-tr-cpt-3epoch_15k_data 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 "canbingol/gemma3_1B_base-tr-cpt-3epoch_15k_data" \ --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": "canbingol/gemma3_1B_base-tr-cpt-3epoch_15k_data", "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 "canbingol/gemma3_1B_base-tr-cpt-3epoch_15k_data" \ --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": "canbingol/gemma3_1B_base-tr-cpt-3epoch_15k_data", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use canbingol/gemma3_1B_base-tr-cpt-3epoch_15k_data with Docker Model Runner:
docker model run hf.co/canbingol/gemma3_1B_base-tr-cpt-3epoch_15k_data
Update README.md
Browse files
README.md
CHANGED
|
@@ -10,45 +10,37 @@ language:
|
|
| 10 |
- en
|
| 11 |
base_model:
|
| 12 |
- google/gemma-3-1b-pt
|
| 13 |
-
new_version: canbingol/gemma3_1B_base-tr-cpt-1epoch_stage2
|
| 14 |
---
|
| 15 |
|
| 16 |
-
# Model Card: Gemma3-1B Turkish CPT (
|
| 17 |
|
| 18 |
## Overview
|
| 19 |
-
This is an experimental Turkish Continued Pretraining (CPT) model based on `google/gemma-3-1b-pt`.
|
| 20 |
|
| 21 |
-
|
| 22 |
|
| 23 |
-
|
|
|
|
|
|
|
| 24 |
|
| 25 |
---
|
| 26 |
|
| 27 |
## Base Model
|
|
|
|
| 28 |
- `google/gemma-3-1b-pt`
|
| 29 |
|
| 30 |
---
|
| 31 |
|
| 32 |
-
## Training
|
| 33 |
|
| 34 |
- Dataset: `canbingol/vngrs-web-corpus-200k`
|
| 35 |
- Subset Used: First 15,000 samples
|
| 36 |
-
-
|
| 37 |
-
-
|
| 38 |
-
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
## Limitations & Warnings
|
| 42 |
-
|
| 43 |
-
- This model is **not instruction-tuned**.
|
| 44 |
-
- It may produce raw or unaligned outputs.
|
| 45 |
-
- Safety alignment from instruction-tuned variants is not included.
|
| 46 |
-
- Performance gains may be domain-specific and limited due to relatively small CPT token size (~19.5M).
|
| 47 |
-
|
| 48 |
-
This model is **not intended for production use** without further evaluation and alignment.
|
| 49 |
-
|
| 50 |
---
|
| 51 |
|
|
|
|
| 52 |
## Citation
|
| 53 |
|
| 54 |
If you use this model, please cite the base model:
|
|
@@ -57,15 +49,13 @@ If you use this model, please cite the base model:
|
|
| 57 |
|
| 58 |
---
|
| 59 |
|
| 60 |
-
## Usage
|
| 61 |
-
|
| 62 |
-
Below is a minimal example using 🤗 Transformers:
|
| 63 |
|
| 64 |
```python
|
| 65 |
import torch
|
| 66 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 67 |
|
| 68 |
-
model_id = "canbingol/gemma3_1B_base-tr-cpt-
|
| 69 |
|
| 70 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 71 |
|
|
|
|
| 10 |
- en
|
| 11 |
base_model:
|
| 12 |
- google/gemma-3-1b-pt
|
|
|
|
| 13 |
---
|
| 14 |
|
| 15 |
+
# Model Card: Gemma3-1B Turkish CPT (15K Subset, 3 Epoch)
|
| 16 |
|
| 17 |
## Overview
|
|
|
|
| 18 |
|
| 19 |
+
This model is a Turkish Continued Pretraining (CPT) variant of `google/gemma-3-1b-pt`.
|
| 20 |
|
| 21 |
+
The base model was further trained for **3 epochs** on the first **15,000 samples** of a Turkish web corpus to improve Turkish language modeling capability and domain familiarity.
|
| 22 |
+
|
| 23 |
+
This release is intended for **research and experimental use**.
|
| 24 |
|
| 25 |
---
|
| 26 |
|
| 27 |
## Base Model
|
| 28 |
+
|
| 29 |
- `google/gemma-3-1b-pt`
|
| 30 |
|
| 31 |
---
|
| 32 |
|
| 33 |
+
## Training Setup
|
| 34 |
|
| 35 |
- Dataset: `canbingol/vngrs-web-corpus-200k`
|
| 36 |
- Subset Used: First 15,000 samples
|
| 37 |
+
- Training Objective: Continued Pretraining (Causal LM / Next-Token Prediction)
|
| 38 |
+
- Epochs: 3
|
| 39 |
+
- Data Regime: Plain text (no instruction formatting)
|
| 40 |
+
- Token Count (approximate): ~19.5M tokens
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
---
|
| 42 |
|
| 43 |
+
|
| 44 |
## Citation
|
| 45 |
|
| 46 |
If you use this model, please cite the base model:
|
|
|
|
| 49 |
|
| 50 |
---
|
| 51 |
|
| 52 |
+
## Usage Example
|
|
|
|
|
|
|
| 53 |
|
| 54 |
```python
|
| 55 |
import torch
|
| 56 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 57 |
|
| 58 |
+
model_id = "canbingol/gemma3_1B_base-tr-cpt-3epoch_15k_data"
|
| 59 |
|
| 60 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 61 |
|