Skip to content

Commit a8661cd

Browse files
committed
Bug fixed: the device_group arg is deprecated from compile and added in generate method,
changes made in jupyter notebooks Signed-off-by: Sharvari Medhe <[email protected]>
1 parent 5d381b7 commit a8661cd

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

notebooks/QEfficientGPT2.ipynb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,10 @@
9494
"\n",
9595
"qeff_model.compile(\n",
9696
" num_cores=14,\n",
97-
" mxfp6=True,\n",
98-
" device_group=[0],\n",
99-
")"
97+
" mxfp6=True\n",
98+
")\n",
99+
"\n",
100+
"#the device_group arg is deprecated from compile and added in generate method"
100101
]
101102
},
102103
{
@@ -117,7 +118,7 @@
117118
"# post compilation, we can print the latency stats for the kv models, We provide API to print token and Latency stats on Cloud AI 100\n",
118119
"# We need the compiled prefill and decode qpc to compute the token generated, This is based on Greedy Sampling Approach\n",
119120
"\n",
120-
"qeff_model.generate(prompts=[\"My name is\"])"
121+
"qeff_model.generate(prompts=[\"My name is\"], device_group=[0])"
121122
]
122123
}
123124
],

notebooks/QEfficientMPT.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@
9393
"\n",
9494
"qeff_model.compile(\n",
9595
" num_cores=14,\n",
96-
" mxfp6=True,\n",
97-
" device_group=[0],\n",
98-
")"
96+
" mxfp6=True\n",
97+
")\n",
98+
"# the device_group arg is deprecated from compile and added in generate method"
9999
]
100100
},
101101
{
@@ -116,7 +116,7 @@
116116
"# post compilation, we can print the latency stats for the kv models, We provide API to print token and Latency stats on Cloud AI 100\n",
117117
"# We need the compiled prefill and decode qpc to compute the token generated, This is based on Greedy Sampling Approach\n",
118118
"\n",
119-
"qeff_model.generate(prompts=[\"My name is\"])"
119+
"qeff_model.generate(prompts=[\"My name is\"], device_group=[0])"
120120
]
121121
}
122122
],

0 commit comments

Comments
 (0)