Text Generation
Transformers
Safetensors
English
t5
text2text-generation
english
quran
islamic
religious-texts
question-answering
text-generation-inference
Instructions to use justdeen/QuranPlus with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use justdeen/QuranPlus with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="justdeen/QuranPlus")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("justdeen/QuranPlus") model = AutoModelForSeq2SeqLM.from_pretrained("justdeen/QuranPlus", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use justdeen/QuranPlus with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "justdeen/QuranPlus" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "justdeen/QuranPlus", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/justdeen/QuranPlus
- SGLang
How to use justdeen/QuranPlus 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 "justdeen/QuranPlus" \ --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": "justdeen/QuranPlus", "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 "justdeen/QuranPlus" \ --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": "justdeen/QuranPlus", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use justdeen/QuranPlus with Docker Model Runner:
docker model run hf.co/justdeen/QuranPlus
Commit History
-
Update metadata with huggingface_hub
Verified signaturef2ad7d2 -
Update language to English - model accepts English input and provides English output
Verified signature51001af -
Trigger Inference API indexing
Verified signature969bb4b
-
Add pipeline_tag and proper model card for Inference API
Verified signaturea78e602 -
Remove final_model/tokenizer_config.json (moved to root)
Verified signaturebfc32fd -
Remove final_model/tokenizer.json (moved to root)
Verified signature1f72137 -
Remove final_model/spiece.model (moved to root)
Verified signature853901d -
Remove final_model/special_tokens_map.json (moved to root)
Verified signature648d4da -
Remove final_model/model.safetensors (moved to root)
Verified signatureb8dab0d -
Remove final_model/generation_config.json (moved to root)
Verified signature9004ee5 -
Remove final_model/config.json (moved to root)
Verified signatureca59fe8 -
Remove final_model/added_tokens.json (moved to root)
Verified signaturea2e96a1 -
Move tokenizer_config.json from final_model/ to root for Inference API
Verified signature81f00de -
Move tokenizer.json from final_model/ to root for Inference API
Verified signature88a55ea -
Move spiece.model from final_model/ to root for Inference API
Verified signature1cf9b6a -
Move special_tokens_map.json from final_model/ to root for Inference API
Verified signaturea5882ad -
Move model.safetensors from final_model/ to root for Inference API
Verified signature7a94c20 -
Move generation_config.json from final_model/ to root for Inference API
Verified signature08c30b6 -
Move config.json from final_model/ to root for Inference API
Verified signature44c5f21 -
Move added_tokens.json from final_model/ to root for Inference API
Verified signature79acf41 -
Upload folder using huggingface_hub
Verified signature88bca53 -
initial commit
Verified signatureb2048e5