Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pytorch/ao
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2a12d58
Choose a base ref
...
head repository: pytorch/ao
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: fd31a98
Choose a head ref
  • 1 commit
  • 5 files changed
  • 1 contributor

Commits on Nov 21, 2025

  1. Add PerBlock to safe globals

    **Summary:** Add PerBlock to safe globals so users don't have
    to do this themselves when they load config.json with PerBlock.
    
    ```
    WeightsUnpickler error: Unsupported global: GLOBAL torchao.quantization.granularity.PerBlock was not an allowed global by default. Please use `torch.serialization.add_safe_globals([torchao.quantization.granularity.PerBlock])` or the `torch.serialization.safe_globals([torchao.quantization.granularity.PerBlock])` context manager to allowlist this global if you trust this class/function.
    ```
    
    **Test Plan:**
    ```
    python test/core/test_config.py -k test_granularity_serialization
    ```
    andrewor14 committed Nov 21, 2025
    Configuration menu
    Copy the full SHA
    fd31a98 View commit details
    Browse the repository at this point in the history
Loading