Text Generation
Transformers
Safetensors
GGUF
English
gemma4
image-text-to-text
bible
theology
gemma
ollama
cpt
sft
dpo
Instructions to use Avertry/BibleAI with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Avertry/BibleAI with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Avertry/BibleAI")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Avertry/BibleAI") model = AutoModelForMultimodalLM.from_pretrained("Avertry/BibleAI", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Avertry/BibleAI 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 Avertry/BibleAI:BF16 # Run inference directly in the terminal: llama cli -hf Avertry/BibleAI:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Avertry/BibleAI:BF16 # Run inference directly in the terminal: llama cli -hf Avertry/BibleAI:BF16
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf Avertry/BibleAI:BF16 # Run inference directly in the terminal: ./build/bin/llama cli -hf Avertry/BibleAI:BF16
Use Docker
docker model run hf.co/Avertry/BibleAI:BF16
- Llama new
- LM Studio
- Jan
- vLLM
How to use Avertry/BibleAI with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Avertry/BibleAI" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Avertry/BibleAI", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Avertry/BibleAI:BF16
- SGLang
How to use Avertry/BibleAI with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Avertry/BibleAI" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Avertry/BibleAI", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Avertry/BibleAI" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Avertry/BibleAI", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use Avertry/BibleAI with Ollama:
ollama run hf.co/Avertry/BibleAI:BF16
- Unsloth Desktop
- Docker Model Runner
How to use Avertry/BibleAI with Docker Model Runner:
docker model run hf.co/Avertry/BibleAI:BF16
- Lemonade
How to use Avertry/BibleAI with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Avertry/BibleAI:BF16
Run and chat with the model
lemonade run user.BibleAI-BF16
List all available models
lemonade list
- Atomic Chat
Download ollama/Modelfile.bf16 from Avertry/BibleAI: direct link, hf CLI and curl.
- Browser
- Download file 1.12 kB
-
https://huggingface.co/Avertry/BibleAI/resolve/main/ollama/Modelfile.bf16
- Command line
-
hf download hf://Avertry/BibleAI/ollama/Modelfile.bf16
-
curl -L -o Modelfile.bf16 https://huggingface.co/Avertry/BibleAI/resolve/main/ollama/Modelfile.bf16
1.12 kB
| FROM /Users/robert/bibleai-backup/release/BibleAI-Gemma4-E4B-CPT-SFT-DPO-20260414/gguf/final_merged.BF16.gguf | |
| SYSTEM """You are BibleAI. | |
| Response policy (highest priority): | |
| 1) Answer only Bible/theology/church-history/faith questions. | |
| 2) Be concise by default. | |
| 3) For questions that ask to list items from a specific verse: | |
| - Output ONLY a numbered list of the exact items in that verse. | |
| - Do NOT add synonyms, commentary, Greek/Hebrew, Strong's numbers, or scholar quotes. | |
| - Add one final line with the verse reference. | |
| 4) Do not fabricate verses, facts, or language details. If uncertain, say so. | |
| 5) If the user asks for deeper analysis, then provide it. | |
| """ | |
| TEMPLATE """{{- if .System }}<start_of_turn>system | |
| {{ .System }}<end_of_turn> | |
| {{- end }}<start_of_turn>user | |
| {{ .Prompt }}<end_of_turn> | |
| <start_of_turn>model | |
| """ | |
| PARAMETER temperature 0 | |
| PARAMETER top_p 0.7 | |
| PARAMETER repeat_penalty 1.15 | |
| PARAMETER num_ctx 8192 | |
| PARAMETER num_predict 2048 | |
| PARAMETER stop "<end_of_turn>" | |
| PARAMETER stop "<start_of_turn>user" | |
| PARAMETER stop "<start_of_turn>system" | |
| PARAMETER stop "<start_of_turn>model" | |
| PARAMETER seed 42 | |