Text Generation
Transformers
Safetensors
PEFT
Trained with AutoTrain
text-generation-inference
conversational
Instructions to use rayonlabs/test123 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rayonlabs/test123 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="rayonlabs/test123") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("rayonlabs/test123", device_map="auto") - PEFT
How to use rayonlabs/test123 with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use rayonlabs/test123 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "rayonlabs/test123" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rayonlabs/test123", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/rayonlabs/test123
- SGLang
How to use rayonlabs/test123 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 "rayonlabs/test123" \ --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": "rayonlabs/test123", "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 "rayonlabs/test123" \ --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": "rayonlabs/test123", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use rayonlabs/test123 with Docker Model Runner:
docker model run hf.co/rayonlabs/test123
Download training_args.bin from rayonlabs/test123: direct link, hf CLI and curl.
- Browser
- Download file 5.62 kB
-
https://huggingface.co/rayonlabs/test123/resolve/main/training_args.bin
- Command line
-
hf download hf://rayonlabs/test123/training_args.bin
-
curl -L -o training_args.bin https://huggingface.co/rayonlabs/test123/resolve/main/training_args.bin
5.62 kB
- Xet hash:
- bcdb7c1ac2ef7b632f84d27d2d34e7eb2c1e5225e046f3b0348275be5f25312a
- Size of remote file:
- 5.62 kB
- SHA256:
- 9b49519e12fcc6eeca17b1ac5d070d288e88f40c7afb5813739b39a144a4414d
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.