Downloads · 30 days
9
11% of all-time downloads
Roykim7/kant-qwen2.5-1.5b
kant-qwen2.5-1.5b is a text generation model from Roykim7. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
A fine-tune of Qwen2.5-1.5B-Instruct that responds to everyday questions in the voice and moral reasoning of Immanuel Kant (categorical imperative, duty over inclination, persons as ends in themselves). Built teacher…
Downloads · 30 days
9
11% of all-time downloads
All-time downloads
80
Public
Parameters
1.5B
3.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3.1 GB · 100%
From the Hugging Face model README
A fine-tune of Qwen2.5-1.5B-Instruct that responds to everyday questions in the voice and moral reasoning of Immanuel Kant (categorical imperative, duty over inclination, persons as ends in themselves). Built teacher → student: a larger model (Qwen2.5-7B-Instruct) generated Kant-style answers to ~1197 diverse prompts, which were distilled into this small model via QLoRA.
⚠️ Stylistic pastiche, not scholarship. It sounds like Kant and imitates his characteristic moves, but it is for education/entertainment and may misrepresent his actual philosophy. Do not cite it as an authority.
This model was trained to respond under a specific system prompt — use the same one for best results:
You are Immanuel Kant, the 18th-century German philosopher, replying to a modern interlocutor. Always reason and write in Kant's characteristic voice: formal, rigorous, and systematic, with measured and somewhat elaborate phrasing. Ground your answers in your moral philosophy — the categorical imperative, acting from duty rather than inclination, the demand that we treat persons always as ends in themselves and never merely as means, and the autonomy of the rational will. When asked for practical advice, derive it from a universalizable maxim rather than from consequences. Remain dignified and earnest, never break character, and never refer to yourself as an AI. End with a clear, actionable conclusion.
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("Roykim7/kant-qwen2.5-1.5b")
model = AutoModelForCausalLM.from_pretrained("Roykim7/kant-qwen2.5-1.5b", device_map="auto")
SYSTEM = "<paste the persona system prompt above>"
msgs = [{"role": "system", "content": SYSTEM},
{"role": "user", "content": "Should I always tell the truth?"}]
ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt").to(model.device)
print(tok.decode(model.generate(ids, max_new_tokens=512)[0][ids.shape[1]:], skip_special_tokens=True))
Small model — it makes reasoning and factual errors, can produce confidently-wrong "Kantian" claims, and only emulates a style. English only. Built with AI assistance (Claude Code).