detector_benchmark.generation.attack_loader¶

Classes¶

Module Contents¶

class detector_benchmark.generation.attack_loader.AttackLoader(cfg: omegaconf.DictConfig, attack_type: str, gen_model: detector_benchmark.generation.generator.LLMGenerator, model_config: detector_benchmark.utils.configs.ModelConfig, max_sample_len: int, watermarking_scheme: detector_benchmark.watermark.auto_watermark.AutoWatermark | None = None, paraphraser_model: detector_benchmark.generation.generator.LLMGenerator | None = None, paraphraser_config: detector_benchmark.utils.configs.ModelConfig | None = None)¶
cfg¶
attack_type¶
gen_model¶
model_config¶
max_sample_len¶
watermarking_scheme¶
paraphraser_model¶
paraphraser_config¶
load() detector_benchmark.generation.article_generator.ArticleGenerator¶

Load the attack.

Returns:¶

ArticleGenerator: The attack.