Instructions to use U4RASD/DRU-RE-Yehia-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use U4RASD/DRU-RE-Yehia-2 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Navid-AI/Yehia-7B-preview") model = PeftModel.from_pretrained(base_model, "U4RASD/DRU-RE-Yehia-2") - Transformers
How to use U4RASD/DRU-RE-Yehia-2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="U4RASD/DRU-RE-Yehia-2") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("U4RASD/DRU-RE-Yehia-2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use U4RASD/DRU-RE-Yehia-2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "U4RASD/DRU-RE-Yehia-2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "U4RASD/DRU-RE-Yehia-2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/U4RASD/DRU-RE-Yehia-2
- SGLang
How to use U4RASD/DRU-RE-Yehia-2 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 "U4RASD/DRU-RE-Yehia-2" \ --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": "U4RASD/DRU-RE-Yehia-2", "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 "U4RASD/DRU-RE-Yehia-2" \ --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": "U4RASD/DRU-RE-Yehia-2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use U4RASD/DRU-RE-Yehia-2 with Docker Model Runner:
docker model run hf.co/U4RASD/DRU-RE-Yehia-2
Ctrl+K
- best_checkpoint
- evidence
- examples
- latest_checkpoint
- release
- resources
- test_codabench
- test_codabench_threshold_0.5
- tools
- 2.29 kB
- 2.23 kB
- 325 Bytes
- 7.78 kB
- 3.74 kB
- 4.92 kB
- 9.42 kB
- 3.36 kB
- 1.24 kB
- 5.2 kB
- 975 Bytes
- 160 MB xet
- 7.87 kB
- 11.3 kB
- 440 Bytes
- 456 Bytes
- 816 Bytes
- 3.3 kB
- 14.5 kB
- 3.76 kB
- 634 Bytes
- 56 kB
- 8.82 kB
- 7.22 kB
- 22.4 kB
- 347 Bytes
- 1.85 kB
- 551 Bytes
- 8.51 MB
- 1.23 MB xet
- 4.4 kB
- 582 Bytes
- 1.24 kB