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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complete security policy with mentions of remote code #29707

Merged
merged 3 commits into from Mar 22, 2024
Merged

Conversation

LysandreJik
Copy link
Member

No description provided.

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link

@jagwar jagwar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM

SECURITY.md Outdated Show resolved Hide resolved
SECURITY.md Outdated Show resolved Hide resolved
SECURITY.md Outdated
by the transformers library), as developed specifically to prevent code execution in your runtime.

Transformers will default to downloading models in this format if available, but will get other formats available
if `safetensors` isn't available. You can force this format by using the `use_safetensors` parameter.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would rephrase this to say something like "if you want to avoid loading pickle files, you can use the use_safetenstors parameter. In the event that no .safetensors file is present, transformers will error when loading the model"

SECURITY.md Outdated Show resolved Hide resolved
are defined within the model repositories on the Hugging Face Hub.

These models require the `trust_remote_code=True` parameter to be set when using them; please **always** verify
the content of the modeling files when using this argument. We recommend setting a revision in order to ensure you
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could add a link to the function parameter that allows to pass a fixed revision

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All methods do :)

Copy link
Member

@Michellehbn Michellehbn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

馃攼

SECURITY.md Outdated Show resolved Hide resolved
@JSF2206
Copy link

JSF2206 commented Mar 19, 2024

+1. Nice work

SECURITY.md Outdated Show resolved Hide resolved
Co-authored-by: Luc Georges <McPatate@users.noreply.github.com>
Co-authored-by: Michelle Habonneau <83347449+Michellehbn@users.noreply.github.com>
SECURITY.md Outdated Show resolved Hide resolved
Co-authored-by: Diogo Teles Sant'Anna <diogoteles@google.com>
@LysandreJik LysandreJik marked this pull request as ready for review March 22, 2024 13:13
@LysandreJik LysandreJik merged commit 7e1413d into main Mar 22, 2024
2 of 6 checks passed
@LysandreJik LysandreJik deleted the security-policy branch March 22, 2024 13:13
hovnatan pushed a commit to hovnatan/transformers that referenced this pull request Mar 27, 2024
)

* Security policy

* Apply suggestions from code review

Co-authored-by: Luc Georges <McPatate@users.noreply.github.com>
Co-authored-by: Michelle Habonneau <83347449+Michellehbn@users.noreply.github.com>

* Update SECURITY.md

Co-authored-by: Diogo Teles Sant'Anna <diogoteles@google.com>

---------

Co-authored-by: Luc Georges <McPatate@users.noreply.github.com>
Co-authored-by: Michelle Habonneau <83347449+Michellehbn@users.noreply.github.com>
Co-authored-by: Diogo Teles Sant'Anna <diogoteles@google.com>
itazap pushed a commit that referenced this pull request May 14, 2024
* Security policy

* Apply suggestions from code review

Co-authored-by: Luc Georges <McPatate@users.noreply.github.com>
Co-authored-by: Michelle Habonneau <83347449+Michellehbn@users.noreply.github.com>

* Update SECURITY.md

Co-authored-by: Diogo Teles Sant'Anna <diogoteles@google.com>

---------

Co-authored-by: Luc Georges <McPatate@users.noreply.github.com>
Co-authored-by: Michelle Habonneau <83347449+Michellehbn@users.noreply.github.com>
Co-authored-by: Diogo Teles Sant'Anna <diogoteles@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants