Instructions to use LifuWang/DistillT5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LifuWang/DistillT5 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, T5EncoderWithProjection tokenizer = AutoTokenizer.from_pretrained("LifuWang/DistillT5") model = T5EncoderWithProjection.from_pretrained("LifuWang/DistillT5", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -24,8 +24,8 @@ It is 50 times smaller and retains most capability of T5-XXL.
|
|
| 24 |
```
|
| 25 |
git clone https://github.com/LifuWang-66/DistillT5.git
|
| 26 |
cd DistillT5
|
| 27 |
-
conda create -n
|
| 28 |
-
conda activate
|
| 29 |
pip install -r requirements.txt
|
| 30 |
pip install ./diffusers
|
| 31 |
```
|
|
|
|
| 24 |
```
|
| 25 |
git clone https://github.com/LifuWang-66/DistillT5.git
|
| 26 |
cd DistillT5
|
| 27 |
+
conda create -n distillt5 python=3.12
|
| 28 |
+
conda activate distillt5
|
| 29 |
pip install -r requirements.txt
|
| 30 |
pip install ./diffusers
|
| 31 |
```
|