Skip to content

Commit b3dafcd

Browse files
authored
Merge branch 'neuralmagic:main' into main
2 parents 4ae2bae + 0409b28 commit b3dafcd

Some content is hidden

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

67 files changed

+6723
-431
lines changed

.github/workflows/development.yml

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,22 @@ jobs:
2121
- name: Run quality checks
2222
run: tox -e quality
2323

24+
ui-quality-checks:
25+
permissions:
26+
contents: "read"
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Check out code
30+
uses: actions/checkout@v3
31+
32+
- name: Install dependencies
33+
run: npm ci
34+
working-directory: src/ui
35+
36+
- name: Run quality and typing checks
37+
run: npm run lint
38+
working-directory: src/ui
39+
2440
type-checks:
2541
runs-on: ubuntu-latest
2642
strategy:
@@ -37,11 +53,27 @@ jobs:
3753
- name: Run quality checks
3854
run: tox -e types
3955

56+
ui-type-checks:
57+
permissions:
58+
contents: "read"
59+
runs-on: ubuntu-latest
60+
steps:
61+
- name: Check out code
62+
uses: actions/checkout@v3
63+
64+
- name: Install dependencies
65+
run: npm ci
66+
working-directory: src/ui
67+
68+
- name: Run quality and typing checks
69+
run: npm run type-check
70+
working-directory: src/ui
71+
4072
precommit-checks:
4173
runs-on: ubuntu-latest
4274
strategy:
4375
matrix:
44-
python: ["3.9", "3.13"]
76+
python: ["3.9"]
4577
steps:
4678
- uses: actions/checkout@v4
4779
- name: Set up Python
@@ -53,6 +85,22 @@ jobs:
5385
- name: Run pre-commit checks
5486
run: pre-commit run --all-files
5587

88+
ui-precommit-check:
89+
permissions:
90+
contents: "read"
91+
runs-on: ubuntu-latest
92+
steps:
93+
- name: Check out code
94+
uses: actions/checkout@v3
95+
96+
- name: Install dependencies
97+
working-directory: src/ui
98+
run: npm ci
99+
100+
- name: Run pre-commit checks
101+
run: npx husky run pre-commit
102+
working-directory: src/ui
103+
56104
unit-tests:
57105
runs-on: ubuntu-latest
58106
strategy:

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
runs-on: ubuntu-latest
4343
strategy:
4444
matrix:
45-
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
45+
python: ["3.9"]
4646
steps:
4747
- uses: actions/checkout@v4
4848
- name: Set up Python

.github/workflows/nightly.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,25 @@ name: Nightly
33
on:
44
schedule:
55
- cron: '0 0 * * *' # Runs at midnight every night
6+
workflow_dispatch: # Enables manual triggering of the workflow
67

78
jobs:
9+
link-checks:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
python: ["3.9"]
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: ${{ matrix.python }}
20+
- name: Install dependencies
21+
run: pip install tox
22+
- name: Run link checks
23+
run: tox -e links
24+
825
unit-tests:
926
runs-on: ubuntu-latest
1027
strategy:
@@ -19,7 +36,7 @@ jobs:
1936
- name: Install dependencies
2037
run: pip install tox
2138
- name: Run unit tests
22-
run: tox -e test-unit -- --cov=guidellm --cov-report=term-missing --cov-fail-under=75
39+
run: tox -e test-unit
2340

2441
integration-tests:
2542
runs-on: ubuntu-latest

.github/workflows/release-candidate.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,22 @@ on:
66
- 'release/*'
77

88
jobs:
9+
link-checks:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
python: ["3.9"]
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: ${{ matrix.python }}
20+
- name: Install dependencies
21+
run: pip install tox
22+
- name: Run link checks
23+
run: tox -e links
24+
925
unit-tests:
1026
runs-on: ubuntu-latest
1127
strategy:

.github/workflows/release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,22 @@ jobs:
5151
password: ${{ secrets.PYPI_PUBLIC_AUTH }}
5252
whl: $(find dist -name '*.tar.gz')
5353

54+
link-checks:
55+
runs-on: ubuntu-latest
56+
strategy:
57+
matrix:
58+
python: ["3.9"]
59+
steps:
60+
- uses: actions/checkout@v4
61+
- name: Set up Python
62+
uses: actions/setup-python@v5
63+
with:
64+
python-version: ${{ matrix.python }}
65+
- name: Install dependencies
66+
run: pip install tox
67+
- name: Run link checks
68+
run: tox -e links
69+
5470
unit-tests:
5571
runs-on: ubuntu-latest
5672
strategy:

.gitignore

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,3 +178,47 @@ cython_debug/
178178
# Project specific files
179179
*.json
180180
*.yaml
181+
182+
183+
# UI Section - Next.js/React application under src/ui/
184+
# dependencies
185+
/node_modules/
186+
/.pnp
187+
.pnp.*
188+
.yarn/*
189+
!.yarn/patches
190+
!.yarn/plugins
191+
!.yarn/releases
192+
!.yarn/versions
193+
194+
# testing
195+
coverage/
196+
197+
# next.js
198+
/src/ui/.next/
199+
/src/ui/out/
200+
201+
# production
202+
build/
203+
204+
# misc
205+
*.pem
206+
207+
# debug
208+
npm-debug.log*
209+
yarn-debug.log*
210+
yarn-error.log*
211+
.pnpm-debug.log*
212+
213+
# vercel
214+
src/ui/.vercel
215+
216+
# typescript
217+
src/ui/*.tsbuildinfo
218+
src/ui/next-env.d.ts
219+
220+
# Root-level UI config files that should be tracked
221+
!package.json
222+
!package-lock.json
223+
!.eslintrc.json
224+
!tsconfig.json

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ repos:
55
- id: trailing-whitespace
66
- id: end-of-file-fixer
77
- repo: https://github.com/astral-sh/ruff-pre-commit
8-
rev: v0.5.2
8+
rev: v0.11.7
99
hooks:
1010
- id: ruff
1111
- repo: https://github.com/pre-commit/mirrors-mypy
12-
rev: v1.10.1
12+
rev: v1.15.0
1313
hooks:
1414
- id: mypy
1515
args: [--check-untyped-defs]

CODE_OF_CONDUCT.md

Lines changed: 51 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,77 @@
1-
# Community Code of Conduct
1+
# GuideLLM Code of Conduct
22

33
## Our Pledge
44

5-
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to make participation in our project and 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.
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.
68

79
## Our Standards
810

9-
Examples of behavior that contributes to creating a positive environment include:
11+
Examples of behavior that contributes to a positive environment for our community include:
1012

11-
- Using welcoming and inclusive language
12-
- Being respectful of differing viewpoints and experiences
13-
- Gracefully accepting constructive criticism
14-
- Focusing on what is best for the community
15-
- Showing empathy towards other community members
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
1618

17-
Examples of unacceptable behavior by participants include:
19+
Examples of unacceptable behavior include:
1820

19-
- The use of sexualized language or imagery and unwelcome sexual attention or advances
20-
- Trolling, insulting/derogatory comments, and personal or political attacks
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
2123
- Public or private harassment
22-
- Publishing others' private information, such as a physical or electronic address, without explicit permission
24+
- Publishing others private information, such as a physical or email address, without their explicit permission
2325
- Other conduct which could reasonably be considered inappropriate in a professional setting
2426

25-
## Our Responsibilities
27+
## Enforcement Responsibilities
2628

27-
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
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.
2830

29-
Project maintainers 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, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
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.
3032

3133
## Scope
3234

33-
This Code of Conduct applies within all project spaces, and it also applies when an individual is representing the project or its community in public spaces. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
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.
3436

3537
## Enforcement
3638

37-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team using the [Neural Magic Contact Us Form](https://neuralmagic.com/contact). All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
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.
3868

39-
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
69+
**Consequence**: A permanent ban from any sort of public interaction within the community.
4070

4171
## Attribution
4272

43-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
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.
4474

45-
For answers to common questions about this code of conduct, see https://www.contributor-covenant.org/faq
75+
Community Impact Guidelines were inspired by [Mozilla’s code of conduct enforcement ladder](https://github.com/mozilla/diversity).
4676

47-
[homepage]: https://www.contributor-covenant.org
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.

0 commit comments

Comments
 (0)