It is not intended to replace human philosophical analysis or provide moral/personal advice.
Use the code below to get started with the model.
1from transformers import AutoTokenizer, AutoModelForCausalLM
2
3tokenizer = AutoTokenizer.from_pretrained("khazarai/Averroes-R1")
4model = AutoModelForCausalLM.from_pretrained(
5 "khazarai/Averroes-R1",
6 device_map={"": 0}
7)
8
9question = """
10What is the existentialist dilemma of freedom, and how do concepts like responsibility, anguish, and bad faith relate to it, according to Sartre?
11"""
12
13messages = [
14 {"role" : "user", "content" : question}
15]
16text = tokenizer.apply_chat_template(
17 messages,
18 tokenize = False,
19 add_generation_prompt = True,
20 enable_thinking = True,
21)
22
23from transformers import TextStreamer
24_ = model.generate(
25 **tokenizer(text, return_tensors = "pt").to("cuda"),
26 max_new_tokens = 2200,
27 temperature = 0.6,
28 top_p = 0.95,
29 top_k = 20,
30 streamer = TextStreamer(tokenizer, skip_prompt = True),
31)
This model was fine-tuned on tasks emphasizing foundational philosophical reasoning, focusing on:
-
Understanding key philosophical concepts across major branches (ethics, epistemology, metaphysics, logic, etc.)
-
Explaining philosophical principles through clear examples and structured reasoning
-
Highlighting the logical and conceptual steps behind philosophical inquiry
-
Building a strong foundational understanding of philosophical thought
-
Explaining the difference between empiricism and rationalism
-
Describing the reasoning behind the categorical imperative
-
Analyzing simple logical fallacies within philosophical arguments
The dataset explicitly teaches step-by-step reasoning, allowing the model to show intermediate thoughts when analyzing or explaining philosophical ideas.
Rather than diving into complex, specialized debates, the dataset helps build a broad, structured foundation for philosophical reasoning.