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")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Gunulhona/S2S_LLM") model = AutoModelForSeq2SeqLM.from_pretrained("Gunulhona/S2S_LLM", device_map="auto") - 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
Commit History
-
Upload folder using huggingface_hub (#7)
Verified signature- a27c7a1694eb4a6407159a97c8e3eab83709137bc150d3765052377ba7a77ceb (e636c38472a218336d6d05264eddd264da931db3)981e307
-
Upload folder using huggingface_hub
Verified signature8337666
-
Upload folder using huggingface_hub (#6)
Verified signature- 8c227cd30233f355efcec0538dfd8ecaca29e75038f0aecf64a2f86cc600b00c (3842ac55f8a49380928c944b6406791d01bb5ead)8fdafb4
-
Upload folder using huggingface_hub
Verified signatureeedf75b -
Upload folder using huggingface_hub (#5)
Verified signature- 6e2204c89c5d51293bd8e49bdf42d2248217037aecbabd52f826a02a9c3c3ab6 (aba4dd72cfead2cbf933721067750c7392084efe)0d9b627
-
Upload folder using huggingface_hub
Verified signature75a3cac -
Upload folder using huggingface_hub (#4)
Verified signature- 0386d316dd273f9e7259e0cdb2b699b1c0b3df209171db8b68596fb527d20597 (ec8b875b2f1a122892f1eb187a3fad4f99a54dd2)9945631
-
Upload folder using huggingface_hub
Verified signature20ed20e
-
Upload folder using huggingface_hub (#1)
- a27912d38bce2bb620f2782d74b3554afaf7693d3dd7d336b1f0f97f3260f54b (a76938fd9a627780daeee5c5f3fff33abee1efe2) - 92b553318d7a72bbdb1100eb642daddf29c0a17c77a917ad00a3e92c4f165ef6 (2524abf671708b7d16b23c97d566992d2eabe888) - 4a8a21a5d835775e5c44ced15541ff888387e5b3dcfcc40cf5bf22355dab1756 (22940c676889d06263a8d44774520fe56604eec3) - f7ba70c739cb1d03854bde35f02a06de02492286329ed169bdb9d40ca94f44f0 (fb26c6884f138dd09b37e947ed0ac6a9fdb1a91a) - d0f3d56723b4b5cb04c2874ebfc9a71268bee953d49f49c894ced0e9557e091c (baa439eb4c9dafecb58c8851e0235704dcd5e11d)6536711
-
Upload folder using huggingface_hub
114ee4e