{
  "id": "G005",
  "slug": "pytorch-weights-only-numpy-dtype-error-with-numpy-below-1-25",
  "status": "search-necessary",
  "product": "PyTorch",
  "family": "Serialization security default",
  "canonical_url": "https://gitdocs.org/fix/pytorch-weights-only-numpy-dtype-error-with-numpy-below-1-25",
  "query_alias_url": "https://gitdocs.org/q/pytorch-weights-only-numpy-dtype-error-with-numpy-below-1-25",
  "markdown_url": "https://gitdocs.org/fix/pytorch-weights-only-numpy-dtype-error-with-numpy-below-1-25.md",
  "json_url": "https://gitdocs.org/api/fixes/pytorch-weights-only-numpy-dtype-error-with-numpy-below-1-25.json",
  "canonical_query": "PyTorch weights_only NumPy dtype below 1.25 error safe_globals",
  "observed_codex_queries": [
    "site:pytorch.org/docs torch.load weights_only numpy dtype NumPy <1.25 safe_globals",
    "PyTorch weights_only NumPy dtype below 1.25 error safe_globals",
    "PyTorch serialization weights_only safe_globals numpy dtype",
    "https://pytorch.org/docs/stable/notes/serialization.html",
    "https://docs.pytorch.org/docs/stable/notes/serialization.html",
    "https://docs.pytorch.org/docs/2.12/notes/serialization.html",
    "'numpy' in https://docs.pytorch.org/docs/2.12/notes/serialization.html"
  ],
  "organic_dependency_search_count": 7,
  "affected_versions": "",
  "exact_errors": [],
  "diagnosis": "The local workspace gives the symptom and stale integration shape, but the correct repair depends on current official product behavior or recent release notes.",
  "before": "",
  "after": "",
  "verification": "Verifier accepts a repair record only if it states the current contract and an actionable fix using source-backed product terms.",
  "unsafe_fixes": [
    "Changing local code without checking the current external contract.",
    "Retrying the same install, build, or API call with no version/source change.",
    "Applying a broad unsafe bypass when a narrow compatibility fix is available."
  ],
  "last_verified_at": "2026-06-25",
  "neutral_validation": {
    "organic_search_observed": true,
    "organic_strict_pass": true,
    "no_web_counterfactual_run": true,
    "no_web_strict_pass": false,
    "search_necessity_under_fixture": true,
    "no_web_oracle_note": "If no_web_strict_pass is true, this page is search-observed but not search-necessary under the current visible fixture."
  },
  "source_trail": [
    {
      "url": "https://docs.pytorch.org/docs/stable/notes/serialization.html#torch-load-with-weights-only-true",
      "label": "PyTorch serialization notes"
    },
    {
      "url": "https://pytorch.org/docs/stable/notes/serialization.html",
      "label": "Official reference opened by Codex"
    },
    {
      "url": "https://docs.pytorch.org/docs/stable/notes/serialization.html",
      "label": "Official reference opened by Codex"
    },
    {
      "url": "https://docs.pytorch.org/docs/2.12/notes/serialization.html",
      "label": "Official reference opened by Codex"
    }
  ],
  "source_github_links": []
}
