Skip to content

Commit

Permalink
Merge pull request #40 from ruivieira/RHOAIENG-1861
Browse files Browse the repository at this point in the history
RHOAIENG-1861: Add detoxification example notebook
  • Loading branch information
ruivieira authored Feb 2, 2024
2 parents ab9ed19 + db56214 commit 4ebfb6a
Show file tree
Hide file tree
Showing 4 changed files with 513 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: pip install jupyter

- name: Install TrustyAI
run: pip install trustyai trustyai[extras]
run: pip install trustyai trustyai[extras] trustyai[detoxify]


- name: Install nbconvert
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ Several example Jupyter notebooks are available.
- Full examples
- [Energy load forecasting](examples/EnergyLoadForecasting.ipynb)[^1]
- [Engine fault detection](examples/EngineFaultDetection.ipynb)[^1]
- Detoxification
- [LLM detoxification using TMaRCo](examples/Detoxify.ipynb)[^2]


### Metrics

Expand All @@ -33,4 +36,5 @@ Several example Jupyter notebooks are available.
- [Language performance](examples/LanguageMetrics.ipynb)


[^1]: These explainers require the extra dependencies, installed with `pip install trustyai[extras]`.
[^1]: These explainers require the extra dependencies, installed with `pip install trustyai[extras]`.
[^2]: Detoxification requires the optional dependencies, installed with `pip install trustyai[detoxify]`.
505 changes: 505 additions & 0 deletions examples/Detoxify.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
trustyai==0.4.0
trustyai[extras]==0.4.0
trustyai==0.5.0
trustyai[extras]==0.5.0
jupyterlab~=3.5.3

0 comments on commit 4ebfb6a

Please sign in to comment.