Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
eaidova committed May 3, 2024
1 parent 20576bd commit e56ab52
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -565,10 +565,6 @@
" return_tensors=\"pt\",\n",
" )\n",
" text_input_ids = text_inputs.input_ids\n",
" untruncated_ids = self.tokenizer(prompt, padding=\"longest\", return_tensors=\"pt\").input_ids\n",
"\n",
" if untruncated_ids.shape[-1] >= text_input_ids.shape[-1] and not torch.equal(text_input_ids, untruncated_ids):\n",
" removed_text = self.tokenizer.batch_decode(untruncated_ids[:, self.tokenizer.model_max_length - 1 : -1])\n",
"\n",
" prompt_embeds = self.text_encoder(text_input_ids, share_inputs=True, share_outputs=True)\n",
" prompt_embeds = torch.from_numpy(prompt_embeds[0])\n",
Expand Down
3 changes: 0 additions & 3 deletions notebooks/oneformer-segmentation/oneformer-segmentation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -839,9 +839,6 @@
"collapsed": false,
"jupyter": {
"outputs_hidden": false
},
"test_replace": {
"subset_size=len(coco_dataset),": "subset_size=10,"
}
},
"outputs": [
Expand Down
2 changes: 1 addition & 1 deletion notebooks/sdxl-turbo/sdxl-turbo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@
"cell_type": "code",
"execution_count": 16,
"id": "6b62f498",
"metadata": {"test_replace": {"subset_size=200": "subset_size=10"},
"metadata": {"test_replace": {"subset_size=200": "subset_size=10"}},
"outputs": [],
"source": [
"%%skip not $to_quantize.value\n",
Expand Down

0 comments on commit e56ab52

Please sign in to comment.