Text Generation
Transformers
Safetensors
deepseek_v3
conversational
custom_code
text-generation-inference
fp8
Instructions to use Alhdrawi/R-Ray-Ai-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Alhdrawi/R-Ray-Ai-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Alhdrawi/R-Ray-Ai-model", trust_remote_code=True) 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("Alhdrawi/R-Ray-Ai-model", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("Alhdrawi/R-Ray-Ai-model", trust_remote_code=True, 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 Alhdrawi/R-Ray-Ai-model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Alhdrawi/R-Ray-Ai-model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Alhdrawi/R-Ray-Ai-model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Alhdrawi/R-Ray-Ai-model
- SGLang
How to use Alhdrawi/R-Ray-Ai-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 "Alhdrawi/R-Ray-Ai-model" \ --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": "Alhdrawi/R-Ray-Ai-model", "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 "Alhdrawi/R-Ray-Ai-model" \ --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": "Alhdrawi/R-Ray-Ai-model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Alhdrawi/R-Ray-Ai-model with Docker Model Runner:
docker model run hf.co/Alhdrawi/R-Ray-Ai-model
Commit History
-
Upload benchmark.jpg with huggingface_hub
Verified signature5ebc9ac -
Upload tokenizer_config.json with huggingface_hub
Verified signature7a25369 -
Upload tokenizer.json with huggingface_hub
Verified signature91623f9 -
Upload modeling_deepseek.py with huggingface_hub
Verified signature467e947 -
Upload model.safetensors.index.json with huggingface_hub
Verified signature4a46ecb -
Upload generation_config.json with huggingface_hub
Verified signaturec99a286 -
Upload configuration_deepseek.py with huggingface_hub
Verified signatureee8ba4e -
Upload config.json with huggingface_hub
Verified signature7452ce6 -
Upload README.md with huggingface_hub
Verified signature2a8e597 -
Upload LICENSE with huggingface_hub
Verified signature9b28759 -
Upload model-00163-of-000163.safetensors with huggingface_hub
Verified signature1adb476 -
Upload model-00162-of-000163.safetensors with huggingface_hub
Verified signature0790618 -
Upload model-00161-of-000163.safetensors with huggingface_hub
Verified signature2ba01fc -
Upload model-00160-of-000163.safetensors with huggingface_hub
Verified signature3d44607 -
Upload model-00159-of-000163.safetensors with huggingface_hub
Verified signaturebfc2ebd -
Upload model-00158-of-000163.safetensors with huggingface_hub
Verified signature924391e -
Upload model-00157-of-000163.safetensors with huggingface_hub
Verified signatureee7f80b -
Upload model-00156-of-000163.safetensors with huggingface_hub
Verified signature9bdf3c3 -
Upload model-00155-of-000163.safetensors with huggingface_hub
Verified signature1f73202 -
Upload model-00154-of-000163.safetensors with huggingface_hub
Verified signature14f1f62 -
Upload model-00153-of-000163.safetensors with huggingface_hub
Verified signature05f28f0 -
Upload model-00152-of-000163.safetensors with huggingface_hub
Verified signature231b77c -
Upload model-00151-of-000163.safetensors with huggingface_hub
Verified signature4be2bd1 -
Upload model-00150-of-000163.safetensors with huggingface_hub
Verified signature3be5898 -
Upload model-00149-of-000163.safetensors with huggingface_hub
Verified signature21e23d2 -
Upload model-00148-of-000163.safetensors with huggingface_hub
Verified signature7e2737c -
Upload model-00147-of-000163.safetensors with huggingface_hub
Verified signaturea04ec1b -
Upload model-00146-of-000163.safetensors with huggingface_hub
Verified signature2018fd0 -
Upload model-00145-of-000163.safetensors with huggingface_hub
Verified signature69e7e9d -
Upload model-00144-of-000163.safetensors with huggingface_hub
Verified signature7a04c2b -
Upload model-00143-of-000163.safetensors with huggingface_hub
Verified signaturea3c311d
-
Upload model-00142-of-000163.safetensors with huggingface_hub
Verified signature4e07d4c -
Upload model-00141-of-000163.safetensors with huggingface_hub
Verified signaturec36d636 -
Upload model-00140-of-000163.safetensors with huggingface_hub
Verified signature99efcd9 -
Upload model-00139-of-000163.safetensors with huggingface_hub
Verified signature3dca3c9 -
Upload model-00138-of-000163.safetensors with huggingface_hub
Verified signaturefb998d4 -
Upload model-00137-of-000163.safetensors with huggingface_hub
Verified signature63d74c4 -
Upload model-00136-of-000163.safetensors with huggingface_hub
Verified signaturea6ca1e3 -
Upload model-00135-of-000163.safetensors with huggingface_hub
Verified signature47086ae -
Upload model-00134-of-000163.safetensors with huggingface_hub
Verified signature8542520 -
Upload model-00133-of-000163.safetensors with huggingface_hub
Verified signature4ed4e2a -
Upload model-00132-of-000163.safetensors with huggingface_hub
Verified signature1effbe5 -
Upload model-00131-of-000163.safetensors with huggingface_hub
Verified signaturef456e6e -
Upload model-00130-of-000163.safetensors with huggingface_hub
Verified signaturef3f0b9e -
Upload model-00129-of-000163.safetensors with huggingface_hub
Verified signaturec3edf69 -
Upload model-00128-of-000163.safetensors with huggingface_hub
Verified signature54b8911 -
Upload model-00127-of-000163.safetensors with huggingface_hub
Verified signature3fd3f1c -
Upload model-00126-of-000163.safetensors with huggingface_hub
Verified signature96c69b0 -
Upload model-00125-of-000163.safetensors with huggingface_hub
Verified signature88a5782 -
Upload model-00124-of-000163.safetensors with huggingface_hub
Verified signaturebe47ffd