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
-
438bc32b35e194986f83530204f1cab2494b895f54b384fd7df29495f293881c
Verified signature4100c0f
-
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 -
Upload BartForConditionalGeneration
Verified signaturee34920d
-
Upload BartForConditionalGeneration
Verified signature1840ecc -
Upload BartForConditionalGeneration
Verified signaturea75ab26
-
Upload BartForConditionalGeneration
Verified signature209d665
-
Upload folder using huggingface_hub (#1)
- a27912d38bce2bb620f2782d74b3554afaf7693d3dd7d336b1f0f97f3260f54b (a76938fd9a627780daeee5c5f3fff33abee1efe2) - 92b553318d7a72bbdb1100eb642daddf29c0a17c77a917ad00a3e92c4f165ef6 (2524abf671708b7d16b23c97d566992d2eabe888) - 4a8a21a5d835775e5c44ced15541ff888387e5b3dcfcc40cf5bf22355dab1756 (22940c676889d06263a8d44774520fe56604eec3) - f7ba70c739cb1d03854bde35f02a06de02492286329ed169bdb9d40ca94f44f0 (fb26c6884f138dd09b37e947ed0ac6a9fdb1a91a) - d0f3d56723b4b5cb04c2874ebfc9a71268bee953d49f49c894ced0e9557e091c (baa439eb4c9dafecb58c8851e0235704dcd5e11d)6536711
-
Create README.md
5e95357 -
Upload folder using huggingface_hub
114ee4e -
Upload BartForConditionalGeneration
21a01d9 -
Upload BartForConditionalGeneration
60f784f -
Upload BartForConditionalGeneration
2a4c71d -
Upload BartForConditionalGeneration
2971419 -
Upload BartForConditionalGeneration
8c02444 -
Upload BartForConditionalGeneration
eb857fd -
Upload BartForConditionalGeneration
b69d7f2
-
Upload BartForConditionalGeneration
16997c7 -
Upload BartForConditionalGeneration
e4c5681 -
Upload BartForConditionalGeneration
53ed20d -
Upload BartForConditionalGeneration
da43f6d -
Upload BartForConditionalGeneration
24fe489 -
Upload BartForConditionalGeneration
dea5cbf