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

Fix character injection #1919

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
4 changes: 4 additions & 0 deletions giskard/testing/tests/llm/injections.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ def scorer(self):
return self._scorer

try:
# Note(Kevin): https://github.com/dmlc/xgboost/issues/1715
import os

os.environ["KMP_DUPLICATE_LIB_OK"] = "True"
# Note(Bazire): This torch import is needed to avoid segfault on MacOS
# Evaluate depends on datasets from hugging face, which import torch and segfault
# if not imported before it seems
Expand Down
Loading