Instructions to use Jahirrrr/Klyra-64M-Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Jahirrrr/Klyra-64M-Base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Jahirrrr/Klyra-64M-Base") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Jahirrrr/Klyra-64M-Base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Jahirrrr/Klyra-64M-Base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Jahirrrr/Klyra-64M-Base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Jahirrrr/Klyra-64M-Base", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Jahirrrr/Klyra-64M-Base
- SGLang
How to use Jahirrrr/Klyra-64M-Base 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 "Jahirrrr/Klyra-64M-Base" \ --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": "Jahirrrr/Klyra-64M-Base", "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 "Jahirrrr/Klyra-64M-Base" \ --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": "Jahirrrr/Klyra-64M-Base", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Jahirrrr/Klyra-64M-Base with Docker Model Runner:
docker model run hf.co/Jahirrrr/Klyra-64M-Base
Klyra-64M-Base
Klyra-64M-Base is the foundation checkpoint of the Klyra-64M model family.
It was trained from random initialization on approximately 1B tokens before any instruction tuning or reasoning-specific post-training.
Training
- Dataset:
openbmb/Ultra-FineWeb-L1 - Configuration:
CC-MAIN-2025-30 - Training tokens: ~1B
- Sequence length: 512
- Peak learning rate:
5e-4 - Precision: BF16
Final validation:
- Loss: 2.3649
- Perplexity: 10.643
Intended Use
This checkpoint is intended for:
- continued pretraining,
- representation-learning experiments,
- tokenizer/model research,
- studying the Klyra training lineage.
It is not instruction tuned.
About Klyra
Klyra-64M is a compact language-model research project initiated and developed by a student of Informatics Engineering at Politeknik Negeri Jakarta (State Polytechnic of Jakarta).
The model uses a MiniMind-compatible decoder-only architecture and was trained through a staged pipeline from random initialization.
Main project: Jahirrrr/Klyra-64M
Architecture
| Component | Value |
|---|---|
| Unique runtime parameters | ~63.9M |
| Transformer layers | 8 |
| Hidden size | 768 |
| Attention heads | 8 |
| KV heads | 4 |
| Vocabulary | ~6.4K |
| Context length | 1,024 |
| MoE | No |
Parameter note: Klyra uses tied input/output embeddings at runtime. Some exported
safetensorsfiles may contain bothmodel.embed_tokens.weightandlm_head.weightas separate serialized tensors. The intended runtime model has 63,912,192 unique parameters after weight tying.
- Downloads last month
- 228