Skip to content
This repository was archived by the owner on Oct 11, 2024. It is now read-only.

Commit e80b82a

Browse files
committed
Merge branch 'main' into tms/add_mamba
2 parents 49e1f3c + 36ea790 commit e80b82a

36 files changed

+433
-292
lines changed

.buildkite/test-pipeline.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,10 +347,11 @@ steps:
347347
- pytest -v -s models/encoder_decoder/language
348348
- pytest -v -s models/encoder_decoder/vision_language
349349

350+
# This test is used only in PR development phase to test individual models and should never run on main
350351
- label: Custom Models Test
351-
#mirror_hardwares: [amd]
352352
optional: true
353353
commands:
354+
- echo 'Testing custom models...'
354355
# PR authors can temporarily add commands below to test individual models
355356
# e.g. pytest -v -s models/encoder_decoder/vision_language/test_mllama.py
356357
# *To avoid merge conflicts, remember to REMOVE (not just comment out) them before merging the PR*

.github/workflows/actionlint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
runs-on: ubuntu-latest
2929
steps:
3030
- name: "Checkout"
31-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
31+
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
3232
with:
3333
fetch-depth: 0
3434

.github/workflows/add_label_automerge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Add label
11-
uses: actions/github-script@v6
11+
uses: actions/github-script@v7
1212
with:
1313
script: |
1414
github.rest.issues.addLabels({

.github/workflows/clang-format.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
matrix:
1818
python-version: ["3.11"]
1919
steps:
20-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
2121
- name: Set up Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v3
22+
uses: actions/setup-python@v5
2323
with:
2424
python-version: ${{ matrix.python-version }}
2525
- name: Install dependencies

.github/workflows/mypy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
matrix:
1818
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1919
steps:
20-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
2121
- name: Set up Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v3
22+
uses: actions/setup-python@v5
2323
with:
2424
python-version: ${{ matrix.python-version }}
2525
- name: Install dependencies

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
upload_url: ${{ steps.create_release.outputs.upload_url }}
2222
steps:
2323
- name: Checkout
24-
uses: actions/checkout@v3
24+
uses: actions/checkout@v4
2525

2626
- name: Extract branch info
2727
shell: bash
@@ -30,7 +30,7 @@ jobs:
3030
3131
- name: Create Release
3232
id: create_release
33-
uses: "actions/github-script@v6"
33+
uses: "actions/github-script@v7"
3434
env:
3535
RELEASE_TAG: ${{ env.release_tag }}
3636
with:
@@ -54,7 +54,7 @@ jobs:
5454

5555
steps:
5656
- name: Checkout
57-
uses: actions/checkout@v3
57+
uses: actions/checkout@v4
5858

5959
- name: Setup ccache
6060
uses: hendrikmuhs/[email protected]
@@ -68,7 +68,7 @@ jobs:
6868
bash -x .github/workflows/scripts/env.sh
6969
7070
- name: Set up Python
71-
uses: actions/setup-python@v4
71+
uses: actions/setup-python@v5
7272
with:
7373
python-version: ${{ matrix.python-version }}
7474

.github/workflows/reminder_comment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Remind to run full CI on PR
11-
uses: actions/github-script@v6
11+
uses: actions/github-script@v7
1212
with:
1313
script: |
1414
github.rest.issues.createComment({

.github/workflows/ruff.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
matrix:
1818
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1919
steps:
20-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
2121
- name: Set up Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v3
22+
uses: actions/setup-python@v5
2323
with:
2424
python-version: ${{ matrix.python-version }}
2525
- name: Install dependencies

.github/workflows/yapf.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
matrix:
1717
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2020
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v3
21+
uses: actions/setup-python@v5
2222
with:
2323
python-version: ${{ matrix.python-version }}
2424
- name: Install dependencies

benchmarks/benchmark_serving.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ def sample_sonnet_requests(
176176
# Sample the rest of lines per request.
177177
sampled_requests: List[Tuple[str, int, int]] = []
178178
for _ in range(num_requests):
179-
sampled_lines = "".join(
180-
prefix_lines +
181-
random.sample(poem_lines, num_input_lines - num_prefix_lines))
179+
num_lines_needed = num_input_lines - num_prefix_lines
180+
sampled_lines = "".join(prefix_lines +
181+
random.choices(poem_lines, k=num_lines_needed))
182182

183183
prompt = f"{base_prompt}{sampled_lines}"
184184
message = [
@@ -536,7 +536,7 @@ def process_one_metric(
536536
# E.g., "Time to First Token"
537537
metric_header: str,
538538
):
539-
# This function print and add statistics of the specified
539+
# This function prints and adds statistics of the specified
540540
# metric.
541541
if metric_attribute_name not in selected_percentile_metrics:
542542
return

0 commit comments

Comments
 (0)