We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26ed766 commit 13b00ffCopy full SHA for 13b00ff
validator/main.py
@@ -104,7 +104,7 @@ def _embed(self, prompts: list[str]):
104
truncation=True,
105
return_tensors='pt',
106
max_length=512, # This may be too small to adequately capture the info.
107
- )
+ ).to(self.device)
108
with torch.no_grad():
109
model_outputs = self.embedding_model(**encoded_input)
110
embeddings = DetectJailbreak._mean_pool(
0 commit comments