Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RHOAIENG-1861: Add detoxification example notebook #40

Merged
merged 2 commits into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading