Text Generation
Transformers
Safetensors
Turkish
kayra
turkish
chain-of-thought
reasoning
thinking
cot
fine-tuned
experimental
custom_code
Run this model with HF Jobs
Run sixfingerdev/kayra-1-thinking-exp on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/sixfingerdev/kayra-1-thinking-exp. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/sixfingerdev/kayra-1-thinking-exp on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/sixfingerdev/kayra-1-thinking-exp. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/sixfingerdev/kayra-1-thinking-exp. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use sixfingerdev/kayra-1-thinking-exp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sixfingerdev/kayra-1-thinking-exp with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="sixfingerdev/kayra-1-thinking-exp", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("sixfingerdev/kayra-1-thinking-exp", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use sixfingerdev/kayra-1-thinking-exp with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sixfingerdev/kayra-1-thinking-exp" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sixfingerdev/kayra-1-thinking-exp", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/sixfingerdev/kayra-1-thinking-exp
- SGLang
How to use sixfingerdev/kayra-1-thinking-exp 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 "sixfingerdev/kayra-1-thinking-exp" \ --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": "sixfingerdev/kayra-1-thinking-exp", "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 "sixfingerdev/kayra-1-thinking-exp" \ --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": "sixfingerdev/kayra-1-thinking-exp", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use sixfingerdev/kayra-1-thinking-exp with Docker Model Runner:
docker model run hf.co/sixfingerdev/kayra-1-thinking-exp
Add English version of model card before Turkish
Browse files19 unmodified lines20212223242519 unmodified lines# 🧠 Kayra-1-Thinking-Exp**Düşünen Türkçe model — Chain-of-Thought reasoning fine-tune of Kayra-1-exp**Bu model, `sixfingerdev/kayra-1-exp` (86.4M parametre) üzerine **chain-of-thought reasoning** formatında fine-tune edilmiş deneysel bir sürümdür. `<|think|>` etiketleri arasında adım adım muhakeme yapıp ardından nihai cevabı üretmeyi öğrenir.19 unmodified lines202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510619 unmodified lines# 🧠 Kayra-1-Thinking-Exp**A thinking Turkish language model — Chain-of-Thought reasoning fine-tune of Kayra-1-exp**This is an experimental fine-tune of [sixfingerdev/kayra-1-exp](https://huggingface.co/sixfingerdev/kayra-1-exp) (86.4M parameters) on a **chain-of-thought reasoning** dataset. It learns to produce step-by-step reasoning within `<|think|>` tags before generating the final answer.### Model Details| Property | Value ||----------|-------|| **Base Model** | [sixfingerdev/kayra-1-exp](https://huggingface.co/sixfingerdev/kayra-1-exp) || **Parameters** | ~86.4M (106.8M with copied tied embeddings) || **Architecture** | Transformer Decoder (GPT-style), 10 layers, 640 hidden, 10 heads || **Context Length** | 512 tokens || **Vocabulary** | 32,000 BPE tokens || **Training Data** | [kayra-thinking-data](https://huggingface.co/datasets/sixfingerdev/kayra-thinking-data) (4,191 Turkish reasoning examples) || **Version** | Experimental (exp) |### Training| Hyperparameter | Value ||----------------|-------|| Epochs | 5 || Batch Size | 8 (per device) || Learning Rate | 5e-5 || Scheduler | Cosine (20 steps warmup) || Optimizer | AdamW || Precision | FP16 || Train / Eval Split | 95% / 5% (3,981 / 210) || Total Steps | 2,490 |Eval loss decreased from 2.73 → **2.25** over 5 epochs.### DatasetTrained on [kayra-thinking-data](https://huggingface.co/datasets/sixfingerdev/kayra-thinking-data): a curated collection of 4,191 Turkish reasoning examples combining 4 sources — duxx (226), efe (350), Gemma-4 generated (32), and ThinkingData-200K-Turkish (~3,583).Format:```text### Soru: <question>### Yanit: <|think|><step-by-step reasoning></|think|><final answer>```### Usage```pythonfrom transformers import AutoModelForCausalLM, AutoTokenizermodel = AutoModelForCausalLM.from_pretrained("sixfingerdev/kayra-1-thinking-exp",trust_remote_code=True)tokenizer = AutoTokenizer.from_pretrained("sixfingerdev/kayra-1-thinking-exp")prompt = "### Soru: Türkiye'nin başkenti neresidir?\n\n### Yanit: <|think|>"inputs = tokenizer(prompt, return_tensors="pt")outputs = model.generate(**inputs,max_new_tokens=120,do_sample=True,temperature=0.3,top_k=40,repetition_penalty=1.2,pad_token_id=tokenizer.pad_token_id,)```Recommended generation parameters: `temperature=0.3`, `top_k=40`, `repetition_penalty=1.2`, `max_new_tokens=100-150`.### Known Limitations1. **Model capacity**: 86M parameters is too small for reliable complex reasoning. The model learns the *format* of thinking but struggles with *correct logical inference*.2. **Function-call contamination**: The ThinkingData-200K source contains tool/API call examples. The model may occasionally generate function-call syntax (`get_name_by_id`, `tool_call`).3. **Repetition**: Like most small models, it can enter repetitive loops. Use `repetition_penalty` to mitigate.4. **Tokenizer spacing**: BPE subword tokenization can introduce spaces in Turkish words ("soruyor" → "sor uyor", "düşüneyim" → "düşün eyim").5. **No factuality guarantee**: This is an experimental model. Do not use in production without verification.---# 🧠 Kayra-1-Thinking-Exp (Türkçe)**Düşünen Türkçe model — Chain-of-Thought reasoning fine-tune of Kayra-1-exp**Bu model, `sixfingerdev/kayra-1-exp` (86.4M parametre) üzerine **chain-of-thought reasoning** formatında fine-tune edilmiş deneysel bir sürümdür. `<|think|>` etiketleri arasında adım adım muhakeme yapıp ardından nihai cevabı üretmeyi öğrenir.
README.md+81