Files
nerfstudio/.github/workflows/publish.yml
T
yesMohanHere c0c329a2f1 Add support for NVIDIA Blackwell GPUs (sm_120, RTX 50-series)
- Bump gsplat to >=1.5.3 (sm_120-capable release line) and nerfacc to >=0.5.3
- Drop EOL Python 3.8/3.9: requires-python >=3.10, CI publish/doc workflows
- torch.load(..., weights_only=False) for torch>=2.6 checkpoint compatibility
- Use torch.amp custom_fwd/custom_bwd with device_type="cuda" (torch>=2.4 API)
- Replace deprecated PIL private encoder API in pil_to_numpy with np.asarray
  (fixes Pillow>=11 compatibility)
- Docs: add Torch 2.8+ / CUDA 12.8 install tab for Blackwell GPUs

Tested on RTX 5060 (sm_120) with torch 2.11.0+cu128: splatfacto and
nerfacto train end-to-end and ns-render produces correct output.
2026-07-17 15:53:36 +05:30

32 lines
952 B
YAML

# This workflows will upload a Python Package using twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
name: Upload Python Package
on:
release:
types: [created]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install build twine
- name: Strip unsupported tags in README
run: |
sed -i '/<!-- pypi-strip -->/,/<!-- \/pypi-strip -->/d' README.md
- name: Build and publish
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
python -m build
twine upload --username __token__ --password $PYPI_TOKEN dist/*