bible-nlp/biblenlp-corpus
Updated โข 592 โข 40
How to use tombenj/hebrew_bible_ai with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="tombenj/hebrew_bible_ai") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("tombenj/hebrew_bible_ai")
model = AutoModelForCausalLM.from_pretrained("tombenj/hebrew_bible_ai")How to use tombenj/hebrew_bible_ai with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "tombenj/hebrew_bible_ai"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "tombenj/hebrew_bible_ai",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/tombenj/hebrew_bible_ai
How to use tombenj/hebrew_bible_ai with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "tombenj/hebrew_bible_ai" \
--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": "tombenj/hebrew_bible_ai",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "tombenj/hebrew_bible_ai" \
--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": "tombenj/hebrew_bible_ai",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use tombenj/hebrew_bible_ai with Docker Model Runner:
docker model run hf.co/tombenj/hebrew_bible_ai
Finetuned gpt2-xl model on the Hebrew bible. This will babble new potentially good looking Hebrew bible verses.
You can run an example at Hugging Face: https://huggingface.co/tombenj/hebrew_bible_ai
Based on the input from: https://raw.githubusercontent.com/BibleNLP/ebible/main/corpus/heb-heb.txt
And based on the gpt2-xl model from OpenAI.
Output example: โง
ืืืื ืืืฆืจื ืืืฃ ืื ืื ืื ืืขืืื ืืืฆืืชื ืืฉืจ ืื ืืฉืืืขื ืืขื ืืฉืจ ืืขื ืืฉืืื ืืืฉืืื ืืฉืจ ืืขื ืื ื ื ืืื ืืฉืจ ืืฉืืชื ืืืืื
ืืืื ืืืืื ืืืช ืืืื ืื ืืคืฅ ืื ืืืืจ ืืืื ืืืื ืืืืฉืจ ืืื ืืืจืฅ ืืงืืื
ืืืงืืฆื ืืื ืืืืืจื ืื ืืืื ืืืืืื ืื ืืคืฅ ืื ืื ื ื ืืื ืืืืืื ืขื ืืขืจื ืืืื ืืืืืื ืืื ืืื ืืืืืื ืืจืืฉ ืืฉืจ ืืขืืื
ืืืงืฆืฅ ืืืืืืข ืืคื ื ืืืื ืืืืืจื ืื ืชืฆืืชื ืืชื ืื ืืืืฉื ืืื ื ืื ืืื ืฉืืช ืื ื ืื ืื ื ืืื
ืืืื ืืืจื ืื ืืืืืจ ืืื ืืื ืืขื ืืืืืจ ืืืืืจ ืืืื ืื ืื ืืืจื
---------------
ืืืก ืืขืฉืชื ืฉืืข ืืจืข ืืช ืืฉืจ ืคืกื ืืืช ืืฉืจ ืคืกื ืืืช ืืฉืจ ืคืกื ืืืช ืืฉืจ ืคืกื ืืืช ืืฉืจ ืคืกืื
ืืื ื ื ืื ืืื ืืื ืืขืจื ืืืื ืืื ืืืืฉ ืืืื ืืฉืืจ ืืืื ืืฆืจืื ืืื ืืื ืืืืื ืืฉืจ ืชื ืชืื
ืืืืืจ ืืืื ืืื ื ื ื ืขืื ืืฆืืื ืืืืืจ ืื ืื ืื ืืฉ ืืฆืจืืช ืืืืื ืืืื ืื ืืื ืืืื
ืืืื ืื ืื ืื ืืฉ ืืฆืจ ืืื ืืืืื ืืืื ืื ืืื ืืืื
ืืืื ืืื ืื ืืื ืืื ืื ื ื ืื ืขืื ืืืืื ืืืื ืื ืืื ืืืื
ืืืื ืืฆืจืื ืืื ืืช ืืฉืจ ืคืกื ืืืช ืืฉืจ ืคืกื ืืืช ืืฉืจ ืคืกื ืืืื ืื ืืื ืืืื
---------------
ืืขื ืคื ื ืคืจืข ืฉื ื ืืืจ ืืืืื ื ืจืงืข ืืช ืืื ืืืฉืจ ืืืจ ืืืืื ืื ืืจืืืช ืื ืื ื ื ืขืื ืืืืืจ ืืืืื ืื ื ื ืืขืืืื ืืฉืจ ืงืฉืชื ืื ืืื ืื ืฉืื
ืืืงืืฆื ืืชื ืืชืืื ืืืืงืฉ ืื ืขื ืืฉืจ ืืืจ ืืืืื ื ื ืืช ืืืช ืืื ืื ืืืฉื ืืืืื ืืืืงืฉ ืืช ืืืชื
ืืืขื ืืจืื ืืืืจ ืื ืืื ืืื ืืืื ืืฉืืขื ืื ื ืืขืงื ืืืงืืจ ืืืงืืฅ ืืืฉื ืืืจื ืืืช ืืขืงื ืืืขืืจ ืืขืงื ืืืื ืื ื ืคืฉืื
ืืืฉืื ืืืืืจ ืื ืื ื ืื ืืื ืขืื ืื ื ืืขืงื ืื ืื ืืืืื
ืืืืืจ ืืื ืื ืื ื ืืฆืืื ื ืืืฆื ืื ืืื ืืืืช ืืฉืจ ืืื ืจืื ืืืืืจ ืืืื ืฉื ืืช ืืื ื ื
---------------
ืืืืืจ ืืืืื ืืื ืืขื ืื ืื ืขืืง ืื ื ืขืืื ืืขืืื ืขืืื ืขืืง ืื ื ืืขืืื ืขืืื ืืืื ืขืืื ืืืืช ืืืืช ืขืื ืื ืื
ืืืจื ืืขืงื ืื ืืขื ืืืืจ ืื ื ืขืืื ืขืืื ืขืืง ืื ื ืืขืืื ืขืืื ืขืืง ืื ื ืืขืืื ืขืืื ืขืืง ืื ื ืืขืืื ืขืืื ืขื ืจื ืืขื ืขืฉื ืคืชื ืืขืงืื
ืืืืืจ ืืขืงื ืื ืืขืฉืืจื ืื ืื ื ืื ืืื ื ืืขื ืืืืืจ ืื ืืขืงื ืื ืื ืื ื ืื ืืช ืืืืืื ืื ืืืืื ืืฉืจ ืื ื ืืขืื ืืขืื
ืืืืืจ ืืขืงื ืื ืืขื ืืฉืจ ืื ื ืืขืื ืืขื ืื ื ืื
ืืืืืจ ืืขืงื ืื ืื ื ื ืขืื ืืืืื ืืืจืฅ ืืฉืจ ืื
---------------
ืื ืชืืื ืืขืช ืจืืฆืื ืืืช ืืื ืชื ืืืื ืื ืืืงืืฅ ืืื ืืืฆืื ืืชืื ืืืืืจ ืื ืฉื ืืืืื ืืื ืฉื ืืืจืคืช ืืื ืฉื ืืืคืฉืช ืืื ืฉื ืืคืจืฉืช ืืื ืฉื ืืขืืจ ืืื ืฉื ืืืืจืืชื
ืืืืืื ืืฉืจ ืืืืืื ืืช ืฉื ืืืืื ืืืืืื ืืืช ืฉื ืืืคืฉ ืืฉื ื ืืืืืื
ืืืื ืขื ืืฆืื ืืช ืืืื ืืืืืื ืืขืฉืง ืืืืช ืืืคืื ืขืฉื ืืขืฉื ืืื ืืืช ืืืคืื ืืืกืฃ ืืืฉืื ืืื ืืงืื ืืื ืืงื ืื ืืขืืื ืืื ืื ืืชืจืืื
ืืืชื ืืช ืขืฉืจืื ืืช ืืืืจ ืืื ืืฉืจ ืืืื ืืคื ื ืืจื ืืืขืฉ ืืช ืขืฉืจื ืื ืฉืืจืื ืืืืืจ ืืื ืืื ื ืฉืืจืื ืฉืื ืื
---------------
ืคืขืื ืืืื ืคืืฉืชืื ืืื ืจืืืืื
ืืื ืืื ืขื ื ืืื ืืืื ืืขืื ื ืื ืื ืื
ืืขืืืช ืืขืงื ืขื ืจื ืืขื ืคื ื ืจืขืื
ืืืืจื ืืืื ืืืื ืืืื ืืืื
ืืืจื ืชืฉืืช ืื ืฉืืช ืืื ื ืฉื ืื ืืืืฆืืช ืืืืจื
ืื ืชืืืง ืื ืืคืจ ืืขื ืชืื
ืืขืฉืง ืืคื ืื ืื ื ืืฉืจ ืืืฆื ืืื ืืืืฉ ืื ืื ืื
ืืืฉืจ ืืื ื ืืืฉืจ ืื ื ืืขืื ื ืืฉืจ ืืขืืื
ื ืคืฉ ืืฉืจ ืืืืฉ ืืฉืจ ืืฉืืขื ืืขืืื
ืืฉืจ ืืื ื ืืืฉืจ ืื ื ืืฉืจ ืืืฉืื ืื
ืื ื ืชืืืืข ืืืจืืข ืืืจืืข ืืขืืืจื
ืืื ืขืืืื ืืืฉืืื ืืฉืจ ืชืฉืืช ืื ืืกืคืืื
โฆ