---
title: NATTEN-windows
canonical_url: "https://www.modelscope.cn/models/AI-ModelScope/NATTEN-windows"
md_url: "https://www.modelscope.cn/models/AI-ModelScope/NATTEN-windows.md"
repository: AI-ModelScope/NATTEN-windows
last_updated: 2025-07-01
license: mit
library_name:
  - pytorch
frameworks:
  - pytorch
downloads: 216
stars: 0
---

# NATTEN-windows

> NATTEN-windows - AI-ModelScope 在 ModelScope 开源的模型。Windows wheels of NATTEN

AI-ModelScope/NATTEN-windows 是 ModelScope 魔搭社区上的机器学习模型，采用 mit 许可。

- **Repository**: AI-ModelScope/NATTEN-windows
- **License**: mit
- **Downloads**: 216
- **Stars**: 0
- **Last updated**: 2025-07-01

Source: https://www.modelscope.cn/models/AI-ModelScope/NATTEN-windows

---

Windows wheels of [NATTEN](https://github.com/SHI-Labs/NATTEN)

Original Doc (only install, no wheel): [Buid with MSVC](https://github.com/SHI-Labs/NATTEN/blob/main/docs/install.md#Build-with-MSVC) 

Build wheel steps
- First clone NATTEN, and make sure to fetch all submodules
```
git clone --recursive https://github.com/SHI-Labs/NATTEN
cd NATTEN
```
- Switch tag branch, such as `v0.17.3` (you can get latest tag by `git describe --tags` or list all available tags by `git tag -l`)

```
git checkout -b v0.17.3 v0.17.3
```

- Download WindowsWhlBuilder.bat into `NATTEN`

- To build with MSVC, please open the "Native Tools Command Prompt for Visual Studio". The exact name may depend on your version of Windows, Visual Studio, and cpu architecture (in my case it was "x64 Native Tools Command Prompt for VS 2022".)

  My Visual Studio Installer version

  ![image/png](https://cdn-uploads.huggingface.co/production/uploads/662db5cd34f94a2b82f317b0/nCCBd7_MYr1PrYZOrEnQw.png)
  
- Switch python env and make sure the corresponding torch cuda version is installed

- Start task
```
# Build with 1/4th of the number of processor threads on your system
WindowsWhlBuilder.bat build 

# Build with 8 parallel workers
WindowsWhlBuilder.bat build WORKERS=8

# Build targeting SM80 (I use this. You can also add WORKERS paramter)
WindowsWhlBuilder.bat build CUDA_ARCH=8.0
```
- Wheel file will be placed in the `dist` directory
- Test
  - Install natten
    ```
    cd dist
    # replace your real wheel name
    pip install natten_wheel_name
    ```
  - Return NATTEN work path and run test case
    ```
    cd ..
    WindowsWhlBuilder.bat test
    ```
