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 signaturec540c17
-
Upload folder using huggingface_hub
Verified signaturedd13cfd
-
Upload folder using huggingface_hub
Verified signature259a5ed
-
Upload folder using huggingface_hub
Verified signaturee73e861
-
Upload folder using huggingface_hub
Verified signaturea0f931b
-
Upload folder using huggingface_hub
Verified signatureeedf75b -
Upload folder using huggingface_hub (#5)
Verified signature- 6e2204c89c5d51293bd8e49bdf42d2248217037aecbabd52f826a02a9c3c3ab6 (aba4dd72cfead2cbf933721067750c7392084efe)0d9b627
-
Upload folder using huggingface_hub
Verified signature6106fd0
-
Upload folder using huggingface_hub
Verified signature8810e1c
-
Upload folder using huggingface_hub
Verified signaturea25c47b
-
Upload folder using huggingface_hub
Verified signature75a3cac -
Upload folder using huggingface_hub (#4)
Verified signature- 0386d316dd273f9e7259e0cdb2b699b1c0b3df209171db8b68596fb527d20597 (ec8b875b2f1a122892f1eb187a3fad4f99a54dd2)9945631
-
Upload folder using huggingface_hub
Verified signature00bf795
-
Upload folder using huggingface_hub
Verified signatureea0c45b
-
Upload folder using huggingface_hub
Verified signature8d2be80
-
Upload folder using huggingface_hub
Verified signaturedcb3deb
-
Upload folder using huggingface_hub
Verified signature7486d4a
-
Upload folder using huggingface_hub
Verified signature18d81f3
-
Upload folder using huggingface_hub
Verified signatureafbe592 -
Upload folder using huggingface_hub
Verified signature6aa37c9
-
Upload folder using huggingface_hub
Verified signature8802897
-
Upload folder using huggingface_hub
Verified signaturee566fae
-
Upload folder using huggingface_hub
Verified signaturebf0729c
-
Upload folder using huggingface_hub
Verified signaturef7b5c41
-
Upload folder using huggingface_hub
Verified signature807db4e -
Update README.md
Verified signature3714eae
-
Upload folder using huggingface_hub
Verified signature6219b7b
-
Upload folder using huggingface_hub
Verified signature0477506
-
Upload folder using huggingface_hub
Verified signaturefa63026
-
Upload folder using huggingface_hub
Verified signature20ed20e
-
Upload BartForConditionalGeneration
Verified signature64c1d54
-
Upload BartForConditionalGeneration
Verified signature1489a49
-
Upload BartForConditionalGeneration
Verified signature042352c -
Upload BartForConditionalGeneration
Verified signature7a708a5
-
Upload BartForConditionalGeneration
Verified signature4a47bf1
-
Upload BartForConditionalGeneration
Verified signature510998a -
Upload BartForConditionalGeneration
Verified signaturee89c510
-
Upload BartForConditionalGeneration
Verified signature734912d -
Upload BartForConditionalGeneration
Verified signaturef337315
-
Upload BartForConditionalGeneration
Verified signature6098385
-
Upload BartForConditionalGeneration
Verified signature45a5049 -
Upload BartForConditionalGeneration
Verified signature704e5b4
-
Upload BartForConditionalGeneration
Verified signature809b7f4 -
Upload BartForConditionalGeneration
Verified signaturefbbefdb
-
Upload BartForConditionalGeneration
Verified signaturecf3cb92 -
Upload BartForConditionalGeneration
Verified signature29cf1ee
-
Upload BartForConditionalGeneration
Verified signature9bd8cef