Skip to content

Add generalized Attacker API for arbitrary model support - #3

Open
JoeyTan21 wants to merge 1 commit into
SeekingDream:mainfrom
JoeyTan21:generalized-attacker-api
Open

Add generalized Attacker API for arbitrary model support#3
JoeyTan21 wants to merge 1 commit into
SeekingDream:mainfrom
JoeyTan21:generalized-attacker-api

Conversation

@JoeyTan21

Copy link
Copy Markdown

Replace task_id-based dispatch with Attacker(model, dataset).run(): adapters split a model into (FeatureModel, TunedModel) halves selected by model type, with embed_shape auto-measured via a dummy forward pass.
Covers all four CNN families (ConvNet/VGG/ResNet/ResNeXt). The attack engine, compiler abstraction, and main.py's task_id 0-5 path are unchanged.
Adds mac_tvm_stub for GPU-less environments, smoke tests, an example, and README docs.

Replace task_id-based dispatch with Attacker(model, dataset).run():
adapters split a model into (FeatureModel, TunedModel) halves selected
by model type, with embed_shape auto-measured via a dummy forward pass.
Covers all four CNN families (ConvNet/VGG/ResNet/ResNeXt). The attack
engine, compiler abstraction, and main.py's task_id 0-5 path are
unchanged. Adds mac_tvm_stub for GPU-less environments, smoke tests,
an example, and README docs.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.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.

1 participant