This model was NOT fine-tuned on top of generic open-source weights. Instead, it was instruction-tuned directly over our proprietary foundation model, AhıskaAI 65m Base v0.1 (which was pre-trained from scratch for 1 full epoch on a 5.3 GB Turkish corpus). For this alignment phase (SFT), we utilized a strictly filtered and curated Turkish Alpaca dataset to maximize procedural logic, formatting accuracy, and structural fluidity while eliminating noisy data tokens.
To interact with the instruction-tuned layer smoothly, invoke the model with the exact token structure it was aligned with:
1from transformers import LlamaForCausalLM, AutoTokenizer
2import torch
3
4model_name = "AhiskaAI/AhiskaAI-65m-IT-v0.1"
5
6# Load the custom-built architecture and vocabulary
7model = LlamaForCausalLM.from_pretrained(model_name).to("cuda" if torch.cuda.is_available() else "cpu")
8tokenizer = AutoTokenizer.from_pretrained(model_name)
9
10def ask_ahiska_it(instruction):
11 # Strict Alpaca Template
12 prompt = f"<|im_start|>user\n{user_input}<|im_end|>\n<|im_start|>assistant\n"
13
14
15 inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
16
17 with torch.no_grad():
18 outputs = model.generate(
19 **inputs,
20 max_length=250,
21 do_sample=True,
22 top_k=40,
23 top_p=0.92,
24 temperature=0.55, # Low temp keeps the 65m nodes highly focused
25 repetition_penalty=1.18
26 )
27
28 response = tokenizer.decode(outputs[0], skip_special_tokens=True)
29 return response.split("### Response:\n")[-1].strip()
30
31# Run a test inference
32print(ask_ahiska_it("Sağlıklı yaşamak için 3 ipucu ver"))