Installation
To install automia:
python -m pip install -e ".[all]"
A sandbox environment (env.sh) that will be used to execute the generated MIAs should be installed with common computation packages (such as numpy, torch, scipy,..) and packages required to run the MIAs. We recommend to save the model's outputs (i.e., logits) using safetensor and read load to save computational cost each trial.
Running AutoMIA for a MIA setting:
-
Prepare a codebase template including
env.sh,template.py, andconfig.yaml. Example in (examples/bbllm/arxiv_pythia) -
Run vllm servers.
automiarequires two APIs (LLM and embedding) and then run automia
python -m automia.main --experiment-dir examples/bbllm/arxiv_pythia --timeout 300 --model-name qwen --base-url http://localhost:9800/v1 --provider vllm --embedding-model-name qwen-embedding --embedding-base-url http://localhost:9700/v1 --budget 100 --output-dir results/bbllm/arxiv
eval.pyandvis.pyare available to eval the top 10 MIAs and visualize the MIAs
python vis.py --output-dir results/bbllm/arxiv
A html file index.html will be written into results/bbllm/arxiv
python eval.py --template examples/bbllm/arxiv_pythia/template.py --output-dir results/bbllm/arxiv
A cvs file will be written into results/bbllm/arxiv
Please make sure the stored data is available to reload for our example template.py (line 135 in examples/bbllm/arxiv_pythia/template.py) by running generate.py scripts.
The template.py must have an argument of `output-dir`, create this output directory, and write the results into `mia-results.json` with 4 keys: "auc_score", "tpr_1_score", "tpr_5_score", "combined_score".
A detailed documents and step-by-step to reproceduce our paper's experiments will be available soon! Feel free to reach out to me at <email> or create issues.
Metadata
Release files for automia 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| automia-0.0.1.tar.gz | 22.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| automia-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 50.5 kB
Release files / automia-0.0.1.tar.gz
| Download URL | automia-0.0.1.tar.gz |
|---|---|
| Size | 22.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
594bf20fe111ff69f6313b7d5196c811c8c329e4c2825043d4f965459b39b57f
|
|
BLAKE2b-256 checksum How to use checksums |
64ab19aeda1e76ca93f4d7b15ff6c93210a242dd324e3d9ed205e503195a1216
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / automia-0.0.1-py3-none-any.whl
| Download URL | automia-0.0.1-py3-none-any.whl |
|---|---|
| Size | 28.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
46da806cdb523683c191113eb2cea11fff135bd315f9502d7591aa1449748dc2
|
|
BLAKE2b-256 checksum How to use checksums |
a2eb389cb7ce6bae5537cb78e61b0d97f2ed12a2b563dffc376fd251b7062b21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for automia 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.