Instructions to use stukenov/sozkz-core-pythia-14m-kk-dapt-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use stukenov/sozkz-core-pythia-14m-kk-dapt-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="stukenov/sozkz-core-pythia-14m-kk-dapt-v1")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("stukenov/sozkz-core-pythia-14m-kk-dapt-v1") model = AutoModelForCausalLM.from_pretrained("stukenov/sozkz-core-pythia-14m-kk-dapt-v1") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use stukenov/sozkz-core-pythia-14m-kk-dapt-v1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "stukenov/sozkz-core-pythia-14m-kk-dapt-v1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "stukenov/sozkz-core-pythia-14m-kk-dapt-v1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/stukenov/sozkz-core-pythia-14m-kk-dapt-v1
- SGLang
How to use stukenov/sozkz-core-pythia-14m-kk-dapt-v1 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 "stukenov/sozkz-core-pythia-14m-kk-dapt-v1" \ --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": "stukenov/sozkz-core-pythia-14m-kk-dapt-v1", "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 "stukenov/sozkz-core-pythia-14m-kk-dapt-v1" \ --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": "stukenov/sozkz-core-pythia-14m-kk-dapt-v1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use stukenov/sozkz-core-pythia-14m-kk-dapt-v1 with Docker Model Runner:
docker model run hf.co/stukenov/sozkz-core-pythia-14m-kk-dapt-v1
Kazakh Pythia 14M — DAPT (Soz)
Domain-adaptive pretraining (DAPT) of EleutherAI/pythia-14m on Kazakh text. The first Kazakh language model experiment in the Soz project — a proof of concept.
Overview
| Property | Value |
|---|---|
| Base model | EleutherAI/pythia-14m |
| Training steps | 13,000 |
| Method | Domain-adaptive pretraining |
| Language | Kazakh |
| License | Apache 2.0 |
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("EleutherAI/pythia-14m")
model = AutoModelForCausalLM.from_pretrained("stukenov/slm-kk-pythia14m-dapt-13k")
input_ids = tokenizer("Қазақстан — ", return_tensors="pt").input_ids
output = model.generate(input_ids, max_new_tokens=50, do_sample=True, temperature=0.8)
print(tokenizer.decode(output[0], skip_special_tokens=True))
Note
This was the first experiment in the Soz project — a proof of concept for Kazakh language modeling. The Pythia-14m base model uses an English-centric tokenizer, making it suboptimal for Kazakh. Later models in the project use Kazakh-native tokenizers.
Project
Part of the Soz — Kazakh Language Models project, a research effort to build open-source language models for Kazakh.
Citation
@misc{tukenov2026soz,
title={Soz: Small Language Models for Kazakh},
author={Tukenov, Saken},
year={2026},
url={https://huggingface.co/stukenov/slm-kk-pythia14m-dapt-13k}
}
License
Apache 2.0
- Downloads last month
- -
Model tree for stukenov/sozkz-core-pythia-14m-kk-dapt-v1
Base model
EleutherAI/pythia-14m