Skip to content

Commit 233d180

Browse files
authored
Merge branch 'main' into feat/deferred-activation-qparams
2 parents 59b88bf + 370c04c commit 233d180

27 files changed

+1115
-542
lines changed

.claude/skills/style.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Code Quality Check
2+
3+
After completing a batch of code changes:
4+
5+
1. Run `make style` to auto-format the code
6+
2. Run `make quality` to validate code quality
7+
3. Fix any issues reported by `make quality`
8+
9+
When writing code, keep lines under 88 characters and avoid unnecessary indentation.

.claude/skills/test.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Running Tests
2+
3+
Nearly all tests in this project require a GPU.
4+
5+
When running tests:
6+
7+
1. First check if `canhazgpu` is available: `which canhazgpu`
8+
2. If available, MUST run tests using `canhazgpu` with appropriate GPU allocation
9+
3. Use the format: `canhazgpu --gpus 1 -- python3 -m pytest tests/...`
10+
11+
Example:
12+
```bash
13+
# Check if canhazgpu is available
14+
which canhazgpu
15+
16+
# Run tests with canhazgpu (required if available)
17+
canhazgpu --gpus 1 -- python3 -m pytest tests/test_example.py
18+
```
19+
20+
Note: Adjust the `--gpus` count based on test requirements (typically 1 GPU is sufficient for most tests).

.gitignore

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,13 @@ venv.bak/
128128
/site
129129
docs/.cache/*
130130

131+
# zensical docs build (generated by pre-build scripts)
132+
docs/api/llmcompressor/
133+
docs/examples/
134+
docs/experimental/
135+
docs/developer/code-of-conduct.md
136+
docs/developer/contributing.md
137+
131138
# mypy
132139
.mypy_cache/
133140
### Example user template template
@@ -811,5 +818,3 @@ env_log.json
811818
# uv artifacts
812819
uv.lock
813820
.venv/
814-
815-
.claude/

.readthedocs.yaml

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
1-
# Read the Docs configuration file
2-
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3-
4-
# Required
51
version: 2
62

7-
# Set the OS, Python version, and other tools you might need
83
build:
94
os: ubuntu-24.04
105
tools:
116
python: "3.12"
12-
13-
# Build documentation with Mkdocs
14-
mkdocs:
15-
configuration: mkdocs.yml
16-
17-
python:
18-
install:
19-
- method: pip
20-
path: .
21-
extra_requirements:
22-
- dev
7+
jobs:
8+
install:
9+
- pip install -e ".[dev]"
10+
build:
11+
html:
12+
- python docs/scripts/zensical_gen_files.py
13+
- zensical build
14+
post_build:
15+
- mkdir -p $READTHEDOCS_OUTPUT/html/
16+
- cp --recursive site/* $READTHEDOCS_OUTPUT/html/

docs/.nav.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
nav:
22
- Home: index.md
33
- Why use LLM Compressor?: steps/why-llmcompressor.md
4-
- Compresssing your model, step-by-step:
4+
- Compressing your model, step-by-step:
55
- Choosing your model: steps/choosing-model.md
66
- Choosing the right compression scheme: steps/choosing-scheme.md
77
- Choosing the right compression algorithm: steps/choosing-algo.md

docs/DEVELOPMENT.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Getting started with LLM Compressor docs
2+
3+
```bash
4+
cd docs
5+
```
6+
7+
- Install the dependencies:
8+
9+
```bash
10+
make install
11+
```
12+
13+
- Clean the previous build (optional but recommended):
14+
15+
```bash
16+
make clean
17+
```
18+
19+
- Generate docs content (files, API references, and navigation):
20+
21+
```bash
22+
make gen
23+
```
24+
25+
- Serve the docs locally (runs `gen` automatically):
26+
27+
```bash
28+
make serve
29+
```
30+
31+
This will start a local server. You can now open your browser and view the documentation.
32+
33+
- Build the static site (runs `gen` automatically):
34+
35+
```bash
36+
make build
37+
```
38+
39+
- List all available targets:
40+
41+
```bash
42+
make help
43+
```

docs/Makefile

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,32 @@
1-
# Minimal mkdocs makefile
1+
# Minimal zensical makefile
22

3-
PYTHON := python3
4-
MKDOCS_CMD := mkdocs
5-
MKDOCS_CONF := ../mkdocs.yml
3+
ZENSICAL_CMD := zensical
4+
ZENSICAL_CONF := ../zensical.toml
65

7-
.PHONY: help install serve build clean
6+
.PHONY: help install gen serve build clean
87

98
help:
109
@echo "Available targets:"
1110
@echo " install Install dependencies globally"
11+
@echo " gen Generate docs content (files + API + nav)"
1212
@echo " serve Serve docs locally"
1313
@echo " build Build static site"
1414
@echo " clean Remove build artifacts"
1515

1616
install:
1717
pip install -e "../[dev]"
1818

19-
serve:
20-
$(MKDOCS_CMD) serve --livereload -f $(MKDOCS_CONF)
19+
gen:
20+
cd .. && python docs/scripts/zensical_gen_files.py
2121

22-
build:
23-
$(MKDOCS_CMD) build -f $(MKDOCS_CONF)
22+
serve: gen
23+
cd .. && $(ZENSICAL_CMD) serve
24+
25+
build: gen
26+
cd .. && $(ZENSICAL_CMD) build
2427

2528
clean:
26-
rm -rf site/ .cache/
29+
rm -rf site/ .cache/ api/llmcompressor/
30+
rm -rf examples/ experimental/
31+
rm -f developer/code-of-conduct.md developer/contributing.md
32+
cd .. && python3 docs/scripts/zensical_gen_files.py --clean

docs/README.md

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

docs/scripts/gen_files.py

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

0 commit comments

Comments
 (0)