Anurag1734/cuda-error-resolution-analysis
07
1[2 {3 "post_stream": {4 "posts": [5 {6 "id": 388074,7 "name": "π",8 "username": "p-i",9 "avatar_template": "/user_avatar/discuss.pytorch.org/p-i/{size}/57394_2.png",10 "created_at": "2023-02-17T07:02:50.165Z",11 "cooked": "<p><div class=\"lightbox-wrapper\"><a class=\"lightbox\" href=\"https://discuss.pytorch.org/uploads/default/original/3X/3/7/378b45cbda8637c5aa112d7e68f6483abaf60f7a.png\" data-download-href=\"https://discuss.pytorch.org/uploads/default/378b45cbda8637c5aa112d7e68f6483abaf60f7a\" title=\"Screenshot 2023-02-17 at 06.56.18\"><img src=\"https://discuss.pytorch.org/uploads/default/original/3X/3/7/378b45cbda8637c5aa112d7e68f6483abaf60f7a.png\" alt=\"Screenshot 2023-02-17 at 06.56.18\" data-base62-sha1=\"7VmEmXn2YVZQdg6LULwNbQ7AxZw\" width=\"690\" height=\"408\" data-dominant-color=\"171B21\"><div class=\"meta\"><svg class=\"fa d-icon d-icon-far-image svg-icon\" aria-hidden=\"true\"><use href=\"#far-image\"></use></svg><span class=\"filename\">Screenshot 2023-02-17 at 06.56.18</span><span class=\"informations\">820×486 26.4 KB</span><svg class=\"fa d-icon d-icon-discourse-expand svg-icon\" aria-hidden=\"true\"><use href=\"#discourse-expand\"></use></svg></div></a></div></p>\n<p>Is this really sane project management?</p>\n<p>When a branch is merged into master, why not delete the branch?</p>\n<p>And only persist branches corresponding to public releases…</p>",12 "post_number": 1,13 "post_type": 1,14 "posts_count": 5,15 "updated_at": "2023-02-17T07:02:50.165Z",16 "reply_count": 0,17 "reply_to_post_number": null,18 "quote_count": 0,19 "incoming_link_count": 15,20 "reads": 8,21 "readers_count": 7,22 "score": 76.6,23 "yours": false,24 "topic_id": 172812,25 "topic_slug": "pytorch-repo-has-14-971-branches",26 "display_username": "π",27 "primary_group_name": null,28 "flair_name": null,29 "flair_url": null,30 "flair_bg_color": null,31 "flair_color": null,32 "flair_group_id": null,33 "badges_granted": [],34 "version": 1,35 "can_edit": false,36 "can_delete": false,37 "can_recover": false,38 "can_see_hidden_post": false,39 "can_wiki": false,40 "link_counts": [41 {42 "url": "https://discuss.pytorch.org/uploads/default/original/3X/3/7/378b45cbda8637c5aa112d7e68f6483abaf60f7a.png",43 "internal": true,44 "reflection": false,45 "clicks": 046 }47 ],48 "read": true,49 "user_title": null,50 "bookmarked": false,51 "actions_summary": [],52 "moderator": false,53 "admin": false,54 "staff": false,55 "user_id": 63406,56 "hidden": false,57 "trust_level": 0,58 "deleted_at": null,59 "user_deleted": false,60 "edit_reason": null,61 "can_view_edit_history": true,62 "wiki": false,63 "post_url": "/t/pytorch-repo-has-14-971-branches/172812/1",64 "can_accept_answer": false,65 "can_unaccept_answer": false,66 "accepted_answer": false,67 "topic_accepted_answer": null,68 "can_vote": false69 },70 {71 "id": 388077,72 "name": "",73 "username": "eqy",74 "avatar_template": "/user_avatar/discuss.pytorch.org/eqy/{size}/46233_2.png",75 "created_at": "2023-02-17T07:16:01.584Z",76 "cooked": "<p>I’m now counting 14,974</p>",77 "post_number": 2,78 "post_type": 1,79 "posts_count": 5,80 "updated_at": "2023-02-17T07:16:01.584Z",81 "reply_count": 1,82 "reply_to_post_number": null,83 "quote_count": 0,84 "incoming_link_count": 0,85 "reads": 8,86 "readers_count": 7,87 "score": 6.6,88 "yours": false,89 "topic_id": 172812,90 "topic_slug": "pytorch-repo-has-14-971-branches",91 "display_username": "",92 "primary_group_name": null,93 "flair_name": null,94 "flair_url": null,95 "flair_bg_color": null,96 "flair_color": null,97 "flair_group_id": null,98 "badges_granted": [],99 "version": 1,100 "can_edit": false,101 "can_delete": false,102 "can_recover": false,103 "can_see_hidden_post": false,104 "can_wiki": false,105 "read": true,106 "user_title": "",107 "bookmarked": false,108 "actions_summary": [],109 "moderator": false,110 "admin": false,111 "staff": false,112 "user_id": 35275,113 "hidden": false,114 "trust_level": 2,115 "deleted_at": null,116 "user_deleted": false,117 "edit_reason": null,118 "can_view_edit_history": true,119 "wiki": false,120 "post_url": "/t/pytorch-repo-has-14-971-branches/172812/2",121 "can_accept_answer": false,122 "can_unaccept_answer": false,123 "accepted_answer": false,124 "topic_accepted_answer": null125 },126 {127 "id": 388083,128 "name": "π",129 "username": "p-i",130 "avatar_template": "/user_avatar/discuss.pytorch.org/p-i/{size}/57394_2.png",131 "created_at": "2023-02-17T07:36:24.089Z",132 "cooked": "<pre><code class=\"lang-auto\">Screenshot 2023-02-17 at 06.56.18.png\n</code></pre>\n<p>3 branches in 3 mins then … <img src=\"https://discuss.pytorch.org/images/emoji/apple/grimacing.png?v=12\" title=\":grimacing:\" class=\"emoji\" alt=\":grimacing:\" loading=\"lazy\" width=\"20\" height=\"20\"></p>\n<p><div class=\"lightbox-wrapper\"><a class=\"lightbox\" href=\"https://discuss.pytorch.org/uploads/default/original/3X/f/f/ff5b818384680beeb46e921d9e2160ea3b12a17c.jpeg\" data-download-href=\"https://discuss.pytorch.org/uploads/default/ff5b818384680beeb46e921d9e2160ea3b12a17c\" title=\"Screenshot 2023-02-17 at 07.34.32\"><img src=\"https://discuss.pytorch.org/uploads/default/optimized/3X/f/f/ff5b818384680beeb46e921d9e2160ea3b12a17c_2_689x384.jpeg\" alt=\"Screenshot 2023-02-17 at 07.34.32\" data-base62-sha1=\"AqZNWgcLGtHGpPA5zM8v6N6EP2Q\" width=\"689\" height=\"384\" srcset=\"https://discuss.pytorch.org/uploads/default/optimized/3X/f/f/ff5b818384680beeb46e921d9e2160ea3b12a17c_2_689x384.jpeg, https://discuss.pytorch.org/uploads/default/optimized/3X/f/f/ff5b818384680beeb46e921d9e2160ea3b12a17c_2_1033x576.jpeg 1.5x, https://discuss.pytorch.org/uploads/default/original/3X/f/f/ff5b818384680beeb46e921d9e2160ea3b12a17c.jpeg 2x\" data-dominant-color=\"E3E4C4\"><div class=\"meta\"><svg class=\"fa d-icon d-icon-far-image svg-icon\" aria-hidden=\"true\"><use href=\"#far-image\"></use></svg><span class=\"filename\">Screenshot 2023-02-17 at 07.34.32</span><span class=\"informations\">1308×728 50.7 KB</span><svg class=\"fa d-icon d-icon-discourse-expand svg-icon\" aria-hidden=\"true\"><use href=\"#discourse-expand\"></use></svg></div></a></div></p>\n<p>^ <span class=\"mention\">@TeamPyTorch</span> I have this guy’s number if you’re looking for a ProjectManager/devops.</p>",133 "post_number": 3,134 "post_type": 1,135 "posts_count": 5,136 "updated_at": "2023-02-17T07:36:24.089Z",137 "reply_count": 1,138 "reply_to_post_number": 2,139 "quote_count": 0,140 "incoming_link_count": 0,141 "reads": 8,142 "readers_count": 7,143 "score": 6.6,144 "yours": false,145 "topic_id": 172812,146 "topic_slug": "pytorch-repo-has-14-971-branches",147 "display_username": "π",148 "primary_group_name": null,149 "flair_name": null,150 "flair_url": null,151 "flair_bg_color": null,152 "flair_color": null,153 "flair_group_id": null,154 "badges_granted": [],155 "version": 1,156 "can_edit": false,157 "can_delete": false,158 "can_recover": false,159 "can_see_hidden_post": false,160 "can_wiki": false,161 "link_counts": [162 {163 "url": "https://discuss.pytorch.org/uploads/default/original/3X/f/f/ff5b818384680beeb46e921d9e2160ea3b12a17c.jpeg",164 "internal": true,165 "reflection": false,166 "clicks": 0167 }168 ],169 "read": true,170 "user_title": null,171 "reply_to_user": {172 "id": 35275,173 "username": "eqy",174 "name": "",175 "avatar_template": "/user_avatar/discuss.pytorch.org/eqy/{size}/46233_2.png"176 },177 "bookmarked": false,178 "actions_summary": [],179 "moderator": false,180 "admin": false,181 "staff": false,182 "user_id": 63406,183 "hidden": false,184 "trust_level": 0,185 "deleted_at": null,186 "user_deleted": false,187 "edit_reason": null,188 "can_view_edit_history": true,189 "wiki": false,190 "post_url": "/t/pytorch-repo-has-14-971-branches/172812/3",191 "can_accept_answer": false,192 "can_unaccept_answer": false,193 "accepted_answer": false,194 "topic_accepted_answer": null195 },196 {197 "id": 388085,198 "name": "Mert Kurttutan",199 "username": "ConvolutionalAtom",200 "avatar_template": "/user_avatar/discuss.pytorch.org/convolutionalatom/{size}/45668_2.png",201 "created_at": "2023-02-17T07:43:52.532Z",202 "cooked": "<p>A lot of non-release branches seem to be a few years behind without any commit</p>",203 "post_number": 4,204 "post_type": 1,205 "posts_count": 5,206 "updated_at": "2023-02-17T07:43:52.532Z",207 "reply_count": 1,208 "reply_to_post_number": 3,209 "quote_count": 0,210 "incoming_link_count": 1,211 "reads": 8,212 "readers_count": 7,213 "score": 11.6,214 "yours": false,215 "topic_id": 172812,216 "topic_slug": "pytorch-repo-has-14-971-branches",217 "display_username": "Mert Kurttutan",218 "primary_group_name": null,219 "flair_name": null,220 "flair_url": null,221 "flair_bg_color": null,222 "flair_color": null,223 "flair_group_id": null,224 "badges_granted": [],225 "version": 1,226 "can_edit": false,227 "can_delete": false,228 "can_recover": false,229 "can_see_hidden_post": false,230 "can_wiki": false,231 "read": true,232 "user_title": null,233 "reply_to_user": {234 "id": 63406,235 "username": "p-i",236 "name": "π",237 "avatar_template": "/user_avatar/discuss.pytorch.org/p-i/{size}/57394_2.png"238 },239 "bookmarked": false,240 "actions_summary": [],241 "moderator": false,242 "admin": false,243 "staff": false,244 "user_id": 54606,245 "hidden": false,246 "trust_level": 2,247 "deleted_at": null,248 "user_deleted": false,249 "edit_reason": null,250 "can_view_edit_history": true,251 "wiki": false,252 "post_url": "/t/pytorch-repo-has-14-971-branches/172812/4",253 "can_accept_answer": false,254 "can_unaccept_answer": false,255 "accepted_answer": false,256 "topic_accepted_answer": null257 },258 {259 "id": 388087,260 "name": "",261 "username": "ptrblck",262 "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",263 "created_at": "2023-02-17T07:51:42.572Z",264 "cooked": "<p>I see a lot of <code>gh/username/head, gh/username/orig, gh/username/base</code> branches and am wondering if these dead branches are left by <a href=\"https://github.com/ezyang/ghstack\"><code>ghstack</code></a>.<br>\nCC <a class=\"mention\" href=\"/u/ezyang\">@ezyang</a> in case these could be cleaned up.</p>",265 "post_number": 5,266 "post_type": 1,267 "posts_count": 5,268 "updated_at": "2023-02-17T07:51:42.572Z",269 "reply_count": 0,270 "reply_to_post_number": 4,271 "quote_count": 0,272 "incoming_link_count": 2,273 "reads": 7,274 "readers_count": 6,275 "score": 11.4,276 "yours": false,277 "topic_id": 172812,278 "topic_slug": "pytorch-repo-has-14-971-branches",279 "display_username": "",280 "primary_group_name": null,281 "flair_name": null,282 "flair_url": null,283 "flair_bg_color": null,284 "flair_color": null,285 "flair_group_id": null,286 "badges_granted": [],287 "version": 1,288 "can_edit": false,289 "can_delete": false,290 "can_recover": false,291 "can_see_hidden_post": false,292 "can_wiki": false,293 "link_counts": [294 {295 "url": "https://github.com/ezyang/ghstack",296 "internal": false,297 "reflection": false,298 "title": "GitHub - ezyang/ghstack: Submit stacked diffs to GitHub on the command line",299 "clicks": 5300 }301 ],302 "read": true,303 "user_title": "",304 "reply_to_user": {305 "id": 54606,306 "username": "ConvolutionalAtom",307 "name": "Mert Kurttutan",308 "avatar_template": "/user_avatar/discuss.pytorch.org/convolutionalatom/{size}/45668_2.png"309 },310 "bookmarked": false,311 "actions_summary": [],312 "moderator": true,313 "admin": true,314 "staff": true,315 "user_id": 3534,316 "hidden": false,317 "trust_level": 2,318 "deleted_at": null,319 "user_deleted": false,320 "edit_reason": null,321 "can_view_edit_history": true,322 "wiki": false,323 "post_url": "/t/pytorch-repo-has-14-971-branches/172812/5",324 "can_accept_answer": false,325 "can_unaccept_answer": false,326 "accepted_answer": false,327 "topic_accepted_answer": null328 }329 ],330 "stream": [331 388074,332 388077,333 388083,334 388085,335 388087336 ]337 },338 "timeline_lookup": [339 [340 1,341 982342 ],343 [344 3,345 981346 ]347 ],348 "suggested_topics": [349 {350 "fancy_title": "Flash attention with padding mask or nested tensors",351 "id": 213327,352 "title": "Flash attention with padding mask or nested tensors",353 "slug": "flash-attention-with-padding-mask-or-nested-tensors",354 "posts_count": 3,355 "reply_count": 0,356 "highest_post_number": 3,357 "image_url": null,358 "created_at": "2024-11-22T20:49:24.448Z",359 "last_posted_at": "2025-08-30T16:54:44.355Z",360 "bumped": true,361 "bumped_at": "2025-08-30T16:54:44.355Z",362 "archetype": "regular",363 "unseen": false,364 "pinned": false,365 "unpinned": null,366 "visible": true,367 "closed": false,368 "archived": false,369 "bookmarked": null,370 "liked": null,371 "tags_descriptions": {},372 "like_count": 0,373 "views": 612,374 "category_id": 1,375 "featured_link": null,376 "has_accepted_answer": false,377 "posters": [378 {379 "extras": null,380 "description": "Original Poster",381 "user": {382 "id": 80680,383 "username": "SlavPsh",384 "name": "",385 "avatar_template": "/user_avatar/discuss.pytorch.org/slavpsh/{size}/73757_2.png",386 "trust_level": 1387 }388 },389 {390 "extras": null,391 "description": "Frequent Poster",392 "user": {393 "id": 85656,394 "username": "Kshitiz_Khandelwal",395 "name": "Kshitiz Khandelwal",396 "avatar_template": "/user_avatar/discuss.pytorch.org/kshitiz_khandelwal/{size}/78061_2.png",397 "trust_level": 0398 }399 },400 {401 "extras": "latest",402 "description": "Most Recent Poster",403 "user": {404 "id": 67276,405 "username": "Arunprakash-A",406 "name": "Arun Prakash A",407 "avatar_template": "/user_avatar/discuss.pytorch.org/arunprakash-a/{size}/78115_2.png",408 "trust_level": 2409 }410 }411 ]412 },413 {414 "fancy_title": "Questions Regarding the Direction of Half Padding for Odd-Sized Inputs in PyTorch Conv2D and ConvTransposed2D",415 "id": 214237,416 "title": "Questions Regarding the Direction of Half Padding for Odd-Sized Inputs in PyTorch Conv2D and ConvTransposed2D",417 "slug": "questions-regarding-the-direction-of-half-padding-for-odd-sized-inputs-in-pytorch-conv2d-and-convtransposed2d",418 "posts_count": 2,419 "reply_count": 0,420 "highest_post_number": 2,421 "image_url": "https://discuss.pytorch.org/uploads/default/optimized/3X/b/b/bbbaac4cedae04ffa60904b9c583ad66ddfa697c_2_1024x449.png",422 "created_at": "2024-12-15T07:28:33.352Z",423 "last_posted_at": "2024-12-17T13:51:47.078Z",424 "bumped": true,425 "bumped_at": "2024-12-17T13:51:47.078Z",426 "archetype": "regular",427 "unseen": false,428 "pinned": false,429 "unpinned": null,430 "visible": true,431 "closed": false,432 "archived": false,433 "bookmarked": null,434 "liked": null,435 "tags_descriptions": {},436 "like_count": 0,437 "views": 91,438 "category_id": 1,439 "featured_link": null,440 "has_accepted_answer": false,441 "posters": [442 {443 "extras": "latest single",444 "description": "Original Poster, Most Recent Poster",445 "user": {446 "id": 81511,447 "username": "mx34kryce",448 "name": "",449 "avatar_template": "/user_avatar/discuss.pytorch.org/mx34kryce/{size}/74521_2.png",450 "trust_level": 1451 }452 }453 ]454 },455 {456 "fancy_title": "Problem when using pytorch",457 "id": 214684,458 "title": "Problem when using pytorch",459 "slug": "problem-when-using-pytorch",460 "posts_count": 7,461 "reply_count": 5,462 "highest_post_number": 8,463 "image_url": null,464 "created_at": "2024-12-27T04:54:10.371Z",465 "last_posted_at": "2025-01-01T07:53:46.028Z",466 "bumped": true,467 "bumped_at": "2025-01-01T07:53:46.028Z",468 "archetype": "regular",469 "unseen": false,470 "pinned": false,471 "unpinned": null,472 "visible": true,473 "closed": false,474 "archived": false,475 "bookmarked": null,476 "liked": null,477 "tags_descriptions": {},478 "like_count": 0,479 "views": 399,480 "category_id": 1,481 "featured_link": null,482 "has_accepted_answer": false,483 "posters": [484 {485 "extras": "latest",486 "description": "Original Poster, Most Recent Poster",487 "user": {488 "id": 81735,489 "username": "Nickelth",490 "name": "Nickelth",491 "avatar_template": "/user_avatar/discuss.pytorch.org/nickelth/{size}/74746_2.png",492 "trust_level": 0493 }494 },495 {496 "extras": null,497 "description": "Frequent Poster",498 "user": {499 "id": 3534,500 "username": "ptrblck",501 "name": "",502 "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",503 "admin": true,504 "moderator": true,505 "trust_level": 2506 }507 }508 ]509 },510 {511 "fancy_title": "Move ExportedProgram to CPU",512 "id": 214908,513 "title": "Move ExportedProgram to CPU",514 "slug": "move-exportedprogram-to-cpu",515 "posts_count": 4,516 "reply_count": 1,517 "highest_post_number": 4,518 "image_url": null,519 "created_at": "2025-01-02T21:52:00.610Z",520 "last_posted_at": "2025-01-04T00:24:58.450Z",521 "bumped": true,522 "bumped_at": "2025-01-04T00:24:58.450Z",523 "archetype": "regular",524 "unseen": false,525 "pinned": false,526 "unpinned": null,527 "visible": true,528 "closed": false,529 "archived": false,530 "bookmarked": null,531 "liked": null,532 "tags_descriptions": {},533 "like_count": 0,534 "views": 261,535 "category_id": 1,536 "featured_link": null,537 "has_accepted_answer": false,538 "posters": [539 {540 "extras": null,541 "description": "Original Poster",542 "user": {543 "id": 50788,544 "username": "Dheeraj_Peri",545 "name": "Dheeraj Peri",546 "avatar_template": "/user_avatar/discuss.pytorch.org/dheeraj_peri/{size}/36976_2.png",547 "trust_level": 0548 }549 },550 {551 "extras": null,552 "description": "Frequent Poster",553 "user": {554 "id": 41396,555 "username": "soulitzer",556 "name": "",557 "avatar_template": "/letter_avatar_proxy/v4/letter/s/839c29/{size}.png",558 "trust_level": 2559 }560 },561 {562 "extras": "latest",563 "description": "Most Recent Poster",564 "user": {565 "id": 41997,566 "username": "bdhirsh",567 "name": "Brian Hirsh",568 "avatar_template": "/user_avatar/discuss.pytorch.org/bdhirsh/{size}/74038_2.png",569 "trust_level": 2570 }571 }572 ]573 },574 {575 "fancy_title": "Asynchronous execution multiple GPUs",576 "id": 212448,577 "title": "Asynchronous execution multiple GPUs",578 "slug": "asynchronous-execution-multiple-gpus",579 "posts_count": 3,580 "reply_count": 1,581 "highest_post_number": 3,582 "image_url": null,583 "created_at": "2024-11-02T12:59:53.714Z",584 "last_posted_at": "2024-11-05T13:22:01.243Z",585 "bumped": true,586 "bumped_at": "2024-11-05T13:22:01.243Z",587 "archetype": "regular",588 "unseen": false,589 "pinned": false,590 "unpinned": null,591 "visible": true,592 "closed": false,593 "archived": false,594 "bookmarked": null,595 "liked": null,596 "tags_descriptions": {},597 "like_count": 0,598 "views": 195,599 "category_id": 1,600 "featured_link": null,601 "has_accepted_answer": false,602 "posters": [603 {604 "extras": "latest",605 "description": "Original Poster, Most Recent Poster",606 "user": {607 "id": 71569,608 "username": "Manvel_Petrosyan",609 "name": "Manvel Petrosyan",610 "avatar_template": "/user_avatar/discuss.pytorch.org/manvel_petrosyan/{size}/66101_2.png",611 "trust_level": 1612 }613 },614 {615 "extras": null,616 "description": "Frequent Poster",617 "user": {618 "id": 3534,619 "username": "ptrblck",620 "name": "",621 "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",622 "admin": true,623 "moderator": true,624 "trust_level": 2625 }626 }627 ]628 }629 ],630 "tags_descriptions": {},631 "fancy_title": "PyTorch repo has 14,971 branches",632 "id": 172812,633 "title": "PyTorch repo has 14,971 branches",634 "posts_count": 5,635 "created_at": "2023-02-17T07:02:50.066Z",636 "views": 400,637 "reply_count": 3,638 "like_count": 0,639 "last_posted_at": "2023-02-17T07:51:42.572Z",640 "visible": true,641 "closed": false,642 "archived": false,643 "has_summary": false,644 "archetype": "regular",645 "slug": "pytorch-repo-has-14-971-branches",646 "category_id": 1,647 "word_count": 142,648 "deleted_at": null,649 "user_id": 63406,650 "featured_link": null,651 "pinned_globally": false,652 "pinned_at": null,653 "pinned_until": null,654 "image_url": "https://discuss.pytorch.org/uploads/default/original/3X/3/7/378b45cbda8637c5aa112d7e68f6483abaf60f7a.png",655 "slow_mode_seconds": 0,656 "draft": null,657 "draft_key": "topic_172812",658 "draft_sequence": null,659 "unpinned": null,660 "pinned": false,661 "current_post_number": 1,662 "highest_post_number": 5,663 "deleted_by": null,664 "actions_summary": [665 {666 "id": 4,667 "count": 0,668 "hidden": false,669 "can_act": false670 },671 {672 "id": 8,673 "count": 0,674 "hidden": false,675 "can_act": false676 },677 {678 "id": 10,679 "count": 0,680 "hidden": false,681 "can_act": false682 },683 {684 "id": 7,685 "count": 0,686 "hidden": false,687 "can_act": false688 }689 ],690 "chunk_size": 20,691 "bookmarked": false,692 "topic_timer": null,693 "message_bus_last_id": 0,694 "participant_count": 4,695 "show_read_indicator": false,696 "thumbnails": [697 {698 "max_width": null,699 "max_height": null,700 "width": 820,701 "height": 486,702 "url": "https://discuss.pytorch.org/uploads/default/original/3X/3/7/378b45cbda8637c5aa112d7e68f6483abaf60f7a.png"703 }704 ],705 "slow_mode_enabled_until": null,706 "can_vote": false,707 "vote_count": 0,708 "user_voted": false,709 "discourse_zendesk_plugin_zendesk_id": null,710 "discourse_zendesk_plugin_zendesk_url": "https://your-url.zendesk.com/agent/tickets/",711 "details": {712 "can_edit": false,713 "notification_level": 1,714 "participants": [715 {716 "id": 63406,717 "username": "p-i",718 "name": "π",719 "avatar_template": "/user_avatar/discuss.pytorch.org/p-i/{size}/57394_2.png",720 "post_count": 2,721 "primary_group_name": null,722 "flair_name": null,723 "flair_url": null,724 "flair_color": null,725 "flair_bg_color": null,726 "flair_group_id": null,727 "trust_level": 0728 },729 {730 "id": 3534,731 "username": "ptrblck",732 "name": "",733 "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",734 "post_count": 1,735 "primary_group_name": null,736 "flair_name": null,737 "flair_url": null,738 "flair_color": null,739 "flair_bg_color": null,740 "flair_group_id": null,741 "admin": true,742 "moderator": true,743 "trust_level": 2744 },745 {746 "id": 35275,747 "username": "eqy",748 "name": "",749 "avatar_template": "/user_avatar/discuss.pytorch.org/eqy/{size}/46233_2.png",750 "post_count": 1,751 "primary_group_name": null,752 "flair_name": null,753 "flair_url": null,754 "flair_color": null,755 "flair_bg_color": null,756 "flair_group_id": null,757 "trust_level": 2758 },759 {760 "id": 54606,761 "username": "ConvolutionalAtom",762 "name": "Mert Kurttutan",763 "avatar_template": "/user_avatar/discuss.pytorch.org/convolutionalatom/{size}/45668_2.png",764 "post_count": 1,765 "primary_group_name": null,766 "flair_name": null,767 "flair_url": null,768 "flair_color": null,769 "flair_bg_color": null,770 "flair_group_id": null,771 "trust_level": 2772 }773 ],774 "created_by": {775 "id": 63406,776 "username": "p-i",777 "name": "π",778 "avatar_template": "/user_avatar/discuss.pytorch.org/p-i/{size}/57394_2.png"779 },780 "last_poster": {781 "id": 3534,782 "username": "ptrblck",783 "name": "",784 "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png"785 },786 "links": [787 {788 "url": "https://github.com/ezyang/ghstack",789 "title": "GitHub - ezyang/ghstack: Submit stacked diffs to GitHub on the command line",790 "internal": false,791 "attachment": false,792 "reflection": false,793 "clicks": 5,794 "user_id": 3534,795 "domain": "github.com",796 "root_domain": "github.com"797 }798 ]799 },800 "bookmarks": []801 },802 {803 "post_stream": {804 "posts": [805 {806 "id": 388060,807 "name": "",808 "username": "nlp_8172",809 "avatar_template": "/user_avatar/discuss.pytorch.org/nlp_8172/{size}/56774_2.png",810 "created_at": "2023-02-17T04:17:54.052Z",811 "cooked": "<p>Hey guys. I am running code from another repository and ran into the above error. I have looked into it online, and none of the solutions I have found work for me. I have already verified that the model is on cuda:0, so it is the data objects that are lingering on the CPU.</p>\n<p>The dataloader is obtained from a dataset as follows:</p>\n<pre><code class=\"lang-auto\">eval_dataloader = self.get_eval_dataloader(eval_dataset) #in a class inheriting from Seq2SeqTrainer\n</code></pre>\n<p>Later, the code is run as follows:</p>\n<pre><code class=\"lang-auto\">output = eval_loop(\n eval_dataloader,\n description=\"Evaluation\",\n prediction_loss_only=True if compute_metrics is None else None,\n ignore_keys=ignore_keys,\n)\n</code></pre>\n<p>Eval loop here is get_evaluation_loop from the transformers trainer class. So the point is, because of the way this is run I don’t think I can move the batches to the GPU just before training on them; it is run through the eval_loop method rather than through a modifiable for loop.</p>\n<p>From here, I have tried many methods to move the dataloader to the GPU, including:</p>\n<pre><code class=\"lang-auto\">for batch in eval_dataloader:\nfor k, v in batch.items():\n v = v.to(device)\n batch[k] = v\n</code></pre>\n<p>But, for whatever reason, I still get this error. Any suggestions as to how I can fix this? Thanks!</p>",812 "post_number": 1,813 "post_type": 1,814 "posts_count": 2,815 "updated_at": "2023-02-17T04:22:50.403Z",816 "reply_count": 1,817 "reply_to_post_number": null,818 "quote_count": 0,819 "incoming_link_count": 76,820 "reads": 3,821 "readers_count": 2,822 "score": 385.6,823 "yours": false,824 "topic_id": 172801,825 "topic_slug": "expected-tensors-to-be-on-one-device-but-found-two-cpu-and-cuda-0",826 "display_username": "",827 "primary_group_name": null,828 "flair_name": null,829 "flair_url": null,830 "flair_bg_color": null,831 "flair_color": null,832 "flair_group_id": null,833 "badges_granted": [],834 "version": 2,835 "can_edit": false,836 "can_delete": false,837 "can_recover": false,838 "can_see_hidden_post": false,839 "can_wiki": false,840 "read": true,841 "user_title": "",842 "bookmarked": false,843 "actions_summary": [],844 "moderator": false,845 "admin": false,846 "staff": false,847 "user_id": 62852,848 "hidden": false,849 "trust_level": 1,850 "deleted_at": null,851 "user_deleted": false,852 "edit_reason": null,853 "can_view_edit_history": true,854 "wiki": false,855 "post_url": "/t/expected-tensors-to-be-on-one-device-but-found-two-cpu-and-cuda-0/172801/1",856 "can_accept_answer": false,857 "can_unaccept_answer": false,858 "accepted_answer": false,859 "topic_accepted_answer": null,860 "can_vote": false861 },862 {863 "id": 388084,864 "name": "",865 "username": "ptrblck",866 "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",867 "created_at": "2023-02-17T07:41:06.250Z",868 "cooked": "<aside class=\"quote no-group\" data-username=\"nlp_8172\" data-post=\"1\" data-topic=\"172801\">\n<div class=\"title\">\n<div class=\"quote-controls\"></div>\n<img loading=\"lazy\" alt=\"\" width=\"24\" height=\"24\" src=\"https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/nlp_8172/48/56774_2.png\" class=\"avatar\"> nlp_8172:</div>\n<blockquote>\n<p>Eval loop here is get_evaluation_loop from the transformers trainer class. So the point is, because of the way this is run I don’t think I can move the batches to the GPU just before training on them;</p>\n</blockquote>\n</aside>\n<p>In this case I would recommend checking the trainer class code to see where the data is supposedly moved to the device, as the error seems to come from the higher-level API you are using.</p>",869 "post_number": 2,870 "post_type": 1,871 "posts_count": 2,872 "updated_at": "2023-02-17T07:41:06.250Z",873 "reply_count": 0,874 "reply_to_post_number": null,875 "quote_count": 1,876 "incoming_link_count": 3,877 "reads": 2,878 "readers_count": 1,879 "score": 15.4,880 "yours": false,881 "topic_id": 172801,882 "topic_slug": "expected-tensors-to-be-on-one-device-but-found-two-cpu-and-cuda-0",883 "display_username": "",884 "primary_group_name": null,885 "flair_name": null,886 "flair_url": null,887 "flair_bg_color": null,888 "flair_color": null,889 "flair_group_id": null,890 "badges_granted": [],891 "version": 1,892 "can_edit": false,893 "can_delete": false,894 "can_recover": false,895 "can_see_hidden_post": false,896 "can_wiki": false,897 "read": true,898 "user_title": "",899 "bookmarked": false,900 "actions_summary": [],901 "moderator": true,902 "admin": true,903 "staff": true,904 "user_id": 3534,905 "hidden": false,906 "trust_level": 2,907 "deleted_at": null,908 "user_deleted": false,909 "edit_reason": null,910 "can_view_edit_history": true,911 "wiki": false,912 "post_url": "/t/expected-tensors-to-be-on-one-device-but-found-two-cpu-and-cuda-0/172801/2",913 "can_accept_answer": false,914 "can_unaccept_answer": false,915 "accepted_answer": false,916 "topic_accepted_answer": null917 }918 ],919 "stream": [920 388060,921 388084922 ]923 },924 "timeline_lookup": [925 [926 1,927 982928 ],929 [930 2,931 981932 ]933 ],934 "suggested_topics": [935 {936 "fancy_title": "Questions Regarding the Direction of Half Padding for Odd-Sized Inputs in PyTorch Conv2D and ConvTransposed2D",937 "id": 214237,938 "title": "Questions Regarding the Direction of Half Padding for Odd-Sized Inputs in PyTorch Conv2D and ConvTransposed2D",939 "slug": "questions-regarding-the-direction-of-half-padding-for-odd-sized-inputs-in-pytorch-conv2d-and-convtransposed2d",940 "posts_count": 2,941 "reply_count": 0,942 "highest_post_number": 2,943 "image_url": "https://discuss.pytorch.org/uploads/default/optimized/3X/b/b/bbbaac4cedae04ffa60904b9c583ad66ddfa697c_2_1024x449.png",944 "created_at": "2024-12-15T07:28:33.352Z",945 "last_posted_at": "2024-12-17T13:51:47.078Z",946 "bumped": true,947 "bumped_at": "2024-12-17T13:51:47.078Z",948 "archetype": "regular",949 "unseen": false,950 "pinned": false,951 "unpinned": null,952 "visible": true,953 "closed": false,954 "archived": false,955 "bookmarked": null,956 "liked": null,957 "tags_descriptions": {},958 "like_count": 0,959 "views": 91,960 "category_id": 1,961 "featured_link": null,962 "has_accepted_answer": false,963 "posters": [964 {965 "extras": "latest single",966 "description": "Original Poster, Most Recent Poster",967 "user": {968 "id": 81511,969 "username": "mx34kryce",970 "name": "",971 "avatar_template": "/user_avatar/discuss.pytorch.org/mx34kryce/{size}/74521_2.png",972 "trust_level": 1973 }974 }975 ]976 },977 {978 "fancy_title": "How to manually replicate module.to(dtype=dtype)",979 "id": 217249,980 "title": "How to manually replicate module.to(dtype=dtype)",981 "slug": "how-to-manually-replicate-module-to-dtype-dtype",982 "posts_count": 1,983 "reply_count": 0,984 "highest_post_number": 1,985 "image_url": null,986 "created_at": "2025-02-27T21:03:51.161Z",987 "last_posted_at": "2025-02-27T21:03:51.200Z",988 "bumped": true,989 "bumped_at": "2025-02-27T21:03:51.200Z",990 "archetype": "regular",991 "unseen": false,992 "pinned": false,993 "unpinned": null,994 "visible": true,995 "closed": false,996 "archived": false,997 "bookmarked": null,998 "liked": null,999 "tags_descriptions": {},1000 "like_count": 0,1001 "views": 58,1002 "category_id": 1,1003 "featured_link": null,1004 "has_accepted_answer": false,1005 "posters": [1006 {1007 "extras": "latest single",1008 "description": "Original Poster, Most Recent Poster",1009 "user": {1010 "id": 78504,1011 "username": "jackzhxng",1012 "name": "Jack Zhang",1013 "avatar_template": "/user_avatar/discuss.pytorch.org/jackzhxng/{size}/72367_2.png",1014 "trust_level": 11015 }1016 }1017 ]1018 },1019 {1020 "fancy_title": "Multiple Models Performance Degrades",1021 "id": 217997,1022 "title": "Multiple Models Performance Degrades",1023 "slug": "multiple-models-performance-degrades",1024 "posts_count": 1,1025 "reply_count": 0,1026 "highest_post_number": 1,1027 "image_url": "https://discuss.pytorch.org/uploads/default/optimized/3X/1/c/1c795da9ca2096fc66e9c4b0b865a7995bda649b_2_1024x315.png",1028 "created_at": "2025-03-18T18:03:18.722Z",1029 "last_posted_at": "2025-03-18T18:03:18.772Z",1030 "bumped": true,1031 "bumped_at": "2025-03-18T18:03:18.772Z",1032 "archetype": "regular",1033 "unseen": false,1034 "pinned": false,1035 "unpinned": null,1036 "visible": true,1037 "closed": false,1038 "archived": false,1039 "bookmarked": null,1040 "liked": null,1041 "tags_descriptions": {},1042 "like_count": 0,1043 "views": 28,1044 "category_id": 1,1045 "featured_link": null,1046 "has_accepted_answer": false,1047 "posters": [1048 {1049 "extras": "latest single",1050 "description": "Original Poster, Most Recent Poster",1051 "user": {1052 "id": 81841,1053 "username": "goofydoge",1054 "name": null,1055 "avatar_template": "/letter_avatar_proxy/v4/letter/g/8c91f0/{size}.png",1056 "trust_level": 11057 }1058 }1059 ]1060 },1061 {1062 "fancy_title": "Help/suggestion with MeshGraphNets",1063 "id": 218195,1064 "title": "Help/suggestion with MeshGraphNets",1065 "slug": "help-suggestion-with-meshgraphnets",1066 "posts_count": 2,1067 "reply_count": 1,1068 "highest_post_number": 2,1069 "image_url": null,1070 "created_at": "2025-03-24T10:01:15.860Z",1071 "last_posted_at": "2025-03-25T03:41:18.926Z",1072 "bumped": true,1073 "bumped_at": "2025-03-27T17:15:40.378Z",1074 "archetype": "regular",1075 "unseen": false,1076 "pinned": false,1077 "unpinned": null,1078 "visible": true,1079 "closed": false,1080 "archived": false,1081 "bookmarked": null,1082 "liked": null,1083 "tags_descriptions": {},1084 "like_count": 0,1085 "views": 95,1086 "category_id": 1,1087 "featured_link": null,1088 "has_accepted_answer": false,1089 "posters": [1090 {1091 "extras": null,1092 "description": "Original Poster",1093 "user": {1094 "id": 83285,1095 "username": "Malaika",1096 "name": "Malaika",1097 "avatar_template": "/user_avatar/discuss.pytorch.org/malaika/{size}/76174_2.png",1098 "trust_level": 11099 }1100 },1101 {1102 "extras": "latest",1103 "description": "Most Recent Poster",1104 "user": {1105 "id": 64475,1106 "username": "singh20anurag",1107 "name": "Anurag Singh",1108 "avatar_template": "/user_avatar/discuss.pytorch.org/singh20anurag/{size}/58630_2.png",1109 "trust_level": 11110 }1111 }1112 ]1113 },1114 {1115 "fancy_title": "Problem with fork-like multiprocess Dataloader on Ubuntu",1116 "id": 213451,1117 "title": "Problem with fork-like multiprocess Dataloader on Ubuntu",1118 "slug": "problem-with-fork-like-multiprocess-dataloader-on-ubuntu",1119 "posts_count": 1,1120 "reply_count": 0,1121 "highest_post_number": 1,1122 "image_url": null,1123 "created_at": "2024-11-26T09:11:42.083Z",1124 "last_posted_at": "2024-11-26T09:11:42.224Z",1125 "bumped": true,1126 "bumped_at": "2024-11-26T09:22:55.705Z",1127 "archetype": "regular",1128 "unseen": false,1129 "pinned": false,1130 "unpinned": null,1131 "visible": true,1132 "closed": false,1133 "archived": false,1134 "bookmarked": null,1135 "liked": null,1136 "tags_descriptions": {},1137 "like_count": 0,1138 "views": 82,1139 "category_id": 1,1140 "featured_link": null,1141 "has_accepted_answer": false,1142 "posters": [1143 {1144 "extras": "latest single",1145 "description": "Original Poster, Most Recent Poster",1146 "user": {1147 "id": 81132,1148 "username": "neyronon",1149 "name": "Victor Lg",1150 "avatar_template": "/user_avatar/discuss.pytorch.org/neyronon/{size}/74205_2.png",1151 "trust_level": 11152 }1153 }1154 ]1155 }1156 ],1157 "tags_descriptions": {},1158 "fancy_title": "Expected tensors to be on one device, but found two: cpu and cuda:0",1159 "id": 172801,1160 "title": "Expected tensors to be on one device, but found two: cpu and cuda:0",1161 "posts_count": 2,1162 "created_at": "2023-02-17T04:17:53.950Z",1163 "views": 324,1164 "reply_count": 0,1165 "like_count": 0,1166 "last_posted_at": "2023-02-17T07:41:06.250Z",1167 "visible": true,1168 "closed": false,1169 "archived": false,1170 "has_summary": false,1171 "archetype": "regular",1172 "slug": "expected-tensors-to-be-on-one-device-but-found-two-cpu-and-cuda-0",1173 "category_id": 1,1174 "word_count": 280,1175 "deleted_at": null,1176 "user_id": 62852,1177 "featured_link": null,1178 "pinned_globally": false,1179 "pinned_at": null,1180 "pinned_until": null,1181 "image_url": null,1182 "slow_mode_seconds": 0,1183 "draft": null,1184 "draft_key": "topic_172801",1185 "draft_sequence": null,1186 "unpinned": null,1187 "pinned": false,1188 "current_post_number": 1,1189 "highest_post_number": 2,1190 "deleted_by": null,1191 "actions_summary": [1192 {1193 "id": 4,1194 "count": 0,1195 "hidden": false,1196 "can_act": false1197 },1198 {1199 "id": 8,1200 "count": 0,