Instructions to use SDA-Sum/deT0-large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SDA-Sum/deT0-large with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SDA-Sum/deT0-large")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("SDA-Sum/deT0-large") model = AutoModelForSeq2SeqLM.from_pretrained("SDA-Sum/deT0-large", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use SDA-Sum/deT0-large with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SDA-Sum/deT0-large" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SDA-Sum/deT0-large", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/SDA-Sum/deT0-large
- SGLang
How to use SDA-Sum/deT0-large 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 "SDA-Sum/deT0-large" \ --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": "SDA-Sum/deT0-large", "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 "SDA-Sum/deT0-large" \ --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": "SDA-Sum/deT0-large", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use SDA-Sum/deT0-large with Docker Model Runner:
docker model run hf.co/SDA-Sum/deT0-large
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -3,6 +3,7 @@
|
|
| 3 |
datasets:
|
| 4 |
- bigscience/xP3
|
| 5 |
- mc4
|
|
|
|
| 6 |
license: apache-2.0
|
| 7 |
language:
|
| 8 |
- en
|
|
@@ -24,10 +25,29 @@ The vocabulary has been adjusted to contain the top 2000 tokens overall as well
|
|
| 24 |
|
| 25 |
The new vocabulary has been computed using
|
| 26 |
- deu_news_2023_1M for de
|
| 27 |
-
- eng_news_2023_1M for en
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
from the [Leipzig language corpora collection](https://wortschatz.uni-leipzig.de/en/download/).
|
| 29 |
|
| 30 |
-
According to the mentioned article the perfarmance degradation can be expected to be small (but no evaluation was done.
|
| 31 |
|
| 32 |

|
| 33 |
|
|
|
|
| 3 |
datasets:
|
| 4 |
- bigscience/xP3
|
| 5 |
- mc4
|
| 6 |
+
- Leipzig_corpora_collection
|
| 7 |
license: apache-2.0
|
| 8 |
language:
|
| 9 |
- en
|
|
|
|
| 25 |
|
| 26 |
The new vocabulary has been computed using
|
| 27 |
- deu_news_2023_1M for de
|
| 28 |
+
- eng_news_2023_1M for en
|
| 29 |
+
|
| 30 |
+
from the [Leipzig language corpora collection](https://wortschatz.uni-leipzig.de/en/download/).
|
| 31 |
+
|
| 32 |
+
According to the mentioned article the perfarmance degradation can be expected to be small (but no evaluation was done).
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
# Language Adaption of mT0
|
| 37 |
+
This model is an adaption of the mT0 variant (see below) for languages en, de based on the methodology in [Load What You Need: Smaller Versions of Multilingual BERT](https://arxiv.org/ftp/arxiv/papers/2010/2010.05609.pdf).
|
| 38 |
+
|
| 39 |
+
The vocabulary has been adjusted to contain the top 2000 tokens overall as well as
|
| 40 |
+
- the top 15000 tokens from en
|
| 41 |
+
- the top 30000 tokens from de
|
| 42 |
+
and 100 special tokens.
|
| 43 |
+
|
| 44 |
+
The new vocabulary has been computed using
|
| 45 |
+
- deu_news_2023_1M for de
|
| 46 |
+
- eng_news_2023_1M for en
|
| 47 |
+
|
| 48 |
from the [Leipzig language corpora collection](https://wortschatz.uni-leipzig.de/en/download/).
|
| 49 |
|
| 50 |
+
According to the mentioned article the perfarmance degradation can be expected to be small (but no evaluation was done).
|
| 51 |
|
| 52 |

|
| 53 |
|