Skip to content

Commit b781ada

Browse files
ZhanruiSunChHuiGao-NV
authored andcommitted
infra: [TRTLLM-6242] install cuda-toolkit to fix sanity check (#5709)
Signed-off-by: ZhanruiSunCh <[email protected]> Signed-off-by: Hui Gao <[email protected]>
1 parent 036c3dd commit b781ada

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

examples/llm-api/quickstart_example.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
1-
from tensorrt_llm import BuildConfig, SamplingParams
2-
from tensorrt_llm._tensorrt_engine import LLM # NOTE the change
1+
from tensorrt_llm import LLM, SamplingParams
32

43

54
def main():
65

7-
build_config = BuildConfig()
8-
build_config.max_batch_size = 256
9-
build_config.max_num_tokens = 1024
10-
116
# Model could accept HF model name, a path to local HF model,
127
# or TensorRT Model Optimizer's quantized checkpoints like nvidia/Llama-3.1-8B-Instruct-FP8 on HF.
13-
llm = LLM(model="TinyLlama/TinyLlama-1.1B-Chat-v1.0",
14-
build_config=build_config)
8+
llm = LLM(model="TinyLlama/TinyLlama-1.1B-Chat-v1.0")
159

1610
# Sample prompts.
1711
prompts = [

jenkins/L0_Test.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2095,7 +2095,7 @@ def launchTestJobs(pipeline, testFilter, dockerNode=null)
20952095
trtllm_utils.llmExecStepWithRetry(pipeline, script: "pip3 uninstall -y tensorrt")
20962096
if (values[5] != DLFW_IMAGE) {
20972097
def ubuntu_version = key.contains("UB2404") ? "ubuntu2404" : "ubuntu2204"
2098-
def platform = cpu_arch == X86_64_TRIPLE ? "x86_64" : "sbsa"
2098+
def platform = values[2] == X86_64_TRIPLE ? "x86_64" : "sbsa"
20992099
trtllm_utils.llmExecStepWithRetry(pipeline, script: "wget https://developer.download.nvidia.com/compute/cuda/repos/${ubuntu_version}/${platform}/cuda-keyring_1.1-1_all.deb")
21002100
trtllm_utils.llmExecStepWithRetry(pipeline, script: "dpkg -i cuda-keyring_1.1-1_all.deb")
21012101
trtllm_utils.llmExecStepWithRetry(pipeline, script: "apt-get update")

0 commit comments

Comments
 (0)