Instructions to use ai-lab/ESGify with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ai-lab/ESGify with Transformers:
# Load model directly from transformers import AutoTokenizer, ESGify tokenizer = AutoTokenizer.from_pretrained("ai-lab/ESGify") model = ESGify.from_pretrained("ai-lab/ESGify", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -9,7 +9,7 @@ We introduce the model for multilabel ESG risks classification. There is 47 clas
|
|
| 9 |
## Usage
|
| 10 |
```python
|
| 11 |
|
| 12 |
-
from transformers import MPNetPreTrainedModel, MPNetModel
|
| 13 |
import torch
|
| 14 |
#Mean Pooling - Take attention mask into account for correct averaging
|
| 15 |
def mean_pooling(model_output, attention_mask):
|
|
|
|
| 9 |
## Usage
|
| 10 |
```python
|
| 11 |
|
| 12 |
+
from transformers import MPNetPreTrainedModel, MPNetModel, AutoTokenizer
|
| 13 |
import torch
|
| 14 |
#Mean Pooling - Take attention mask into account for correct averaging
|
| 15 |
def mean_pooling(model_output, attention_mask):
|