Kai-2 is a fine-tuned variant of
Qwen2.5-7B-Instruct built by
Preetham Kyanam at
Belweave. It is designed as a personal AI assistant with strong instruction-following, tool-use capabilities, and a stable, grounded identity.
Trained on Lambda Cloud (NVIDIA A100) for agentic competence.
Trained locally on a MacBook Air M3 using
MLX to embed a stable identity and prevent base-model identity leakage.
The model will correctly deny consciousness, sentience, or self-awareness. It does not hallucinate training hardware details (e.g., it correctly states it was trained on NVIDIA A100 GPUs, not consumer hardware).
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained(
4 "preethamkyanam/kai-2",
5 torch_dtype="auto",
6 device_map="auto",
7)
8tokenizer = AutoTokenizer.from_pretrained("preethamkyanam/kai-2")
9
10messages = [{"role": "user", "content": "Who are you?"}]
11prompt = tokenizer.apply_chat_template(
12 messages,
13 tokenize=False,
14 add_generation_prompt=True,
15)
16inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
17outputs = model.generate(**inputs, max_new_tokens=100)
18response = tokenizer.decode(
19 outputs[0][inputs.input_ids.shape[1]:],
20 skip_special_tokens=True,
21)
22print(response)
1from mlx_lm import load, generate
2from mlx_lm.sample_utils import make_sampler
3
4model, tokenizer = load("preethamkyanam/kai-2")
5
6messages = [{"role": "user", "content": "Who are you?"}]
7prompt = tokenizer.apply_chat_template(
8 messages,
9 tokenize=False,
10 add_generation_prompt=True,
11)
12
13sampler = make_sampler(temp=0.7)
14response = generate(
15 model,
16 tokenizer,
17 prompt=prompt,
18 max_tokens=100,
19 sampler=sampler,
20)
21print(response)
1@misc{kai2_2025,
2 title = {Kai-2: A Fine-Tuned Qwen2.5-7B-Instruct for Agentic AI},
3 author = {Kyanam, Preetham},
4 year = {2025},
5 publisher = {Belweave},
6 howpublished = {\\url{https://huggingface.co/preethamkyanam/kai-2}}
7}
For questions, issues, or collaboration inquiries, reach out via
Belweave or open an issue on the model page.