Downloads · 30 days
16
10% of all-time downloads
tdw419/judaism-llm-qwen2.5-7b
judaism-llm-qwen2.5-7b is a machine learning model from tdw419. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Fine-tuned Qwen2.5-7B on Sefaria corpus of Jewish texts.
Downloads · 30 days
16
10% of all-time downloads
All-time downloads
155
Public
Parameters
7.6B
15.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors15.2 GB · 100%
From the Hugging Face model README
Fine-tuned Qwen2.5-7B on Sefaria corpus of Jewish texts.
This model specializes in:
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(
"tdw419/judaism-llm-qwen2.5-7b",
torch_dtype=torch.float16,
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(
"tdw419/judaism-llm-qwen2.5-7b"
)
messages = [
{
"role": "system",
"content": "You are Judaism LLM, trained on Sefaria corpus. Provide accurate, well-sourced responses in Hebrew and English."
},
{"role": "user", "content": "What is Teshuva?"}
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512)
response = tokenizer.decode(outputs[0][len(inputs.input_ids[0]):], skip_special_tokens=True)
print(response)
The model demonstrates:
Question: What is the significance of Shabbat?
Response: Shabbat holds a central and profound significance in Jewish tradition. It is considered a time of spiritual elevation and physical rest from labor. Here are some key aspects:
Divine Creation: Shabbat commemorates the completion of God's creation as described in Genesis 2:2-3.
Bond with God: Observing Shabbat strengthens the relationship between God and the Jewish people.
Rest and Reflection: Shabbat offers a break from daily routines, allowing for personal growth and communal activities.
Question: Explain the concept of Teshuva.
Response: Teshuva (תשובה) is a central concept in Jewish thought, referring to repentance or returning to God's path. It involves acknowledging one's sins, regretting them, making amends, and committing not to repeat transgressions.
Used standalone, this model generates fluent text but can fabricate citations.
We strongly recommend running it with the companion RAG pipeline
(https://github.com/tdw419/judaism_llm, branch roadmap-execution), which
changes the failure mode fundamentally:
With the RAG pipeline, responses are grounded verbatim quotes with citations, or an honest refusal — no fabricated sources. Evaluation (grounding via n-gram overlap against retrieved context) and the full prompt/retrieval implementation are in the repo.
Commercial Use Note: This model uses Sefaria data (CC-BY-NC 3.0), which prohibits commercial use without permission. Contact Sefaria for commercial licensing.
@model{judaism_llm_2026,
title={Judaism LLM: Qwen2.5-7B fine-tuned on Sefaria corpus},
author={Jericho},
year={2026},
url={https://huggingface.co/tdw419/judaism-llm-qwen2.5-7b}
}
Created: August 31, 2026 Repository: https://github.com/tdw419/judaism_llm