Instructions to use nur-dev/llama-1.9B-kaz with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nur-dev/llama-1.9B-kaz with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nur-dev/llama-1.9B-kaz")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("nur-dev/llama-1.9B-kaz") model = AutoModelForCausalLM.from_pretrained("nur-dev/llama-1.9B-kaz") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use nur-dev/llama-1.9B-kaz with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nur-dev/llama-1.9B-kaz" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nur-dev/llama-1.9B-kaz", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/nur-dev/llama-1.9B-kaz
- SGLang
How to use nur-dev/llama-1.9B-kaz 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 "nur-dev/llama-1.9B-kaz" \ --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": "nur-dev/llama-1.9B-kaz", "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 "nur-dev/llama-1.9B-kaz" \ --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": "nur-dev/llama-1.9B-kaz", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use nur-dev/llama-1.9B-kaz with Docker Model Runner:
docker model run hf.co/nur-dev/llama-1.9B-kaz
LLaMA 1.9B - Kazakh Causal Language Model
LLaMA 1.9B
Kazakh Causal Language Model
Model Description
This model is a Kazakh language version of the LLaMA model with 1.9 billion parameters, trained for causal language modeling. The train dataset includes some mixed Russian texts, which occasionally cause the model to generate Russian text. Despite this, the model shows promising results. Future steps may include retraining with a purer dataset, fine-tuning, or using the model for various NLP tasks with additional fine-tuning.
Training Setup
- Training Examples: Over 5.3 million examples
- Training Hardware: Two NVIDIA A100 GPUs (80GB each)
- Training Status: Ongoing, currently partway through the first epoch
- Optimizer: Cosine with restarts scheduler
- Parallelism: Distributed Data Parallel (DDP)
- Number of Warmup Steps: 8000
Model Authors
Name: Kadyrbek Nurgali
- Email: nurgaliqadyrbek@gmail.com
- LinkedIn: Kadyrbek Nurgali
@misc{
nurgali_kadyrbek_2024,
author = {NURGALI, Kadyrbek},
title = {llama-1.9B-kaz (Revision 299ebbb)},
year = 2024,
url = {https://huggingface.co/nur-dev/llama-1.9B-kaz},
doi = {10.57967/hf/3043},
publisher = {Hugging Face}
}
Citation
If you use this model, please cite the following publication:
Kadyrbek, N.; Tuimebayev, Z.; Mansurova, M.; Viegas, V. The Development of Small-Scale Language Models for Low-Resource Languages, with a Focus on Kazakh and Direct Preference Optimization. Big Data Cogn. Comput. 2025, 9, 137. https://doi.org/10.3390/bdcc9050137
- Downloads last month
- -