Skip to content

Commit ddab3d2

Browse files
committed
Merge remote-tracking branch 'origin' into kylesayrs/transform-quip-modifier
2 parents 5392b2b + 3e18dd9 commit ddab3d2

File tree

69 files changed

+1692
-506
lines changed

Some content is hidden

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

69 files changed

+1692
-506
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 31 deletions
This file was deleted.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: 🐛 Bug report
2+
description: Raise an issue here if you find a bug.
3+
labels: bug
4+
title: "[Bug]: "
5+
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: >
10+
#### Before submitting an issue, please make sure the issue hasn't been already addressed by searching through [the existing and past issues](https://github.com/vllm-project/llm-compressor/issues?q=is%3Aissue+sort%3Acreated-desc+).
11+
12+
#### ⚠️ For any issues related vLLM which are not related to quantization or compressed models, please create an issue in [vllm-project/vllm](https://github.com/vllm-project/vllm/issues).
13+
- type: textarea
14+
attributes:
15+
label: ⚙️ Your current environment
16+
description: |
17+
Please run the following and paste the output below.
18+
```bash
19+
wget https://raw.githubusercontent.com/vllm-project/llm-compressor/main/tools/collect_env.py
20+
# For security purposes, please feel free to check the contents of collect_env.py before running it.
21+
python collect_env.py
22+
```
23+
value: |
24+
<details>
25+
<summary>The output of <code>python collect_env.py</code></summary>
26+
27+
```text
28+
Your output of `python collect_env.py` here
29+
```
30+
31+
</details>
32+
validations:
33+
required: true
34+
- type: textarea
35+
attributes:
36+
label: 🐛 Describe the bug
37+
description: |
38+
Please provide a clear and concise description of what the bug is.
39+
validations:
40+
required: true
41+
- type: textarea
42+
attributes:
43+
label: 🛠️ Steps to reproduce
44+
description: |
45+
If applicable, please describe any steps required to reproduce. If you can share an applicable huggingface model stub, please do so here.
46+
validations:
47+
required: false

.github/workflows/test-check-transformers.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,9 @@ jobs:
122122
.coverage
123123
coverage-html
124124
coverage.json
125+
include-hidden-files: true
125126
retention-days: 5
127+
- name: "Report coverage"
128+
if: (success() || failure()) && inputs.code_coverage
129+
run: |
130+
coverage report --data-file=".coverage" --skip-empty --format="markdown" > "$GITHUB_STEP_SUMMARY"

.github/workflows/test-check.yaml

Lines changed: 70 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818

1919
base-tests:
2020
runs-on: ubuntu-22.04
21+
env:
22+
COVERAGE_FILE: ".coverage.base"
2123
steps:
2224
- uses: actions/setup-python@v5
2325
with:
@@ -53,13 +55,20 @@ jobs:
5355
with:
5456
name: base-tests-coverage-results
5557
path: |
56-
.coverage
58+
.coverage*
5759
coverage-html
5860
coverage.json
61+
include-hidden-files: true
5962
retention-days: 5
63+
- name: "Report coverage"
64+
if: (success() || failure()) && inputs.code_coverage
65+
run: |
66+
coverage report --data-file="$COVERAGE_FILE" --skip-empty --format="markdown" > "$GITHUB_STEP_SUMMARY"
6067
6168
pytorch-tests:
6269
runs-on: ubuntu-22.04
70+
env:
71+
COVERAGE_FILE: ".coverage.pytorch"
6372
steps:
6473
- uses: actions/setup-python@v5
6574
with:
@@ -96,14 +105,20 @@ jobs:
96105
with:
97106
name: pytorch-tests-coverage-results
98107
path: |
99-
.coverage
108+
.coverage*
100109
coverage-html
101110
coverage.json
111+
include-hidden-files: true
102112
retention-days: 5
103-
113+
- name: "Report coverage"
114+
if: (success() || failure()) && inputs.code_coverage
115+
run: |
116+
coverage report --data-file="$COVERAGE_FILE" --skip-empty --format="markdown" > "$GITHUB_STEP_SUMMARY"
104117
105118
compat-pytorch-1_9-pytorch-tests:
106119
runs-on: ubuntu-22.04
120+
env:
121+
COVERAGE_FILE: ".coverage.compat-pytorch-1.9"
107122
steps:
108123
- uses: actions/setup-python@v5
109124
with:
@@ -139,8 +154,60 @@ jobs:
139154
uses: actions/upload-artifact@v4
140155
with:
141156
name: compat-pytorch-tests-coverage-results
157+
path: |
158+
.coverage*
159+
coverage-html
160+
coverage.json
161+
include-hidden-files: true
162+
retention-days: 5
163+
- name: "Report coverage"
164+
if: (success() || failure()) && inputs.code_coverage
165+
run: |
166+
coverage report --data-file="$COVERAGE_FILE" --skip-empty --format="markdown" > "$GITHUB_STEP_SUMMARY"
167+
168+
combine-coverage:
169+
runs-on: ubuntu-22.04
170+
needs: [base-tests, pytorch-tests, compat-pytorch-1_9-pytorch-tests]
171+
if: (success() || failure()) && inputs.code_coverage
172+
steps:
173+
- name: "Checkout llm-compressor"
174+
uses: actions/checkout@v4
175+
176+
- name: "Download coverage artifacts"
177+
uses: actions/download-artifact@v4
178+
with:
179+
merge-multiple: true
180+
181+
- uses: actions/setup-python@v5
182+
with:
183+
python-version: '3.12'
184+
185+
- name: "Install dependencies"
186+
run: |
187+
pip3 install -U pip setuptools
188+
pip3 install coverage setuptools-scm
189+
make build # need to build to generate the version.py file
190+
191+
- name: "Combine and report coverage"
192+
run: |
193+
cat << EOF > .coveragerc
194+
[paths]
195+
source =
196+
src/
197+
*/site-packages/
198+
EOF
199+
coverage combine
200+
coverage report --skip-empty --format="markdown" >> "$GITHUB_STEP_SUMMARY"
201+
coverage html --directory coverage-html
202+
coverage json -o coverage.json
203+
204+
- name: "Upload coverage report"
205+
uses: actions/upload-artifact@v4
206+
with:
207+
name: combined-coverage-results
142208
path: |
143209
.coverage
144210
coverage-html
145211
coverage.json
212+
include-hidden-files: true
146213
retention-days: 5

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ wheels/
5353
.installed.cfg
5454
*.egg
5555
MANIFEST
56+
.cache/*
5657

5758
# PyInstaller
5859
# Usually these files are written by a python script from a template

.readthedocs.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Read the Docs configuration file
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
# Required
5+
version: 2
6+
7+
# Set the OS, Python version, and other tools you might need
8+
build:
9+
os: ubuntu-24.04
10+
tools:
11+
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

CODE_OF_CONDUCT.md

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# LLM Compressor Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8+
9+
## Our Standards
10+
11+
Examples of behavior that contributes to a positive environment for our community include:
12+
13+
- Demonstrating empathy and kindness toward other people
14+
- Being respectful of differing opinions, viewpoints, and experiences
15+
- Giving and gracefully accepting constructive feedback
16+
- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17+
- Focusing on what is best not just for us as individuals, but for the overall community
18+
19+
Examples of unacceptable behavior include:
20+
21+
- The use of sexualized language or imagery, and sexual attention or advances of any kind
22+
- Trolling, insulting or derogatory comments, and personal or political attacks
23+
- Public or private harassment
24+
- Publishing others’ private information, such as a physical or email address, without their explicit permission
25+
- Other conduct which could reasonably be considered inappropriate in a professional setting
26+
27+
## Enforcement Responsibilities
28+
29+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
32+
33+
## Scope
34+
35+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
36+
37+
## Enforcement
38+
39+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement through GitHub, Slack, or Email. All complaints will be reviewed and investigated promptly and fairly.
40+
41+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
42+
43+
## Enforcement Guidelines
44+
45+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
46+
47+
### 1. Correction
48+
49+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
50+
51+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
52+
53+
### 2. Warning
54+
55+
**Community Impact**: A violation through a single incident or series of actions.
56+
57+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
58+
59+
### 3. Temporary Ban
60+
61+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
62+
63+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
64+
65+
### 4. Permanent Ban
66+
67+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
68+
69+
**Consequence**: A permanent ban from any sort of public interaction within the community.
70+
71+
## Attribution
72+
73+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at https://www.contributor-covenant.org/version/2/1/code_of_conduct.html.
74+
75+
Community Impact Guidelines were inspired by [Mozilla’s code of conduct enforcement ladder](https://github.com/mozilla/diversity).
76+
77+
For answers to common questions about this code of conduct, see the FAQ at https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
21 KB
Loading

docs/assets/llmcompressor-icon.png

5.61 KB
Loading
676 KB
Loading

0 commit comments

Comments
 (0)