r/coolgithubprojects • • 1h ago

GitHub - youssefismail-dev/limnex-preflight: Scan ML model files for secrets, personal data and unsafe pickles before you publish them to Hugging Face, Kaggle or GitHub.

https://github.com/youssefismail-dev/limnex-preflight

Every published model comes with a description. The architecture, the training data, the licence, the scores.

None of it tells you what is actually inside the file.

Often there is more than weights. When a training script saves a checkpoint, it saves its surroundings too: the settings it ran with, the folders it read from, and the user name sitting in those folder paths. Whoever downloads the model downloads all of that with it.

Opening a downloaded model has its own risk. Formats built on pickle don't only store values, they store instructions, and loading the file carries them out. You learn what the file does by running it.

That leaves two questions nobody asks the file itself. What does it reveal about the person who made it? And what will it do to the person who opens it?

Limnex Preflight answers both without opening anything. It reads PyTorch, pickle, joblib, safetensors, ONNX, Keras, GGUF, notebooks and archives as plain bytes, lists the personal data and secrets it finds in any of them, and shows the code a pickle-based file would run. I wrote it after a model I had published turned out to carry my own username.

pip install limnex-preflight

limnex-preflight path/to/model

0 Upvotes

0 comments sorted by