Model Weights Don't Run Code: Real Risk Lies in the Code Around Them

AIFlow_ML · x · 2026-10-23

The author clarifies that malware/data concerns about DeepSeek trace partly to a 2025 audit of its iOS app, and that safetensors weights do not execute code on load. What actually needs auditing is the code around the model—trustremotecode, pickle files, and the serving stack—regardless of who trained it.

In the reply, they propose an architectural mitigation: put every model behind an OpenAI-compatible endpoint and keep a manifest (repo, hash, base model, license, trainer), so swapping a model is a config change rather than a rewrite.

Original post →

More from Models

Models channel →