Skip to content

Commit 201ead6

Browse files
committed
reorg
1 parent 203b4c4 commit 201ead6

11 files changed

Lines changed: 21 additions & 17 deletions

File tree

docs/source/conf.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@
4848
# -- Options for HTML output -------------------------------------------------
4949
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
5050

51-
# html_permalinks_icon = "<span>#</span>"
52-
# html_theme = "sphinxawesome_theme"
53-
html_theme = "furo"
51+
html_theme = "sphinx_book_theme"
5452
html_static_path = ["_static"]
5553

5654
napoleon_google_docstring = False

docs/source/index.rst

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,17 @@ Check out `DeepCompressor <deepcompressor_repo>`_ for the quantization library.
1919

2020
.. toctree::
2121
:maxdepth: 1
22-
:caption: Advanced Features
23-
24-
advanced_features/lora.rst
25-
advanced_features/kontext.rst
26-
advanced_features/controlnet.rst
27-
advanced_features/qencoder.rst
28-
advanced_features/offload.rst
29-
advanced_features/attention.rst
30-
advanced_features/fbcache.rst
31-
advanced_features/pulid.rst
22+
:caption: Usage Tutorials
23+
24+
usage/basic_usage.rst
25+
usage/lora.rst
26+
usage/kontext.rst
27+
usage/controlnet.rst
28+
usage/qencoder.rst
29+
usage/offload.rst
30+
usage/attention.rst
31+
usage/fbcache.rst
32+
usage/pulid.rst
3233

3334
.. toctree::
3435
:maxdepth: 1
File renamed without changes.
Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Basic Usage Tutorial
2-
====================
1+
Basic Usage
2+
===========
33

44
The following is a minimal script for running 4-bit `FLUX.1 <flux_repo_>`_ using Nunchaku.
55
Nunchaku provides the same API as `Diffusers <diffusers_repo_>`_, so you can use it in a familiar way.
@@ -20,11 +20,16 @@ Nunchaku provides the same API as `Diffusers <diffusers_repo_>`_, so you can use
2020
:caption: Running FLUX.1-dev on Turing GPUs (`examples/flux.1-dev-turing.py <https://github.com/mit-han-lab/nunchaku/blob/main/examples/flux.1-dev-turing.py>`__)
2121
:linenos:
2222

23-
The key difference when using Nunchaku is replacing the standard ``FluxTransformer2dModel`` with ``NunchakuFluxTransformer2dModel``. The ``NunchakuFluxTransformer2dModel.from_pretrained`` method loads quantized models and accepts either Hugging Face remote file paths or local file paths.
23+
The key difference when using Nunchaku is replacing the standard ``FluxTransformer2dModel``
24+
with :class:`~nunchaku.models.transformers.NunchakuFluxTransformer2dModel`.
25+
The :meth:`~nunchaku.models.transformers.NunchakuFluxTransformer2dModel.from_pretrained`
26+
method loads quantized models and accepts either Hugging Face remote file paths or local file paths.
2427

2528
.. note::
2629

27-
The ``get_precision()`` function automatically detects whether your GPU supports INT4 or FP4 quantization. Use FP4 models for Blackwell GPUs (RTX 50-series) and INT4 models for other architectures.
30+
The :func:`~nunchaku.utils.get_precision`
31+
function automatically detects whether your GPU supports INT4 or FP4 quantization.
32+
Use FP4 models for Blackwell GPUs (RTX 50-series) and INT4 models for other architectures.
2833

2934
.. note::
3035

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)