Skip to content

Commit cd21409

Browse files
authored
Merge pull request #530 from mit-han-lab/dev
2 parents 2a785f7 + 51732b7 commit cd21409

File tree

96 files changed

+7621
-1372
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+7621
-1372
lines changed

.github/ISSUE_TEMPLATE/1-bug-report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ body:
88
attributes:
99
label: Checklist
1010
options:
11-
- label: 1. I have searched for related issues and FAQs (https://github.com/mit-han-lab/nunchaku/blob/main/docs/faq.md) but was unable to find a solution.
11+
- label: 1. I have searched for related issues and FAQs (https://nunchaku.tech/docs/nunchaku/faq/faq.html) but was unable to find a solution.
1212
- label: 2. The issue persists in the latest version.
1313
- label: 3. Please note that without environment information and a minimal reproducible example, it will be difficult for us to reproduce and address the issue, which may delay our response.
1414
- label: 4. If your report is a question rather than a bug, please submit it as a discussion at https://github.com/mit-han-lab/nunchaku/discussions/new/choose. Otherwise, this issue will be closed.

.github/pull_request_template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
## Checklist
1212

1313
- [ ] Code is formatted using Pre-Commit hooks.
14-
- [ ] Relevant unit tests are added in the [`tests`](../tests) directory following the guidance in [`tests/README.md`](../tests/README.md).
15-
- [ ] [README](../README.md) and example scripts in [`examples`](../examples) are updated if necessary.
14+
- [ ] Relevant unit tests are added in the [`tests`](../tests) directory following the guidance in [`Contribution Guide`](https://nunchaku.tech/docs/nunchaku/developer/contribution_guide.html).
15+
- [ ] [Documentation](../docs/source) and example scripts in [`examples`](../examples) are updated if necessary.
1616
- [ ] Throughput/latency benchmarks and quality evaluations are included where applicable.
1717
- [ ] **For reviewers:** If you're only helping merge the main branch and haven't contributed code to this PR, please remove yourself as a co-author when merging.
1818
- [ ] Please feel free to join our [Slack](https://join.slack.com/t/nunchaku/shared_invite/zt-3170agzoz-NgZzWaTrEj~n2KEV3Hpl5Q), [Discord](https://discord.gg/Wk6PnwX9Sm) or [WeChat](https://github.com/mit-han-lab/nunchaku/blob/main/assets/wechat.jpg) to discuss your PR.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ instance/
103103

104104
# Sphinx documentation
105105
docs/_build/
106+
docs/build/
107+
docs/doxygen/
106108

107109
# PyBuilder
108110
.pybuilder/

.pre-commit-config.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,22 @@ repos:
5353
rev: v0.17.0
5454
hooks:
5555
- id: yamlfmt
56-
- repo: https://github.com/executablebooks/mdformat
56+
- repo: https://github.com/hukkin/mdformat
5757
rev: 0.7.22
5858
hooks:
5959
- id: mdformat
6060
name: (Markdown) Format docs with mdformat
61+
additional_dependencies:
62+
- mdformat-gfm
63+
- mdformat-black
64+
- mdformat-myst
65+
- repo: https://github.com/PyCQA/doc8
66+
rev: v2.0.0
67+
hooks:
68+
- id: doc8
69+
additional_dependencies: []
70+
- repo: https://github.com/rstcheck/rstcheck
71+
rev: main # should be replaced with the current verison
72+
hooks:
73+
- id: rstcheck
74+
additional_dependencies: ['rstcheck[sphinx,toml]']

README.md

Lines changed: 15 additions & 261 deletions
Large diffs are not rendered by default.

README_ZH.md

Lines changed: 38 additions & 266 deletions
Large diffs are not rendered by default.

app/flux.1/t2i/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Nunchaku INT4 FLUX.1 Models
1+
# Nunchaku 4-Bit FLUX.1 Models
22

33
## Text-to-Image Gradio Demo
44

docs/Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line, and also
5+
# from the environment for the first two.
6+
SPHINXOPTS ?=
7+
SPHINXBUILD ?= sphinx-build
8+
SOURCEDIR = source
9+
BUILDDIR = build
10+
11+
# Put it first so that "make" without argument is like "make help".
12+
help:
13+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14+
15+
.PHONY: help Makefile
16+
17+
# Catch-all target: route all unknown targets to Sphinx using the new
18+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19+
%: Makefile
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/contribution_guide.md

Lines changed: 0 additions & 43 deletions
This file was deleted.

docs/contribution_guide_ZH.md

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)