Skip to content

PoC still working? #1

Description

Hi Yannic,

Does this PoC still work? If so, please could you post your requirements.txt or a docker file?

I've tried to run

from transformers import AutoModel model = AutoModel.from_pretrained("ykilcher/totally-harmless-model")

But are met with many errors, including:

UnpicklingError: This error is typically raised when there's an attempt to load a corrupted file or a file that has been tampered with in a way that could potentially execute arbitrary code. It is especially concerning that the error message mentions the eval class, which could indicate a security risk.

UnicodeDecodeError: This error suggests that the file being loaded does not conform to the expected format, possibly because it's not a valid model file or is corrupted.

OSError: This error further suggests problems with the integrity of the checkpoint file. It's also worth noting that there's a mention of potentially trying to load a TensorFlow checkpoint as a PyTorch model, which would be incompatible without setting from_tf=True.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions