1. 08 Sep, 2025 1 commit
    • Matthew Douglas's avatar
      4bit quantization for arbitrary `nn.Parameter` (#1720) · 27549fb0
      Matthew Douglas authored
      * Add parametrize util for targeting parameters outside of nn.Linear modules
      
      * Parametrize 4bit: replace existing prequantized weight
      
      * cleanup
      
      * Add caching for parametrization
      
      * Add tests
      
      * Fix tests
      
      * Guard for torch < 2.5
      
      * Guard for torch < 2.5
      
      * Another test gaurd for torch >= 2.5
      27549fb0
  2. 03 Sep, 2025 2 commits
  3. 02 Sep, 2025 1 commit
  4. 25 Aug, 2025 1 commit
  5. 11 Aug, 2025 4 commits
  6. 06 Aug, 2025 2 commits
  7. 04 Aug, 2025 1 commit
  8. 02 Aug, 2025 2 commits
  9. 31 Jul, 2025 1 commit
  10. 21 Jul, 2025 4 commits
  11. 14 Jul, 2025 11 commits
  12. 11 Jul, 2025 2 commits
  13. 08 Jul, 2025 2 commits
  14. 03 Jul, 2025 1 commit
  15. 02 Jul, 2025 1 commit
  16. 01 Jul, 2025 4 commits
    • Michał Górny's avatar
      Automatically call CMake as part of PEP 517 build (#1512) · ed9c8fca
      Michał Górny authored
      * Automatically call CMake as part of PEP 517 build
      
      Call CMake and build the CPU extension when invoking the build
      via a PEP 517 backend, to ensure that at least some extension is built
      when users are building from source.  This improves consistency with
      other Python packages, and reduces the risk of accidents.
      
      We are using `scikit-build-core` setuptools plugin to take care of CMake
      dependencies and call into CMake.  However, we need to modify
      the `build_py` command to ensure that CMake is called prior to
      the setuptools command, as otherwise the newly built shared library
      won't be picked up by `build_py`.
      
      Since setuptools is still responsible for collecting the Python package,
      it also collects all other shared libraries that were built earlier,
      for example via manual CMake calls as done in the CI pipeline.
      Furthermore, if the user does not have `scikit-build-core` installed
      and calls `setup.py` directly, we output a warning but continue working
      as before.
      
      The logic can be further extended in the future, for example to detect
      the best COMPUTE_BACKEND default.
      
      Fixes #1511
      
      * Include C sources and build files in source distribution
      
      * Fix formatting
      ed9c8fca
    • Matthew Douglas's avatar
      CI: Test with PyTorch 2.8.0 RC (#1693) · ed398d28
      Matthew Douglas authored
      * Add torch 2.8 rc / 2.9 nightly to tests
      
      * Update tests.yml
      
      * Update tests.yml
      ed398d28
    • Matthew Douglas's avatar
      Update README.md · e28d4d91
      Matthew Douglas authored
      e28d4d91
    • jiqing-feng's avatar
      bdcee0ff