Skip to content

Commit

Permalink
make sure testing model doesn't go onto MPS (insufficient memory on g…
Browse files Browse the repository at this point in the history
…h's shared setup)
  • Loading branch information
leondz committed Aug 1, 2024
1 parent 4d616fb commit 5a2f100
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/probes/test_probes_fileformats.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ def test_hf_files_load():

def test_hf_files_hf_repo():
p = garak._plugins.load_plugin("probes.fileformats.HF_Files")
garak._config.plugins.generators["huggingface"] = {"Model": {"name": "gpt2"}}
garak._config.plugins.generators["huggingface"] = {
"Model": {"name": "gpt2", "hf_args": {"device": "cpu"}},
}
g = garak._plugins.load_plugin(
"generators.huggingface.Model", config_root=garak._config
)
Expand Down

0 comments on commit 5a2f100

Please sign in to comment.