brave / brave/security-action

New ruleset: torch load models with safetensor

Open
#386 1 comment 0 reactions 1 assignee Assigned to @thypon View on GitHub
enhancement
Dominant language
JavaScript
Stars
22
Forks
8
Avg merge
2d 6h
Merged PRs (30d)
40

Description

Code similar to:

```
$VAR_TOKENIZER = $TOKENIZER.from_pretrained("...")
```

Should be marked, the advised fix is the same code plus the `use_safetensors=True` helper

```
$VAR_TOKENIZER = $TOKENIZER.from_pretrained("...", use_safetensors=True)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.