Skip to content

Commit 16fbb80

Browse files
authored
Merge branch 'main' into add-run-metadata-to-ui
2 parents 73aa52a + ad9513f commit 16fbb80

Some content is hidden

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

42 files changed

+4740
-332
lines changed

.github/workflows/development.yml

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -180,59 +180,6 @@ jobs:
180180
- name: Run integration tests
181181
run: npm run test:integration
182182

183-
build:
184-
# Only build if the PR branch is local
185-
if: github.event.pull_request.head.repo.full_name == github.repository
186-
runs-on: ubuntu-latest
187-
strategy:
188-
matrix:
189-
python: ["3.9"]
190-
steps:
191-
- name: Checkout code
192-
uses: actions/checkout@v4
193-
with:
194-
fetch-depth: 0
195-
- name: Set up Python
196-
uses: actions/setup-python@v5
197-
with:
198-
python-version: ${{ matrix.python }}
199-
- name: Install dependencies
200-
run: pip install tox
201-
- name: Build the package
202-
run: |
203-
export GUIDELLM_BUILD_TYPE=dev
204-
export GUIDELLM_BUILD_ITERATION=${{ github.event.pull_request.number }}
205-
tox -e build
206-
- name: Upload build artifacts
207-
id: artifact-upload
208-
uses: actions/upload-artifact@v4
209-
with:
210-
name: build-artifacts
211-
path: dist/*
212-
compression-level: 6
213-
if-no-files-found: error
214-
retention-days: 30
215-
- name: Generate GitHub App token
216-
id: app-token
217-
uses: actions/create-github-app-token@v1
218-
with:
219-
app-id: ${{ secrets.GH_NM_REDHAT_AUTOMATION_APP_ID }}
220-
private-key: ${{ secrets.GH_NM_REDHAT_AUTOMATION_APP_PRIVATE_KEY }}
221-
- name: Comment Install instructions
222-
uses: actions/github-script@v7
223-
with:
224-
github-token: ${{ steps.app-token.outputs.token }}
225-
script: |
226-
github.rest.issues.createComment({
227-
issue_number: context.issue.number,
228-
owner: context.repo.owner,
229-
repo: context.repo.repo,
230-
body: `📦 **Build Artifacts Available**
231-
The build artifacts (\`.whl\` and \`.tar.gz\`) have been successfully generated and are available for download: ${{ steps.artifact-upload.outputs.artifact-url }}.
232-
They will be retained for **up to 30 days**.
233-
`
234-
})
235-
236183
ui-pr-preview:
237184
needs: [ui-quality-checks, ui-precommit-checks, ui-unit-tests, ui-integration-tests]
238185
permissions:

.pre-commit-config.yaml

Lines changed: 7 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.6.0
3+
rev: v6.0.0
44
hooks:
55
- id: trailing-whitespace
66
exclude: ^tests/?.*/assets/.+
77
- id: end-of-file-fixer
88
exclude: ^tests/?.*/assets/.+
9+
- repo: https://github.com/pdm-project/pdm
10+
rev: 2.25.6
11+
hooks:
12+
- id: pdm-lock-check
13+
name: check lock file matches pyproject
14+
entry: sh -c "pdm lock -v --check || pdm lock --update-reuse"
915
- repo: https://github.com/astral-sh/ruff-pre-commit
1016
rev: v0.11.7
1117
hooks:
@@ -14,35 +20,3 @@ repos:
1420
args: [ --fix, --show-fixes ]
1521
- id: ruff-format
1622
name: run formatter
17-
- repo: https://github.com/pre-commit/mirrors-mypy
18-
rev: v1.15.0
19-
hooks:
20-
- id: mypy
21-
args: [--check-untyped-defs]
22-
additional_dependencies:
23-
[
24-
# main dependencies
25-
click,
26-
datasets,
27-
ftfy,
28-
loguru,
29-
numpy,
30-
pillow,
31-
pydantic,
32-
pydantic_settings,
33-
pyyaml,
34-
respx,
35-
rich,
36-
setuptools,
37-
setuptools-git-versioning,
38-
transformers,
39-
40-
# dev dependencies
41-
pytest,
42-
pydantic_settings,
43-
44-
# types
45-
types-PyYAML,
46-
types-requests,
47-
types-toml,
48-
]

docs/datasets.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ guidellm benchmark \
7676
- `output_tokens_stdev`: Standard deviation for output tokens. If not supplied and min/max are not specified, no deviation is applied. If not supplied and min/max are specified, a uniform distribution is used.
7777
- `output_tokens_min`: Minimum number of tokens in outputs. If unset and `output_tokens_stdev` is set, the minimum is 1.
7878
- `output_tokens_max`: Maximum number of tokens in outputs. If unset and `output_tokens_stdev` is set, the maximum is 5 times the standard deviation.
79+
- `prefix_tokens`: Number of tokens to share as a prefix across all prompts. Is additive to the prompt tokens distribution so each request is `prefix_tokens + prompt_tokens_sample()`. If unset, defaults to 0.
7980
- `samples`: Number of samples to generate (default: 1000). More samples will increase the time taken to generate the dataset before benchmarking, but will also decrease the likelihood of caching requests.
8081
- `source`: Source text for generation (default: `data:prideandprejudice.txt.gz`). This can be any text file, URL containing a text file, or a compressed text file. The text is used to sample from at a word and punctuation granularity and then combined into a single string of the desired lengths.
8182

pdm.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[lock]
2+
format = "pylock"

0 commit comments

Comments
 (0)