-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ONNX hack cleanup
- Loading branch information
Showing
17 changed files
with
33 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
"outputs": [], | ||
"source": [ | ||
"!git lfs install\n", | ||
"!git clone [email protected]:protectai/deberta-v3-base-prompt-injection\n", | ||
"!git clone [email protected]:protectai/deberta-v3-base-prompt-injection-v2\n", | ||
"!git clone [email protected]:MoritzLaurer/deberta-v3-base-zeroshot-v1.1-all-33\n", | ||
"!git clone [email protected]:tomaarsen/span-marker-bert-base-orgs\n", | ||
"!git clone [email protected]:unitary/unbiased-toxic-roberta\n", | ||
|
@@ -159,8 +159,8 @@ | |
"from llm_guard import scan_prompt\n", | ||
"from llm_guard.input_scanners import PromptInjection, Anonymize, BanTopics, BanCompetitors, Toxicity, Code, Gibberish, Language\n", | ||
"from llm_guard.vault import Vault\n", | ||
"from llm_guard.input_scanners.prompt_injection import DEFAULT_MODEL as PROMPT_INJECTION_MODEL\n", | ||
"from llm_guard.input_scanners.ban_topics import MODEL_BASE as BAN_TOPICS_MODEL\n", | ||
"from llm_guard.input_scanners.prompt_injection import V2_MODEL as PROMPT_INJECTION_MODEL\n", | ||
"from llm_guard.input_scanners.ban_topics import MODEL_DEBERTA_BASE_V2 as BAN_TOPICS_MODEL\n", | ||
"from llm_guard.input_scanners.ban_competitors import MODEL_BASE as BAN_COMPETITORS_MODEL\n", | ||
"from llm_guard.input_scanners.toxicity import DEFAULT_MODEL as TOXICITY_MODEL\n", | ||
"from llm_guard.input_scanners.anonymize_helpers import DEBERTA_AI4PRIVACY_v2_CONF\n", | ||
|
@@ -169,7 +169,7 @@ | |
"from llm_guard.input_scanners.language import DEFAULT_MODEL as LANGUAGE_MODEL\n", | ||
"\n", | ||
"PROMPT_INJECTION_MODEL.kwargs[\"local_files_only\"] = True\n", | ||
"PROMPT_INJECTION_MODEL.path = \"./deberta-v3-base-prompt-injection\"\n", | ||
"PROMPT_INJECTION_MODEL.path = \"./deberta-v3-base-prompt-injection-v2\"\n", | ||
"\n", | ||
"DEBERTA_AI4PRIVACY_v2_CONF[\"DEFAULT_MODEL\"].path = \"./deberta-v3-base_finetuned_ai4privacy_v2\"\n", | ||
"DEBERTA_AI4PRIVACY_v2_CONF[\"DEFAULT_MODEL\"].kwargs[\"local_files_only\"] = True\n", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,6 @@ | |
"padding": "max_length", | ||
"top_k": None, | ||
"function_to_apply": "sigmoid", | ||
"truncation": True, | ||
}, | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters