Text Generation
Transformers
Safetensors
English
gemma
text-generation-inference
unsloth
trl
sft
4-bit precision
bitsandbytes
Instructions to use RanaHossny213/model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RanaHossny213/model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="RanaHossny213/model")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("RanaHossny213/model") model = AutoModelForCausalLM.from_pretrained("RanaHossny213/model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use RanaHossny213/model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "RanaHossny213/model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RanaHossny213/model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/RanaHossny213/model
- SGLang
How to use RanaHossny213/model 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 "RanaHossny213/model" \ --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": "RanaHossny213/model", "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 "RanaHossny213/model" \ --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": "RanaHossny213/model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Unsloth Desktop
- Docker Model Runner
How to use RanaHossny213/model with Docker Model Runner:
docker model run hf.co/RanaHossny213/model
Commit History
-
Trained with Unsloth
Verified signatureUpload model trained with Unsloth 2x faster1254dcf
-
Trained with Unsloth
Verified signatureUpload model trained with Unsloth 2x fasterbb36563 -
Trained with Unsloth
Verified signatureUpload model trained with Unsloth 2x faster9a03167 -
Trained with Unsloth
Verified signatureUpload model trained with Unsloth 2x fasterf894c08 -
Trained with Unsloth
Verified signatureUpload model trained with Unsloth 2x faster648b851 -
Trained with Unsloth
Verified signatureUpload model trained with Unsloth 2x fasterf65d2b0 -
Trained with Unsloth
Verified signatureUpload model trained with Unsloth 2x faster079f705 -
Trained with Unsloth
Verified signatureUpload model trained with Unsloth 2x faster29bd3c4
-
Trained with Unsloth
Verified signatureUpload model trained with Unsloth 2x faster38e5d12 -
Trained with Unsloth
Verified signatureUpload model trained with Unsloth 2x faster9968405 -
Trained with Unsloth
Verified signatureUpload model trained with Unsloth 2x faster1c3ba05 -
Upload README.md with huggingface_hub
Verified signature52c7447 -
initial commit
Verified signature76eb05a