You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This interactive script is intended as a sample of the Torch-TensorRT workflow with `torch.compile` on a Stable Diffusion model. A sample output is featured below:
# Pytorch model generated text: What is parallel programming ?
91
+
# Prompt : What is parallel programming ?
95
92
96
-
# The parallel programming paradigm is a set of programming languages that are designed to be used in parallel. The main difference between parallel programming and parallel programming is that
97
93
# =============================
98
-
# TensorRT model generated text: What is parallelprogramming ?
94
+
# Pytorch model generated text: The parallel programming paradigm is a set of programming languages that are designed to be used in parallel. The main difference between parallel programming and parallel programming is that
99
95
100
-
# The parallel programming paradigm is a set of programming languages that are designed to be used in parallel. The main difference between parallel programming and parallel programming is that
96
+
# =============================
97
+
# TensorRT model generated text: The parallel programming paradigm is a set of programming languages that are designed to be used in parallel. The main difference between parallel programming and parallel programming is that
This interactive script is intended as a sample of the Torch-TensorRT workflow with dynamo backend on a Llama2 model."""
7
+
This script illustrates Torch-TensorRT workflow with dynamo backend on popular Llama2 model."""
8
8
9
9
# %%
10
10
# Imports and Model Definition
@@ -91,9 +91,11 @@
91
91
)[0],
92
92
)
93
93
94
-
# %%
95
-
# The output sentences should look like
94
+
95
+
# Prompt : What is dynamic programming?
96
+
96
97
# =============================
97
-
# Pytorch model generated text: Dynamic programming is an algorithmic technique used to solve complex problems by breaking them down into smaller subproblems, solving each subproblem only once, and
98
+
# Pytorch model generated text: Dynamic programming is an algorithmic technique used to solve complex problems by breaking them down into smaller subproblems, solving each subproblem only once, and
99
+
98
100
# =============================
99
-
# TensorRT model generated text: Dynamic programming is an algorithmic technique used to solve complex problems by breaking them down into smaller subproblems, solving each subproblem only once, and
101
+
# TensorRT model generated text: Dynamic programming is an algorithmic technique used to solve complex problems by breaking them down into smaller subproblems, solving each subproblem only once, and
0 commit comments