Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions notebooks/QEfficientGPT2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,9 @@
"# Compile the model for provided compilation arguments\n",
"# Please use platform SDK to Check num_cores for your card.\n",
"\n",
"qeff_model.compile(\n",
" num_cores=14,\n",
" mxfp6=True,\n",
" device_group=[0],\n",
")"
"qeff_model.compile(num_cores=14, mxfp6=True)\n",
"\n",
"# the device_group arg is deprecated from compile and added in generate method"
]
},
{
Expand All @@ -117,7 +115,7 @@
"# 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",
"# We need the compiled prefill and decode qpc to compute the token generated, This is based on Greedy Sampling Approach\n",
"\n",
"qeff_model.generate(prompts=[\"My name is\"])"
"qeff_model.generate(prompts=[\"My name is\"], device_group=[0])"
]
}
],
Expand Down
9 changes: 3 additions & 6 deletions notebooks/QEfficientMPT.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,8 @@
"# Compile the model for provided compilation arguments\n",
"# Please use platform SDK to Check num_cores for your card.\n",
"\n",
"qeff_model.compile(\n",
" num_cores=14,\n",
" mxfp6=True,\n",
" device_group=[0],\n",
")"
"qeff_model.compile(num_cores=14, mxfp6=True)\n",
"# the device_group arg is deprecated from compile and added in generate method"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its not deprecated instead renamed to device_id. However, you can skip setting device_id explicitly as the device will be automatically selected using the auto device picker during execution

]
},
{
Expand All @@ -116,7 +113,7 @@
"# 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",
"# We need the compiled prefill and decode qpc to compute the token generated, This is based on Greedy Sampling Approach\n",
"\n",
"qeff_model.generate(prompts=[\"My name is\"])"
"qeff_model.generate(prompts=[\"My name is\"], device_group=[0])"
]
}
],
Expand Down
Loading