Text Generation
Transformers
Safetensors
English
qwen2
text-generation-inference
unsloth
conversational
Instructions to use hozifa1/Faqih-R1-14B-Islamic-AI with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hozifa1/Faqih-R1-14B-Islamic-AI with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="hozifa1/Faqih-R1-14B-Islamic-AI") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("hozifa1/Faqih-R1-14B-Islamic-AI") model = AutoModelForCausalLM.from_pretrained("hozifa1/Faqih-R1-14B-Islamic-AI", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use hozifa1/Faqih-R1-14B-Islamic-AI with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "hozifa1/Faqih-R1-14B-Islamic-AI" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "hozifa1/Faqih-R1-14B-Islamic-AI", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/hozifa1/Faqih-R1-14B-Islamic-AI
- SGLang
How to use hozifa1/Faqih-R1-14B-Islamic-AI 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 "hozifa1/Faqih-R1-14B-Islamic-AI" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "hozifa1/Faqih-R1-14B-Islamic-AI", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "hozifa1/Faqih-R1-14B-Islamic-AI" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "hozifa1/Faqih-R1-14B-Islamic-AI", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use hozifa1/Faqih-R1-14B-Islamic-AI with Docker Model Runner:
docker model run hf.co/hozifa1/Faqih-R1-14B-Islamic-AI
Commit History
-
(Trained with Unsloth)
Verified signature1e0246f -
(Trained with Unsloth)
Verified signatureffd3fee -
Unsloth Model Card
Verified signature7660629 -
Add explicit Alpha Research Preview & Non-Fatwa Disclaimer
Verified signature4205ae8 -
Remove GGUF file from main Safetensors repository (moved to hozifa1/Faqih-R1-14B-GGUF)
Verified signatureb75c7dd -
Update comprehensive Model Card (Arabic & English)
Verified signature3abf36f -
Purge 6800-step LoRA adapter files (adapter_model.safetensors and adapter_config.json)
Verified signaturefa8cf58 -
Purge 6800-step training checkpoints and optimizer states; retain full model weights and GGUF
Verified signature6562b45 -
Training in progress, step 6800, checkpoint
Verified signature2819ddd -
Training in progress, step 6800
Verified signature84b5e44 -
Training in progress, step 6600, checkpoint
Verified signature4c3d558 -
Training in progress, step 6600
Verified signaturef1408fc -
Training in progress, step 6400, checkpoint
Verified signature19644cf -
Training in progress, step 6400
Verified signatureada0cbb -
Training in progress, step 6200, checkpoint
Verified signature9dd56ef -
Training in progress, step 6200
Verified signature50ae872 -
Training in progress, step 6000, checkpoint
Verified signaturefe95385 -
Training in progress, step 6000
Verified signature824065b -
Training in progress, step 5800, checkpoint
Verified signature4dca7d0 -
Training in progress, step 5800
Verified signature734fc36 -
Training in progress, step 5600, checkpoint
Verified signature81f0abf -
Training in progress, step 5600
Verified signature42cc9fa -
Training in progress, step 5400, checkpoint
Verified signatureb02b79a -
Training in progress, step 5400
Verified signature784a779 -
Training in progress, step 5200, checkpoint
Verified signature2fc5ab9 -
Training in progress, step 5200
Verified signature6fec700 -
Training in progress, step 5000, checkpoint
Verified signatureaa500df -
Training in progress, step 5000
Verified signature3f2d1b8 -
Training in progress, step 4800, checkpoint
Verified signaturebe6b6a5 -
Training in progress, step 4800
Verified signature88fcd1d -
Training in progress, step 4600, checkpoint
Verified signature1924d82 -
Training in progress, step 4600
Verified signatureb745997 -
Training in progress, step 4400, checkpoint
Verified signature0283d76 -
Training in progress, step 4400
Verified signature7a52cf7 -
Training in progress, step 4200, checkpoint
Verified signature0edce30 -
Training in progress, step 4200
Verified signature75abcd3 -
Training in progress, step 4000, checkpoint
Verified signaturee6a0bab -
Training in progress, step 4000
Verified signature9ba73be -
Training in progress, step 3800, checkpoint
Verified signature784736c -
Training in progress, step 3800
Verified signature3fb6dcc -
Training in progress, step 3600, checkpoint
Verified signature0300ccd -
Training in progress, step 3600
Verified signature58e990a -
Training in progress, step 3400, checkpoint
Verified signature0490204 -
Training in progress, step 3400
Verified signature8dcf7d3 -
Training in progress, step 3200, checkpoint
Verified signature4a790bf -
Training in progress, step 3200
Verified signature181de12 -
Training in progress, step 3000, checkpoint
Verified signature5fcb752 -
Training in progress, step 3000
Verified signaturec0721df -
Training in progress, step 2800, checkpoint
Verified signatureb802bc7 -
Training in progress, step 2800
Verified signature4fa182f