Instructions to use Jahirrrr/Klyra-64M-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Jahirrrr/Klyra-64M-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Jahirrrr/Klyra-64M-Instruct") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Jahirrrr/Klyra-64M-Instruct", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Jahirrrr/Klyra-64M-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Jahirrrr/Klyra-64M-Instruct" # 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-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Jahirrrr/Klyra-64M-Instruct
- SGLang
How to use Jahirrrr/Klyra-64M-Instruct 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-Instruct" \ --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-Instruct", "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-Instruct" \ --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-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Jahirrrr/Klyra-64M-Instruct with Docker Model Runner:
docker model run hf.co/Jahirrrr/Klyra-64M-Instruct
Klyra-64M-Instruct
Klyra-64M-Instruct is the first instruction-tuned checkpoint in the Klyra-64M family.
It starts from Klyra-64M-Midtrain and was fine-tuned on filtered HuggingFaceTB/smol-smoltalk data using assistant-only loss.
SFT
- Train examples: 226,049
- Eval examples: 992
- Epochs: 2
- Context length: 1,024
- Precision: BF16
Final validation:
- Loss: 0.9828
- Perplexity: 2.672
Benchmark
| ARC-Easy | PIQA | OpenBookQA | HellaSwag | Social-IQA | Mean |
|---|---|---|---|---|---|
| 32.74 | 57.94 | 28.80 | 28.33 | 35.31 | 36.63 |
Intended Use
Use this checkpoint as the general instruction-tuned Klyra baseline or as a parent for downstream post-training experiments.
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
- 12