Instructions to use Gunulhona/S2S_LLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Gunulhona/S2S_LLM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Gunulhona/S2S_LLM")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Gunulhona/S2S_LLM") model = AutoModelForSeq2SeqLM.from_pretrained("Gunulhona/S2S_LLM") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Gunulhona/S2S_LLM with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Gunulhona/S2S_LLM" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Gunulhona/S2S_LLM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Gunulhona/S2S_LLM
- SGLang
How to use Gunulhona/S2S_LLM 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 "Gunulhona/S2S_LLM" \ --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": "Gunulhona/S2S_LLM", "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 "Gunulhona/S2S_LLM" \ --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": "Gunulhona/S2S_LLM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Gunulhona/S2S_LLM with Docker Model Runner:
docker model run hf.co/Gunulhona/S2S_LLM
[WIP] Upload folder using huggingface_hub (multi-commit fc2d9e8b34ba042bb2407fa49f1c1c46abae49aceea24a72c4bc14c9766c1d7c)
#3
by Gunulhona - opened
Upload folder using huggingface_hub
Multi commit ID: fc2d9e8b34ba042bb2407fa49f1c1c46abae49aceea24a72c4bc14c9766c1d7c
Scheduled commits:
- Upload 1 file(s) totalling 14.1G (0386d316dd273f9e7259e0cdb2b699b1c0b3df209171db8b68596fb527d20597)
- Upload 1 file(s) totalling 84.5G (1308e4593a239230e02f39ad6db09c86465330bae059ec80caaf6d06e0417544)
- Upload 2 file(s) totalling 24.3K (c1595486b0767922f8cd62f488fd507f85ee8cfa82bb7140872fdd1c1d30bbec)
This is a PR opened using the huggingface_hub library in the context of a multi-commit. PR can be commented as a usual PR. However, please be aware that manually updating the PR description, changing the PR status, or pushing new commits, is not recommended as it might corrupt the commit process. Learn more about multi-commits in this guide.