Instructions to use trustyai/tci_plus with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use trustyai/tci_plus with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("trustyai/tci_plus") model = AutoModelForSeq2SeqLM.from_pretrained("trustyai/tci_plus") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -43,7 +43,7 @@ Use the code below to start using the model for text detoxification.
|
|
| 43 |
```python
|
| 44 |
from trustyai.detoxify import TMaRCo
|
| 45 |
tmarco = TMaRCo(expert_weights=[-1, 3])
|
| 46 |
-
tmarco.load_models(["
|
| 47 |
tmarco.rephrase(["white men can't jump"])
|
| 48 |
```
|
| 49 |
|
|
|
|
| 43 |
```python
|
| 44 |
from trustyai.detoxify import TMaRCo
|
| 45 |
tmarco = TMaRCo(expert_weights=[-1, 3])
|
| 46 |
+
tmarco.load_models(["trustyai/tci_minus", "trustyai/tci_plus"])
|
| 47 |
tmarco.rephrase(["white men can't jump"])
|
| 48 |
```
|
| 49 |
|