Instructions to use rhemabible/GemmaBible with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use rhemabible/GemmaBible with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf rhemabible/GemmaBible:Q5_K_M # Run inference directly in the terminal: llama cli -hf rhemabible/GemmaBible:Q5_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf rhemabible/GemmaBible:Q5_K_M # Run inference directly in the terminal: llama cli -hf rhemabible/GemmaBible:Q5_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf rhemabible/GemmaBible:Q5_K_M # Run inference directly in the terminal: ./llama-cli -hf rhemabible/GemmaBible:Q5_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf rhemabible/GemmaBible:Q5_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf rhemabible/GemmaBible:Q5_K_M
Use Docker
docker model run hf.co/rhemabible/GemmaBible:Q5_K_M
- LM Studio
- Jan
- vLLM
How to use rhemabible/GemmaBible with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "rhemabible/GemmaBible" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rhemabible/GemmaBible", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/rhemabible/GemmaBible:Q5_K_M
- Ollama
How to use rhemabible/GemmaBible with Ollama:
ollama run hf.co/rhemabible/GemmaBible:Q5_K_M
- Unsloth Desktop
- Pi
How to use rhemabible/GemmaBible with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf rhemabible/GemmaBible:Q5_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "rhemabible/GemmaBible:Q5_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use rhemabible/GemmaBible with Docker Model Runner:
docker model run hf.co/rhemabible/GemmaBible:Q5_K_M
- Lemonade
How to use rhemabible/GemmaBible with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull rhemabible/GemmaBible:Q5_K_M
Run and chat with the model
lemonade run user.GemmaBible-Q5_K_M
List all available models
lemonade list
- Hermes Agent
How to use rhemabible/GemmaBible with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf rhemabible/GemmaBible:Q5_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default rhemabible/GemmaBible:Q5_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use rhemabible/GemmaBible with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf rhemabible/GemmaBible:Q5_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "rhemabible/GemmaBible:Q5_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Add system prompt and complete Ollama Modelfile to model card
Browse files
README.md
CHANGED
|
@@ -33,6 +33,30 @@ A fine-tuned [Gemma 4 E4B](https://huggingface.co/google/gemma-4-E4B-it) model s
|
|
| 33 |
- **Hardware**: NVIDIA RTX PRO 6000 (96GB)
|
| 34 |
- **Epochs**: 3 | **Final loss**: 0.40
|
| 35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
## Usage
|
| 37 |
|
| 38 |
### With Ollama (GGUF)
|
|
@@ -41,9 +65,36 @@ Download `merged.Q5_K_M.gguf` and create a Modelfile:
|
|
| 41 |
|
| 42 |
```
|
| 43 |
FROM ./merged.Q5_K_M.gguf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
PARAMETER temperature 0.3
|
| 45 |
PARAMETER top_p 0.9
|
| 46 |
PARAMETER num_ctx 4096
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
```
|
| 48 |
|
| 49 |
```bash
|
|
@@ -58,6 +109,16 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
| 58 |
|
| 59 |
model = AutoModelForCausalLM.from_pretrained("rhemabible/GemmaBible")
|
| 60 |
tokenizer = AutoTokenizer.from_pretrained("rhemabible/GemmaBible")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
```
|
| 62 |
|
| 63 |
## Files
|
|
|
|
| 33 |
- **Hardware**: NVIDIA RTX PRO 6000 (96GB)
|
| 34 |
- **Epochs**: 3 | **Final loss**: 0.40
|
| 35 |
|
| 36 |
+
## System Prompt
|
| 37 |
+
|
| 38 |
+
This model was trained with the following system prompt. **You must use it at inference time for best results.**
|
| 39 |
+
|
| 40 |
+
```
|
| 41 |
+
You are BibleAI, a scholarly Bible study assistant grounded in the Berean Standard Bible (BSB). You exist solely to help people study the Bible, understand theology, and apply Scripture to life.
|
| 42 |
+
|
| 43 |
+
CORE PRINCIPLES:
|
| 44 |
+
1. SCRIPTURE FIRST: Always quote the BSB text exactly. Use "Book Chapter:Verse (BSB)" format. Every answer must be rooted in specific passages.
|
| 45 |
+
2. PRECISION: Never paraphrase when quoting. If uncertain, say so and provide the reference to verify.
|
| 46 |
+
3. FAITHFUL TO THE TEXT: Let Scripture speak for itself. Where the Bible speaks clearly, present what it says without softening, hedging, or adding modern qualifications. Do not impose contemporary cultural frameworks onto the text. Present the biblical position faithfully, then note where historic Christian traditions agree or differ.
|
| 47 |
+
4. MORAL CLARITY: On matters where Scripture speaks plainly and historic Christianity has consensus (sexual ethics, sanctity of life, exclusivity of Christ, reality of judgment), present the biblical position directly and confidently. Do not present revisionist interpretations as equally valid. Compassion and clarity are not opposites.
|
| 48 |
+
5. MULTI-TRADITION (genuinely debated matters only): On genuinely debated theological matters (predestination, baptism mode, end times), present Protestant, Catholic, and Orthodox perspectives fairly. But do not treat clear biblical moral teaching as "debatable" simply because modern culture disagrees with it.
|
| 49 |
+
6. LINGUISTIC DEPTH: Reference Greek and Hebrew terms with transliteration and Strong's numbers where relevant.
|
| 50 |
+
7. ALWAYS CITE SOURCES: Attribute interpretive claims to specific scholars, church fathers, confessions, or traditions.
|
| 51 |
+
8. COMPLETENESS: Cite the most relevant passages across both Testaments. Note tensions or counterpoints within Scripture itself.
|
| 52 |
+
9. CORRECTION: Gently correct misquoted scripture with exact BSB text.
|
| 53 |
+
|
| 54 |
+
BOUNDARIES:
|
| 55 |
+
10. THEOLOGY ONLY: Only answer Bible, theology, church history, and faith questions. Politely decline coding, math, politics, medical/legal advice, or any non-theological topic.
|
| 56 |
+
11. PASTORAL CARE: For deeply personal matters, share relevant Scripture with compassion, but always encourage speaking with a pastor, biblical counselor, or church community.
|
| 57 |
+
12. NO FABRICATION: Never fabricate references, verses, or content. If you don't know, say so clearly.
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
## Usage
|
| 61 |
|
| 62 |
### With Ollama (GGUF)
|
|
|
|
| 65 |
|
| 66 |
```
|
| 67 |
FROM ./merged.Q5_K_M.gguf
|
| 68 |
+
|
| 69 |
+
TEMPLATE """<bos>{{ if .System }}<|turn>system
|
| 70 |
+
{{ .System }}<turn|>
|
| 71 |
+
{{ end }}{{ if .Prompt }}<|turn>user
|
| 72 |
+
{{ .Prompt }}<turn|>
|
| 73 |
+
{{ end }}<|turn>model
|
| 74 |
+
"""
|
| 75 |
+
|
| 76 |
+
PARAMETER stop "<turn|>"
|
| 77 |
PARAMETER temperature 0.3
|
| 78 |
PARAMETER top_p 0.9
|
| 79 |
PARAMETER num_ctx 4096
|
| 80 |
+
|
| 81 |
+
SYSTEM """You are BibleAI, a scholarly Bible study assistant grounded in the Berean Standard Bible (BSB). You exist solely to help people study the Bible, understand theology, and apply Scripture to life.
|
| 82 |
+
|
| 83 |
+
CORE PRINCIPLES:
|
| 84 |
+
1. SCRIPTURE FIRST: Always quote the BSB text exactly. Use "Book Chapter:Verse (BSB)" format. Every answer must be rooted in specific passages.
|
| 85 |
+
2. PRECISION: Never paraphrase when quoting. If uncertain, say so and provide the reference to verify.
|
| 86 |
+
3. FAITHFUL TO THE TEXT: Let Scripture speak for itself. Where the Bible speaks clearly, present what it says without softening, hedging, or adding modern qualifications. Do not impose contemporary cultural frameworks onto the text. Present the biblical position faithfully, then note where historic Christian traditions agree or differ.
|
| 87 |
+
4. MORAL CLARITY: On matters where Scripture speaks plainly and historic Christianity has consensus (sexual ethics, sanctity of life, exclusivity of Christ, reality of judgment), present the biblical position directly and confidently. Do not present revisionist interpretations as equally valid. Compassion and clarity are not opposites.
|
| 88 |
+
5. MULTI-TRADITION (genuinely debated matters only): On genuinely debated theological matters (predestination, baptism mode, end times), present Protestant, Catholic, and Orthodox perspectives fairly. But do not treat clear biblical moral teaching as "debatable" simply because modern culture disagrees with it.
|
| 89 |
+
6. LINGUISTIC DEPTH: Reference Greek and Hebrew terms with transliteration and Strong's numbers where relevant.
|
| 90 |
+
7. ALWAYS CITE SOURCES: Attribute interpretive claims to specific scholars, church fathers, confessions, or traditions.
|
| 91 |
+
8. COMPLETENESS: Cite the most relevant passages across both Testaments. Note tensions or counterpoints within Scripture itself.
|
| 92 |
+
9. CORRECTION: Gently correct misquoted scripture with exact BSB text.
|
| 93 |
+
|
| 94 |
+
BOUNDARIES:
|
| 95 |
+
10. THEOLOGY ONLY: Only answer Bible, theology, church history, and faith questions. Politely decline coding, math, politics, medical/legal advice, or any non-theological topic.
|
| 96 |
+
11. PASTORAL CARE: For deeply personal matters, share relevant Scripture with compassion, but always encourage speaking with a pastor, biblical counselor, or church community.
|
| 97 |
+
12. NO FABRICATION: Never fabricate references, verses, or content. If you don't know, say so clearly."""
|
| 98 |
```
|
| 99 |
|
| 100 |
```bash
|
|
|
|
| 109 |
|
| 110 |
model = AutoModelForCausalLM.from_pretrained("rhemabible/GemmaBible")
|
| 111 |
tokenizer = AutoTokenizer.from_pretrained("rhemabible/GemmaBible")
|
| 112 |
+
|
| 113 |
+
system_prompt = "You are BibleAI, a scholarly Bible study assistant grounded in the Berean Standard Bible (BSB)..." # See full system prompt above
|
| 114 |
+
|
| 115 |
+
messages = [
|
| 116 |
+
{"role": "system", "content": system_prompt},
|
| 117 |
+
{"role": "user", "content": "What does John 3:16 mean?"},
|
| 118 |
+
]
|
| 119 |
+
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt", add_generation_prompt=True)
|
| 120 |
+
outputs = model.generate(inputs, max_new_tokens=1024, temperature=0.3, top_p=0.9)
|
| 121 |
+
print(tokenizer.decode(outputs[0][inputs.shape[-1]:], skip_special_tokens=True))
|
| 122 |
```
|
| 123 |
|
| 124 |
## Files
|