Instructions to use alexandro767/SageDetox_detox with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use alexandro767/SageDetox_detox with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="alexandro767/SageDetox_detox")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("alexandro767/SageDetox_detox") model = AutoModelForSeq2SeqLM.from_pretrained("alexandro767/SageDetox_detox", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use alexandro767/SageDetox_detox with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "alexandro767/SageDetox_detox" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "alexandro767/SageDetox_detox", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/alexandro767/SageDetox_detox
- SGLang
How to use alexandro767/SageDetox_detox 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 "alexandro767/SageDetox_detox" \ --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": "alexandro767/SageDetox_detox", "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 "alexandro767/SageDetox_detox" \ --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": "alexandro767/SageDetox_detox", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use alexandro767/SageDetox_detox with Docker Model Runner:
docker model run hf.co/alexandro767/SageDetox_detox
Update README.md
Browse files
README.md
CHANGED
|
@@ -46,7 +46,7 @@ seq2seq & contrastive losses and all three losses. This exact model employs only
|
|
| 46 |
|
| 47 |
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
|
| 48 |
|
| 49 |
-
- **Developed by:** Alexandr Voronin, Nikita Sushko
|
| 50 |
- **Model type:** mT0-large
|
| 51 |
- **Language(s) (NLP):** am, ar, de, en, es, fr, he, hi, hin, it, ja, ru, tt, uk, zh
|
| 52 |
- **License:** MIT
|
|
|
|
| 46 |
|
| 47 |
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
|
| 48 |
|
| 49 |
+
- **Developed by:** Alexandr Voronin, Nikita Sushko, Daniil Moskovsky
|
| 50 |
- **Model type:** mT0-large
|
| 51 |
- **Language(s) (NLP):** am, ar, de, en, es, fr, he, hi, hin, it, ja, ru, tt, uk, zh
|
| 52 |
- **License:** MIT
|