Download Latest Version OpenMed v1.5.5 source code.tar.gz (17.3 MB)
Email in envelope

Get an email when there's a new version of OpenMed

Home / v1.5.2
Name Modified Size InfoDownloads / Week
Parent folder
OpenMed 1.5.2 source code.tar.gz 2026-05-27 15.9 MB
OpenMed 1.5.2 source code.zip 2026-05-27 16.1 MB
README.md 2026-05-27 2.6 kB
Totals: 3 Items   32.1 MB 0

OpenMed 1.5.2 is a security and MLX conversion hardening release.

This release fixes the privacy-filter remote-code trust boundary, tightens model-name routing for the OpenAI/OpenMed Privacy Filter family, and brings the public HuggingFace-to-MLX converter in line with the already-published OpenMed MLX Privacy Filter artifacts.

Highlights

  • Hardened Privacy Filter loading so arbitrary Hugging Face repo names containing privacy-filter no longer route through the trusted remote-code path.
  • Changed PrivacyFilterTorchPipeline so trust_remote_code defaults to False.
  • Added an explicit allowlist for first-party Privacy Filter repositories that legitimately require Transformers custom-code loading.
  • Added OPENMED_TRUSTED_REMOTE_CODE_MODELS for operators who need to trust controlled/private fine-tunes.
  • Fixed raw HuggingFace-to-MLX conversion for the OpenAI Privacy Filter family, including Nemotron and multilingual variants.
  • Bumped package, README, docs, and website surfaces to 1.5.2.

Security

The Privacy Filter dispatcher previously used broad substring matching for model identifiers. A model name such as attacker/foo-privacy-filter-bar could be treated as part of the privacy-filter family and reach a path where custom repository code may be loaded.

1.5.2 separates routing from trust:

  • only first-party Privacy Filter identifiers route through the privacy-filter dispatcher;
  • trust_remote_code=True is only enabled for allowlisted first-party repos or operator-controlled local/env-configured models;
  • direct PrivacyFilterTorchPipeline(..., trust_remote_code=True) calls now fail fast for untrusted model IDs.

Trusted first-party remote-code models:

  • openai/privacy-filter
  • OpenMed/privacy-filter-multilingual
  • OpenMed/privacy-filter-nemotron

Custom/private fine-tunes can be allowlisted with:

:::bash
export OPENMED_TRUSTED_REMOTE_CODE_MODELS="my-org/my-privacy-filter-finetune"

What's Changed

New Contributors

Full Changelog: https://github.com/maziyarpanahi/openmed/compare/v1.5.1...v1.5.2

Source: README.md, updated 2026-05-27