Skip to content

Commit ba4f42d

Browse files
Minor fix for example tests
Signed-off-by: Keval Morabia <28916987+kevalmorabia97@users.noreply.github.com>
1 parent ebc534d commit ba4f42d

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/example_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
example: ${{ matrix.example }}
7575
timeout_minutes: 30
7676
pip_install_extras: "[hf,dev-test]"
77-
runner: linux-amd64-gpu-h100-latest-1
77+
runner: linux-amd64-gpu-rtxpro6000-latest-1
7878

7979
torch-non-pr:
8080
if: ${{ !startsWith(github.ref, 'refs/heads/pull-request/') }}
@@ -161,7 +161,7 @@ jobs:
161161
docker_image: "nvcr.io/nvidia/tensorrt:26.02-py3"
162162
example: ${{ matrix.example }}
163163
pip_install_extras: "[all,dev-test]"
164-
runner: linux-amd64-gpu-l4-latest-1
164+
runner: linux-amd64-gpu-rtxpro6000-latest-1
165165

166166
onnx-non-pr:
167167
if: ${{ !startsWith(github.ref, 'refs/heads/pull-request/') }}

examples/llm_sparsity/attention_sparsity/hf_sa.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def generate_sample_output(model, tokenizer, args):
111111
padding=False,
112112
)
113113
if torch.cuda.is_available():
114-
inputs = {k: v.cuda() for k, v in inputs.items()}
114+
inputs = {k: v.to(model.device) for k, v in inputs.items()}
115115

116116
# Generate
117117
with torch.no_grad():
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Daring-Anteater
22
input_conversations
33
synthetic_conversations
4-
ckpts
4+
ckpts
5+
mlflow.db

tests/examples/speculative_decoding/conftest.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ def tiny_daring_anteater_path(tmp_path_factory):
3636
config_path.write_text(yaml.dump(config))
3737

3838
run_example_command(
39-
["python", "../dataset/make_dataset.py", "-f", str(config_path), "--full-conversations"],
40-
"speculative_decoding",
39+
["python", "make_dataset.py", "-f", str(config_path), "--full-conversations"], "dataset"
4140
)
4241

4342
return output_file

tools/launcher/common/eagle3/make_dataset.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ source ${SCRIPT_DIR}/../service_utils.sh
2323

2424
trap 'error_handler $0 $LINENO' ERR # ERROR HANDLER
2525

26-
python modules/Model-Optimizer/examples/speculative_decoding/prepare_input_conversations/make_dataset.py \
26+
python modules/Model-Optimizer/examples/dataset/make_dataset.py \
2727
${@}
2828

2929
mkdir -p /scratchspace/data

0 commit comments

Comments
 (0)