Downloads · 30 days
58
2% of all-time downloads
philschmid/t5-11b-sharded
t5-11b-sharded is a text generation model from philschmid. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This is fork of t5-11b implementing a custom handler.py as an example for how to use t5-11b with inference-endpoints on a single NVIDIA T4.
Downloads · 30 days
58
2% of all-time downloads
All-time downloads
3.5K
Public
Repo size
45.2 GB
Likes
6
Public
Click a slice to open those files.
.bin22.6 GB · 100%
From the Hugging Face model README
This is fork of t5-11b implementing a custom
handler.pyas an example for how to uset5-11bwith inference-endpoints on a single NVIDIA T4.
Hugging Face Inference endpoints can be used with an HTTP client in any language. We will use Python and the requests library to send our requests. (make your you have it installed pip install requests)

import json
import requests as r
ENDPOINT_URL=""# url of your endpoint
HF_TOKEN=""
# payload samples
regular_payload = { "inputs": "translate English to German: The weather is nice today." }
parameter_payload = {
"inputs": "translate English to German: Hello my name is Philipp and I am a Technical Leader at Hugging Face",
"parameters" : {
"max_length": 40,
}
}
# HTTP headers for authorization
headers= {
"Authorization": f"Bearer {HF_TOKEN}",
"Content-Type": "application/json"
}
# send request
response = r.post(ENDPOINT_URL, headers=headers, json=paramter_payload)
generated_text = response.json()
print(generated_text)