CoolFace
Datasetpublic

Anurag1734/cuda-error-resolution-analysis

sourceHugging Faceupdated 2mo agoView on Hugging Face
0likes7downloads
topics_batch_50.json64680 linesDownload Raw Back to raw
1[2  {3    "post_stream": {4      "posts": [5        {6          "id": 448828,7          "name": "Platon",8          "username": "Platon",9          "avatar_template": "/user_avatar/discuss.pytorch.org/platon/{size}/71389_2.png",10          "created_at": "2024-07-12T15:46:31.918Z",11          "cooked": "<p>Hi Everyone!</p>\n<p>I’m running into trouble when trying to deterministically resume training a model with dropout from a checkpoint: the training losses change after loading the checkpoint.</p>\n<p>I expect I’m missing something simple, but can’t seem to find it.</p>\n<p>Minimal code:</p>\n<pre><code class=\"lang-auto\">import numpy as np\nimport torch\nimport torch.nn as nn\nimport os\n\ndef gen_dataset():\n    # x is 10d, y is 1d\n    x = np.stack([100 * np.random.rand(500) + np.arange(500) for k in range(10)])\n    x = x.transpose()\n    y = np.arange(500) + 100*np.random.rand(500)\n    return x,y\n\nclass CustomDataset(torch.utils.data.Dataset):\n    def __init__(self, x, y):\n        self.x = torch.tensor(x).to(torch.float32)\n        self.y = torch.tensor(y).to(torch.float32)\n        \n    def __getitem__(self, index):\n        return self.x[index], self.y[index]\n    \n    def __len__(self):\n        return len(self.x)\n    \ndef sse(x,y):\n    return sum ((x-y)**2)\n\ndef train(epochs, model, optimizer):\n    model.train()\n    for k in range(epochs):\n        train_loss = 0\n        \n        for (temp_x, temp_y) in Tr_Dataloader:\n            temp_x = temp_x.to('cuda')\n            \n            temp_y = temp_y.unsqueeze(-1)\n            temp_y = temp_y.to('cuda')\n            \n            model_out = model(temp_x)\n            loss = sse(model_out, temp_y)\n            train_loss += loss[0].item()\n            \n            loss.backward()\n            optimizer.step()\n            model.zero_grad()\n            \n        print('epoch', k, '| train loss', train_loss)\n    print('---')\n    return train_loss, model, optimizer\n    \ndef save(path, model, optimizer):\n    Out_Dict = {}\n    Out_Dict['model_state_dict'] = model.state_dict()\n    Out_Dict['optimizer_state_dict'] = optimizer.state_dict()\n    Out_Dict['Numpy_Random_State'] = np.random.get_state()\n    Out_Dict['Torch_Random_State'] = torch.get_rng_state()\n    torch.save(Out_Dict, path)\n    \ndef load(path, model, optimizer):\n    In_Dict = torch.load(path)\n        \n    model.load_state_dict(In_Dict['model_state_dict'])\n    \n    # optimizer = torch.optim.AdamW(model.parameters(), lr = 1e-3) # does not help\n    optimizer.load_state_dict(In_Dict['optimizer_state_dict'])\n\n    np.random.set_state(In_Dict['Numpy_Random_State'])\n    torch.random.set_rng_state(In_Dict['Torch_Random_State'])\n    torch.backends.cudnn.deterministic = True \n    \n    return model, optimizer\n\ndef prep_model_and_optimizer():\n    model = nn.Sequential(\n        nn.Dropout(),\n        nn.Linear(in_features = 10, out_features = 1)\n        )\n    model = model.to('cuda')\n    optimizer = torch.optim.AdamW(model.parameters(), lr = 1e-3)\n\n    return model, optimizer\n\n# %%\n# Prep random seed\nnp.random.seed(3)\ntorch.manual_seed(3)\ntorch.backends.cudnn.deterministic = True \ntorch.backends.cudnn.benchmark = False \ntorch.cuda.manual_seed(3)\n\n# Prep data\nx,y = gen_dataset()\nTr_X = x[:400]\nTr_Y = y[:400]\n\nTr_Dataset = CustomDataset(Tr_X,Tr_Y)\nTr_Dataloader = torch.utils.data.DataLoader(Tr_Dataset, batch_size = 100, shuffle=False)\n\n# Init. Train | save, train | load, train | Init, load, train\nmodel, optimizer = prep_model_and_optimizer()\n\nE1 = 10\nprint('Training Epochs:', E1)\nloss, model, optimizer = train(E1, model, optimizer)\n\nE2 = 2\nprint('Saving. Training more epochs:',E2)\nsave_path = os.path.join(os.getcwd(), 'checkpoint')\nsave(save_path, model, optimizer)\n# Load(save_path, model, optimizer) # Save then Load has no effect\nloss, model, optimizer = train(E2, model, optimizer)\n\nprint('Loading. Training more epochs:',E2)\nmodel, optimizer = load(save_path, model, optimizer)\nloss, model, optimizer = train(E2, model, optimizer)\n\nprint('re-initializing. Loading. Training more epochs:',E2)\nmodel, optimizer = prep_model_and_optimizer()\nmodel, optimizer = load(save_path, model, optimizer)\nloss, model, optimizer = train(E2, model, optimizer)\n</code></pre>\n<p>Output:</p>\n<pre><code class=\"lang-auto\">Training Epochs: 10\nepoch 0 | train loss 96417973.0\nepoch 1 | train loss 96046790.0\nepoch 2 | train loss 86500470.25\nepoch 3 | train loss 85599624.25\nepoch 4 | train loss 90644446.75\nepoch 5 | train loss 77562509.5\nepoch 6 | train loss 78515326.5\nepoch 7 | train loss 71147675.75\nepoch 8 | train loss 67646038.75\nepoch 9 | train loss 65107301.75\n/---\nSaving. Training more epochs: 2\nepoch 0 | train loss 62031824.75\nepoch 1 | train loss 57108137.25\n---\nLoading. Training more epochs: 2\nepoch 0 | train loss 67927928.5\nepoch 1 | train loss 69468169.25\n---\nre-initializing. Loading. Training more epochs: 2\nepoch 0 | train loss 66837200.0\nepoch 1 | train loss 64987717.75\n---\n</code></pre>\n<p>What’s wrong: the lower three pairs of training losses should be identical, but they aren’t.</p>\n<p>I’ve checked:</p>\n<ul>\n<li>Calling save(), then load() does not affect the training loss on subsequent epochs</li>\n<li>The Torch and NP random states loaded are the ones that are saved</li>\n<li>Eliminating the Dropout layer gives identical training outputs.</li>\n<li>Re-initializing the optimizer in Prep_Model_and_Optimizer() doesn’t change the outcome</li>\n<li>“torch.backends.cudnn.benchmark = False” doesn’t change the outcome</li>\n</ul>\n<p>Specific Question:</p>\n<ol>\n<li>Any idea what I’m doing wrong?</li>\n</ol>\n<p>More general questions:</p>\n<ol>\n<li>Do I need to re-initialize an optimizer whenever i create a model to pass the correct model parameters to it?</li>\n<li>If I want Train() to be a separate function, do I need to keep passing the model and optimizer back-and-forth, or are those passed by reference?</li>\n</ol>\n<p>Thanks!<br>\nPlaton</p>\n<p>edits: clarity and formatting</p>",12          "post_number": 1,13          "post_type": 1,14          "posts_count": 5,15          "updated_at": "2024-07-12T16:49:41.656Z",16          "reply_count": 0,17          "reply_to_post_number": null,18          "quote_count": 0,19          "incoming_link_count": 147,20          "reads": 9,21          "readers_count": 8,22          "score": 716.8,23          "yours": false,24          "topic_id": 206211,25          "topic_slug": "deterministically-training-model-with-dropout-from-checkpoint",26          "display_username": "Platon",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": 5,35          "can_edit": false,36          "can_delete": false,37          "can_recover": false,38          "can_see_hidden_post": false,39          "can_wiki": false,40          "read": true,41          "user_title": null,42          "bookmarked": false,43          "actions_summary": [],44          "moderator": false,45          "admin": false,46          "staff": false,47          "user_id": 77362,48          "hidden": false,49          "trust_level": 1,50          "deleted_at": null,51          "user_deleted": false,52          "edit_reason": null,53          "can_view_edit_history": true,54          "wiki": false,55          "post_url": "/t/deterministically-training-model-with-dropout-from-checkpoint/206211/1",56          "can_accept_answer": false,57          "can_unaccept_answer": false,58          "accepted_answer": false,59          "topic_accepted_answer": true,60          "can_vote": false61        },62        {63          "id": 448834,64          "name": "Brock Brown",65          "username": "Brock_Brown",66          "avatar_template": "/user_avatar/discuss.pytorch.org/brock_brown/{size}/71051_2.png",67          "created_at": "2024-07-12T16:31:05.081Z",68          "cooked": "<p>You’ve got to set your model to evaluation mode with <code>model.eval()</code>. <a href=\"https://stackoverflow.com/a/60018731/2121074\" rel=\"noopener nofollow ugc\">Otherwise it will keep using dropout, which introduces randomness</a>. You should also be running it without gathering gradients, you can do this under a <code>with torch.no_grad:</code> context manager. When you’re ready to train again, make sure to set your model to training mode with <code>model.train()</code>.</p>\n<pre data-code-wrap=\"python\"><code class=\"lang-python\">model.eval()\nwith torch.no_grad():\n  # do stuff with the model\nmodel.train() # go back to training mode when you're done with inference\n</code></pre>\n<p><sub>Note: This is a little nitpicky, but when naming Python functions the standard is to use lower case with words separated by underscores. Someone reading could confuse it for a class, which is usually written with the first letter of each word as capital, and not separated by underscores, KindaLikeThis. See the style guide <a href=\"https://peps.python.org/pep-0008/#function-and-variable-names\" rel=\"noopener nofollow ugc\">here</a>.</sub></p>",69          "post_number": 2,70          "post_type": 1,71          "posts_count": 5,72          "updated_at": "2024-07-12T16:38:24.295Z",73          "reply_count": 0,74          "reply_to_post_number": null,75          "quote_count": 0,76          "incoming_link_count": 2,77          "reads": 7,78          "readers_count": 6,79          "score": 26.4,80          "yours": false,81          "topic_id": 206211,82          "topic_slug": "deterministically-training-model-with-dropout-from-checkpoint",83          "display_username": "Brock Brown",84          "primary_group_name": null,85          "flair_name": null,86          "flair_url": null,87          "flair_bg_color": null,88          "flair_color": null,89          "flair_group_id": null,90          "badges_granted": [],91          "version": 2,92          "can_edit": false,93          "can_delete": false,94          "can_recover": false,95          "can_see_hidden_post": false,96          "can_wiki": false,97          "link_counts": [98            {99              "url": "https://peps.python.org/pep-0008/#function-and-variable-names",100              "internal": false,101              "reflection": false,102              "title": "PEP 8 – Style Guide for Python Code | peps.python.org",103              "clicks": 0104            },105            {106              "url": "https://stackoverflow.com/a/60018731/2121074",107              "internal": false,108              "reflection": false,109              "title": "python - What does model.eval() do in pytorch? - Stack Overflow",110              "clicks": 0111            }112          ],113          "read": true,114          "user_title": null,115          "bookmarked": false,116          "actions_summary": [117            {118              "id": 2,119              "count": 1120            }121          ],122          "moderator": false,123          "admin": false,124          "staff": false,125          "user_id": 71216,126          "hidden": false,127          "trust_level": 2,128          "deleted_at": null,129          "user_deleted": false,130          "edit_reason": null,131          "can_view_edit_history": true,132          "wiki": false,133          "post_url": "/t/deterministically-training-model-with-dropout-from-checkpoint/206211/2",134          "can_accept_answer": false,135          "can_unaccept_answer": false,136          "accepted_answer": false,137          "topic_accepted_answer": true138        },139        {140          "id": 448835,141          "name": "Platon",142          "username": "Platon",143          "avatar_template": "/user_avatar/discuss.pytorch.org/platon/{size}/71389_2.png",144          "created_at": "2024-07-12T16:40:24.124Z",145          "cooked": "<p>Thank you for your response!</p>\n<p>I’m specifically looking to deterministically train the model from a checkpoint.<br>\nAnd yes, for a given checkpoint, the outputs are consistent in evaluation mode.</p>\n<p>(I also appreciate the style feedback)</p>\n<p>I’ll adjust the phrasing and formatting of my original post.</p>",146          "post_number": 3,147          "post_type": 1,148          "posts_count": 5,149          "updated_at": "2024-07-12T16:40:24.124Z",150          "reply_count": 0,151          "reply_to_post_number": null,152          "quote_count": 0,153          "incoming_link_count": 2,154          "reads": 7,155          "readers_count": 6,156          "score": 11.4,157          "yours": false,158          "topic_id": 206211,159          "topic_slug": "deterministically-training-model-with-dropout-from-checkpoint",160          "display_username": "Platon",161          "primary_group_name": null,162          "flair_name": null,163          "flair_url": null,164          "flair_bg_color": null,165          "flair_color": null,166          "flair_group_id": null,167          "badges_granted": [],168          "version": 1,169          "can_edit": false,170          "can_delete": false,171          "can_recover": false,172          "can_see_hidden_post": false,173          "can_wiki": false,174          "read": true,175          "user_title": null,176          "bookmarked": false,177          "actions_summary": [],178          "moderator": false,179          "admin": false,180          "staff": false,181          "user_id": 77362,182          "hidden": false,183          "trust_level": 1,184          "deleted_at": null,185          "user_deleted": false,186          "edit_reason": null,187          "can_view_edit_history": true,188          "wiki": false,189          "post_url": "/t/deterministically-training-model-with-dropout-from-checkpoint/206211/3",190          "can_accept_answer": false,191          "can_unaccept_answer": false,192          "accepted_answer": false,193          "topic_accepted_answer": true194        },195        {196          "id": 448837,197          "name": "Platon",198          "username": "Platon",199          "avatar_template": "/user_avatar/discuss.pytorch.org/platon/{size}/71389_2.png",200          "created_at": "2024-07-12T16:55:02.856Z",201          "cooked": "<p>Found it!</p>\n<p>I needed to save and load the cuda RNG state.</p>\n<pre><code class=\"lang-auto\">#On save:\nOut_Dict['CUDA_Random_State'] = torch.cuda.get_rng_state()\n# On load:\ntorch.cuda.set_rng_state(In_Dict['CUDA_Random_State'])\n</code></pre>\n<p>Also:</p>\n<ul>\n<li>initializing torch.cuda.manual_seed() manually is unnecessary - it is set by torch.manual_seed()</li>\n<li>If you re-initialize a model, you <em>do</em> need to assign it’s parameters to the optimizer.</li>\n</ul>\n<p>edits: clarity, additional information</p>",202          "post_number": 4,203          "post_type": 1,204          "posts_count": 5,205          "updated_at": "2024-07-12T17:36:08.881Z",206          "reply_count": 0,207          "reply_to_post_number": null,208          "quote_count": 0,209          "incoming_link_count": 4,210          "reads": 7,211          "readers_count": 6,212          "score": 51.4,213          "yours": false,214          "topic_id": 206211,215          "topic_slug": "deterministically-training-model-with-dropout-from-checkpoint",216          "display_username": "Platon",217          "primary_group_name": null,218          "flair_name": null,219          "flair_url": null,220          "flair_bg_color": null,221          "flair_color": null,222          "flair_group_id": null,223          "badges_granted": [],224          "version": 3,225          "can_edit": false,226          "can_delete": false,227          "can_recover": false,228          "can_see_hidden_post": false,229          "can_wiki": false,230          "read": true,231          "user_title": null,232          "bookmarked": false,233          "actions_summary": [234            {235              "id": 2,236              "count": 2237            }238          ],239          "moderator": false,240          "admin": false,241          "staff": false,242          "user_id": 77362,243          "hidden": false,244          "trust_level": 1,245          "deleted_at": null,246          "user_deleted": false,247          "edit_reason": null,248          "can_view_edit_history": true,249          "wiki": false,250          "post_url": "/t/deterministically-training-model-with-dropout-from-checkpoint/206211/4",251          "can_accept_answer": false,252          "can_unaccept_answer": false,253          "accepted_answer": true,254          "topic_accepted_answer": true255        },256        {257          "id": 448838,258          "name": "Brock Brown",259          "username": "Brock_Brown",260          "avatar_template": "/user_avatar/discuss.pytorch.org/brock_brown/{size}/71051_2.png",261          "created_at": "2024-07-12T17:03:05.472Z",262          "cooked": "<p>Oops, misunderstood your question. Nice job figuring it out though. I didn’t know there was a CUDA random state to save for deterministic training of non-deterministic models.</p>",263          "post_number": 5,264          "post_type": 1,265          "posts_count": 5,266          "updated_at": "2024-07-12T17:03:05.472Z",267          "reply_count": 0,268          "reply_to_post_number": null,269          "quote_count": 0,270          "incoming_link_count": 2,271          "reads": 5,272          "readers_count": 4,273          "score": 26.0,274          "yours": false,275          "topic_id": 206211,276          "topic_slug": "deterministically-training-model-with-dropout-from-checkpoint",277          "display_username": "Brock Brown",278          "primary_group_name": null,279          "flair_name": null,280          "flair_url": null,281          "flair_bg_color": null,282          "flair_color": null,283          "flair_group_id": null,284          "badges_granted": [],285          "version": 1,286          "can_edit": false,287          "can_delete": false,288          "can_recover": false,289          "can_see_hidden_post": false,290          "can_wiki": false,291          "read": true,292          "user_title": null,293          "bookmarked": false,294          "actions_summary": [295            {296              "id": 2,297              "count": 1298            }299          ],300          "moderator": false,301          "admin": false,302          "staff": false,303          "user_id": 71216,304          "hidden": false,305          "trust_level": 2,306          "deleted_at": null,307          "user_deleted": false,308          "edit_reason": null,309          "can_view_edit_history": true,310          "wiki": false,311          "post_url": "/t/deterministically-training-model-with-dropout-from-checkpoint/206211/5",312          "can_accept_answer": false,313          "can_unaccept_answer": false,314          "accepted_answer": false,315          "topic_accepted_answer": true316        }317      ],318      "stream": [319        448828,320        448834,321        448835,322        448837,323        448838324      ]325    },326    "timeline_lookup": [327      [328        1,329        470330      ]331    ],332    "suggested_topics": [333      {334        "fancy_title": "Uint64 tensors do not wraparound on overflow",335        "id": 213926,336        "title": "Uint64 tensors do not wraparound on overflow",337        "slug": "uint64-tensors-do-not-wraparound-on-overflow",338        "posts_count": 3,339        "reply_count": 1,340        "highest_post_number": 3,341        "image_url": null,342        "created_at": "2024-12-06T20:49:54.790Z",343        "last_posted_at": "2024-12-10T01:59:00.010Z",344        "bumped": true,345        "bumped_at": "2024-12-10T01:59:00.010Z",346        "archetype": "regular",347        "unseen": false,348        "pinned": false,349        "unpinned": null,350        "visible": true,351        "closed": false,352        "archived": false,353        "bookmarked": null,354        "liked": null,355        "tags_descriptions": {},356        "like_count": 0,357        "views": 204,358        "category_id": 1,359        "featured_link": null,360        "has_accepted_answer": true,361        "posters": [362          {363            "extras": "latest",364            "description": "Original Poster, Most Recent Poster",365            "user": {366              "id": 31035,367              "username": "kmaeng",368              "name": "",369              "avatar_template": "/user_avatar/discuss.pytorch.org/kmaeng/{size}/23707_2.png",370              "trust_level": 1371            }372          },373          {374            "extras": null,375            "description": "Frequent Poster, Accepted Answer",376            "user": {377              "id": 18088,378              "username": "KFrank",379              "name": "K. Frank",380              "avatar_template": "/letter_avatar_proxy/v4/letter/k/ecb155/{size}.png",381              "trust_level": 2382            }383          }384        ]385      },386      {387        "fancy_title": "torch.OutOfMemoryError Needing Help",388        "id": 215383,389        "title": "torch.OutOfMemoryError Needing Help",390        "slug": "torch-outofmemoryerror-needing-help",391        "posts_count": 2,392        "reply_count": 0,393        "highest_post_number": 2,394        "image_url": "https://discuss.pytorch.org/uploads/default/original/3X/7/1/7177b82c5c3fa982bd5bcb76e82413cb1a9895ee.png",395        "created_at": "2025-01-14T16:13:00.335Z",396        "last_posted_at": "2025-01-14T20:48:39.772Z",397        "bumped": true,398        "bumped_at": "2025-01-14T20:48:39.772Z",399        "archetype": "regular",400        "unseen": false,401        "pinned": false,402        "unpinned": null,403        "visible": true,404        "closed": false,405        "archived": false,406        "bookmarked": null,407        "liked": null,408        "tags_descriptions": {},409        "like_count": 0,410        "views": 72,411        "category_id": 1,412        "featured_link": null,413        "has_accepted_answer": false,414        "posters": [415          {416            "extras": null,417            "description": "Original Poster",418            "user": {419              "id": 82088,420              "username": "meditrust",421              "name": "Yohan Azoulay",422              "avatar_template": "/letter_avatar_proxy/v4/letter/m/f1d935/{size}.png",423              "trust_level": 0424            }425          },426          {427            "extras": "latest",428            "description": "Most Recent Poster",429            "user": {430              "id": 3534,431              "username": "ptrblck",432              "name": "",433              "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",434              "admin": true,435              "moderator": true,436              "trust_level": 2437            }438          }439        ]440      },441      {442        "fancy_title": "How will torch.cuda.Event `elapsed_time` method behave without explicit torch.cuda.synchronize?",443        "id": 216163,444        "title": "How will torch.cuda.Event `elapsed_time` method behave without explicit torch.cuda.synchronize?",445        "slug": "how-will-torch-cuda-event-elapsed-time-method-behave-without-explicit-torch-cuda-synchronize",446        "posts_count": 4,447        "reply_count": 2,448        "highest_post_number": 4,449        "image_url": null,450        "created_at": "2025-02-03T05:55:21.578Z",451        "last_posted_at": "2025-05-03T00:10:15.451Z",452        "bumped": true,453        "bumped_at": "2025-05-03T00:10:15.451Z",454        "archetype": "regular",455        "unseen": false,456        "pinned": false,457        "unpinned": null,458        "visible": true,459        "closed": false,460        "archived": false,461        "bookmarked": null,462        "liked": null,463        "tags_descriptions": {},464        "like_count": 0,465        "views": 170,466        "category_id": 1,467        "featured_link": null,468        "has_accepted_answer": false,469        "posters": [470          {471            "extras": "latest",472            "description": "Original Poster, Most Recent Poster",473            "user": {474              "id": 16086,475              "username": "justinliu",476              "name": "Justin Liu",477              "avatar_template": "/letter_avatar_proxy/v4/letter/j/f07891/{size}.png",478              "trust_level": 1479            }480          },481          {482            "extras": null,483            "description": "Frequent Poster",484            "user": {485              "id": 3534,486              "username": "ptrblck",487              "name": "",488              "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",489              "admin": true,490              "moderator": true,491              "trust_level": 2492            }493          }494        ]495      },496      {497        "fancy_title": "Dynamic shapes and PyTorch",498        "id": 214929,499        "title": "Dynamic shapes and PyTorch",500        "slug": "dynamic-shapes-and-pytorch",501        "posts_count": 3,502        "reply_count": 0,503        "highest_post_number": 3,504        "image_url": null,505        "created_at": "2025-01-03T10:34:36.679Z",506        "last_posted_at": "2025-01-03T21:48:49.713Z",507        "bumped": true,508        "bumped_at": "2025-01-03T21:48:49.713Z",509        "archetype": "regular",510        "unseen": false,511        "pinned": false,512        "unpinned": null,513        "visible": true,514        "closed": false,515        "archived": false,516        "bookmarked": null,517        "liked": null,518        "tags_descriptions": {},519        "like_count": 1,520        "views": 252,521        "category_id": 1,522        "featured_link": null,523        "has_accepted_answer": false,524        "posters": [525          {526            "extras": null,527            "description": "Original Poster",528            "user": {529              "id": 81854,530              "username": "Mark_Fanter",531              "name": "Mark Fanter",532              "avatar_template": "/user_avatar/discuss.pytorch.org/mark_fanter/{size}/74876_2.png",533              "trust_level": 0534            }535          },536          {537            "extras": null,538            "description": "Frequent Poster",539            "user": {540              "id": 41396,541              "username": "soulitzer",542              "name": "",543              "avatar_template": "/letter_avatar_proxy/v4/letter/s/839c29/{size}.png",544              "trust_level": 2545            }546          },547          {548            "extras": "latest",549            "description": "Most Recent Poster",550            "user": {551              "id": 18088,552              "username": "KFrank",553              "name": "K. Frank",554              "avatar_template": "/letter_avatar_proxy/v4/letter/k/ecb155/{size}.png",555              "trust_level": 2556            }557          }558        ]559      },560      {561        "fancy_title": "Nuclei segmentation with variable nuclei classes per patch/image",562        "id": 218860,563        "title": "Nuclei segmentation with variable nuclei classes per patch/image",564        "slug": "nuclei-segmentation-with-variable-nuclei-classes-per-patch-image",565        "posts_count": 7,566        "reply_count": 5,567        "highest_post_number": 7,568        "image_url": null,569        "created_at": "2025-04-08T07:06:50.516Z",570        "last_posted_at": "2025-04-10T11:30:24.891Z",571        "bumped": true,572        "bumped_at": "2025-04-10T11:30:24.891Z",573        "archetype": "regular",574        "unseen": false,575        "pinned": false,576        "unpinned": null,577        "visible": true,578        "closed": false,579        "archived": false,580        "bookmarked": null,581        "liked": null,582        "tags_descriptions": {},583        "like_count": 1,584        "views": 51,585        "category_id": 1,586        "featured_link": null,587        "has_accepted_answer": true,588        "posters": [589          {590            "extras": "latest",591            "description": "Original Poster, Most Recent Poster",592            "user": {593              "id": 46609,594              "username": "kountaydwivedi",595              "name": "Kountay Dwivedi",596              "avatar_template": "/user_avatar/discuss.pytorch.org/kountaydwivedi/{size}/39666_2.png",597              "trust_level": 1598            }599          },600          {601            "extras": null,602            "description": "Frequent Poster, Accepted Answer",603            "user": {604              "id": 18088,605              "username": "KFrank",606              "name": "K. Frank",607              "avatar_template": "/letter_avatar_proxy/v4/letter/k/ecb155/{size}.png",608              "trust_level": 2609            }610          }611        ]612      }613    ],614    "tags_descriptions": {},615    "fancy_title": "Deterministically training model with dropout from checkpoint",616    "id": 206211,617    "title": "Deterministically training model with dropout from checkpoint",618    "posts_count": 5,619    "created_at": "2024-07-12T15:46:31.844Z",620    "views": 349,621    "reply_count": 0,622    "like_count": 4,623    "last_posted_at": "2024-07-12T17:03:05.472Z",624    "visible": true,625    "closed": false,626    "archived": false,627    "has_summary": false,628    "archetype": "regular",629    "slug": "deterministically-training-model-with-dropout-from-checkpoint",630    "category_id": 1,631    "word_count": 1022,632    "deleted_at": null,633    "user_id": 77362,634    "featured_link": null,635    "pinned_globally": false,636    "pinned_at": null,637    "pinned_until": null,638    "image_url": null,639    "slow_mode_seconds": 0,640    "draft": null,641    "draft_key": "topic_206211",642    "draft_sequence": null,643    "unpinned": null,644    "pinned": false,645    "current_post_number": 1,646    "highest_post_number": 5,647    "deleted_by": null,648    "actions_summary": [649      {650        "id": 4,651        "count": 0,652        "hidden": false,653        "can_act": false654      },655      {656        "id": 8,657        "count": 0,658        "hidden": false,659        "can_act": false660      },661      {662        "id": 10,663        "count": 0,664        "hidden": false,665        "can_act": false666      },667      {668        "id": 7,669        "count": 0,670        "hidden": false,671        "can_act": false672      }673    ],674    "chunk_size": 20,675    "bookmarked": false,676    "topic_timer": null,677    "message_bus_last_id": 0,678    "participant_count": 2,679    "show_read_indicator": false,680    "thumbnails": null,681    "slow_mode_enabled_until": null,682    "accepted_answer": {683      "post_number": 4,684      "username": "Platon",685      "name": "Platon",686      "excerpt": "Found it! \nI needed to save and load the cuda RNG state. \n#On save:\nOut_Dict[&#39;CUDA_Random_State&#39;] = torch.cuda.get_rng_state()\n# On load:\ntorch.cuda.set_rng_state(In_Dict[&#39;CUDA_Random_State&#39;])\n\nAlso: \n\ninitializing torch.cuda.manual_seed() manually is unnecessary - it is set by torch.manual_seed()\nI&hellip;"687    },688    "can_vote": false,689    "vote_count": 0,690    "user_voted": false,691    "discourse_zendesk_plugin_zendesk_id": null,692    "discourse_zendesk_plugin_zendesk_url": "https://your-url.zendesk.com/agent/tickets/",693    "details": {694      "can_edit": false,695      "notification_level": 1,696      "participants": [697        {698          "id": 77362,699          "username": "Platon",700          "name": "Platon",701          "avatar_template": "/user_avatar/discuss.pytorch.org/platon/{size}/71389_2.png",702          "post_count": 3,703          "primary_group_name": null,704          "flair_name": null,705          "flair_url": null,706          "flair_color": null,707          "flair_bg_color": null,708          "flair_group_id": null,709          "trust_level": 1710        },711        {712          "id": 71216,713          "username": "Brock_Brown",714          "name": "Brock Brown",715          "avatar_template": "/user_avatar/discuss.pytorch.org/brock_brown/{size}/71051_2.png",716          "post_count": 2,717          "primary_group_name": null,718          "flair_name": null,719          "flair_url": null,720          "flair_color": null,721          "flair_bg_color": null,722          "flair_group_id": null,723          "trust_level": 2724        }725      ],726      "created_by": {727        "id": 77362,728        "username": "Platon",729        "name": "Platon",730        "avatar_template": "/user_avatar/discuss.pytorch.org/platon/{size}/71389_2.png"731      },732      "last_poster": {733        "id": 71216,734        "username": "Brock_Brown",735        "name": "Brock Brown",736        "avatar_template": "/user_avatar/discuss.pytorch.org/brock_brown/{size}/71051_2.png"737      }738    },739    "bookmarks": []740  },741  {742    "post_stream": {743      "posts": [744        {745          "id": 448696,746          "name": "Giustiniano",747          "username": "Giustiniano",748          "avatar_template": "/user_avatar/discuss.pytorch.org/giustiniano/{size}/71360_2.png",749          "created_at": "2024-07-11T10:18:54.946Z",750          "cooked": "<p>Hello,</p>\n<p>I am trying to follow <a href=\"https://github.com/pytorch/executorch/blob/main/examples/models/llama2/README.md#step-1-setup\" rel=\"noopener nofollow ugc\">the instructions</a> to run llama3-instruct with executorch, but I am encountering an error when running <code>install_requirements.sh --pybind xnnpack</code><br>\nIt seems that it fails to build <code>kernels/quantized/libquantized_ops_aot_lib.so</code> so it cannot link it.<br>\nUnfortunately, the script only reports the error, but does not say much as to why.<br>\nI am running Ubuntu 22.04 on Azure</p>\n<p>I tried to run this on a local ubuntu 22.04 running with hyper-v and it works, but then I don’t have enough RAM to export the model</p>\n<p>Please let me know if you need any further information, thanks</p>\n<pre><code class=\"lang-auto\"> [ 88%] Building CXX object kernels/quantized/CMakeFiles/quantized_ops_aot_lib.dir/cpu/op_quantize.cpp.o\n  [ 88%] Building CXX object kernels/quantized/CMakeFiles/quantized_ops_aot_lib.dir/__/portable/cpu/util/reduce_util.cpp.o\n  [ 88%] Building CXX object kernels/quantized/CMakeFiles/quantized_ops_aot_lib.dir/__/__/runtime/core/exec_aten/util/tensor_util_aten.cpp.o\n  [ 88%] Linking CXX shared library libquantized_ops_aot_lib.so\n  /usr/bin/ld: cannot find dynamic_lookup: No such file or directory\n  collect2: error: ld returned 1 exit status\n  gmake[3]: *** [kernels/quantized/CMakeFiles/quantized_ops_aot_lib.dir/build.make:391: kernels/quantized/libquantized_ops_aot_lib.so] Error 1\n</code></pre>",751          "post_number": 1,752          "post_type": 1,753          "posts_count": 10,754          "updated_at": "2024-07-11T10:18:54.946Z",755          "reply_count": 0,756          "reply_to_post_number": null,757          "quote_count": 0,758          "incoming_link_count": 209,759          "reads": 14,760          "readers_count": 13,761          "score": 1047.8,762          "yours": false,763          "topic_id": 206135,764          "topic_slug": "error-when-building-executorch-on-libquantized",765          "display_username": "Giustiniano",766          "primary_group_name": null,767          "flair_name": null,768          "flair_url": null,769          "flair_bg_color": null,770          "flair_color": null,771          "flair_group_id": null,772          "badges_granted": [],773          "version": 1,774          "can_edit": false,775          "can_delete": false,776          "can_recover": false,777          "can_see_hidden_post": false,778          "can_wiki": false,779          "link_counts": [780            {781              "url": "https://github.com/pytorch/executorch/blob/main/examples/models/llama2/README.md#step-1-setup",782              "internal": false,783              "reflection": false,784              "title": "executorch/examples/models/llama2/README.md at main · pytorch/executorch · GitHub",785              "clicks": 0786            }787          ],788          "read": true,789          "user_title": null,790          "bookmarked": false,791          "actions_summary": [],792          "moderator": false,793          "admin": false,794          "staff": false,795          "user_id": 77323,796          "hidden": false,797          "trust_level": 0,798          "deleted_at": null,799          "user_deleted": false,800          "edit_reason": null,801          "can_view_edit_history": true,802          "wiki": false,803          "post_url": "/t/error-when-building-executorch-on-libquantized/206135/1",804          "can_accept_answer": false,805          "can_unaccept_answer": false,806          "accepted_answer": false,807          "topic_accepted_answer": null,808          "can_vote": false809        },810        {811          "id": 448755,812          "name": "",813          "username": "ptrblck",814          "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",815          "created_at": "2024-07-11T22:52:57.645Z",816          "cooked": "<p>Do you see any other error messages further up in the logs?</p>",817          "post_number": 2,818          "post_type": 1,819          "posts_count": 10,820          "updated_at": "2024-07-11T22:52:57.645Z",821          "reply_count": 0,822          "reply_to_post_number": null,823          "quote_count": 0,824          "incoming_link_count": 1,825          "reads": 14,826          "readers_count": 13,827          "score": 7.8,828          "yours": false,829          "topic_id": 206135,830          "topic_slug": "error-when-building-executorch-on-libquantized",831          "display_username": "",832          "primary_group_name": null,833          "flair_name": null,834          "flair_url": null,835          "flair_bg_color": null,836          "flair_color": null,837          "flair_group_id": null,838          "badges_granted": [],839          "version": 1,840          "can_edit": false,841          "can_delete": false,842          "can_recover": false,843          "can_see_hidden_post": false,844          "can_wiki": false,845          "read": true,846          "user_title": "",847          "bookmarked": false,848          "actions_summary": [],849          "moderator": true,850          "admin": true,851          "staff": true,852          "user_id": 3534,853          "hidden": false,854          "trust_level": 2,855          "deleted_at": null,856          "user_deleted": false,857          "edit_reason": null,858          "can_view_edit_history": true,859          "wiki": false,860          "post_url": "/t/error-when-building-executorch-on-libquantized/206135/2",861          "can_accept_answer": false,862          "can_unaccept_answer": false,863          "accepted_answer": false,864          "topic_accepted_answer": null865        },866        {867          "id": 448776,868          "name": "Giustiniano",869          "username": "Giustiniano",870          "avatar_template": "/user_avatar/discuss.pytorch.org/giustiniano/{size}/71360_2.png",871          "created_at": "2024-07-12T05:05:22.242Z",872          "cooked": "<p>I can see the following warnings, don’t know if they are relevant</p>\n<pre><code class=\"lang-auto\">[ 44%] Building C object backends/xnnpack/third-party/XNNPACK/CMakeFiles/microkernels-prod.dir/src/amalgam/gen/avx512vnnigfni.c.o\n  In file included from /home/enrico/executorch/executorch/../executorch/runtime/platform/assert.h:13,\n                   from /home/enrico/executorch/executorch/../executorch/runtime/core/array_ref.h:32,\n                   from /home/enrico/executorch/executorch/../executorch/runtime/core/exec_aten/exec_aten.h:32,\n                   from /home/enrico/executorch/executorch/../executorch/extension/aten_util/aten_bridge.h:11,\n                   from /home/enrico/executorch/executorch/extension/aten_util/aten_bridge.cpp:9:\n  /home/enrico/executorch/executorch/extension/aten_util/aten_bridge.cpp: In function ‘void torch::util::{anonymous}::check_tensor_meta(const at::Tensor&amp;, const Tensor&amp;)’:\n  /home/enrico/executorch/executorch/../executorch/runtime/platform/assert.h:24:7: warning: format ‘%hhd’ expects argument of type ‘int’, but argument 9 has type ‘torch::executor::ScalarType’ [-Wformat=]\n     24 |       \"In function %s(), assert failed\" _format, \\\n  /home/enrico/executorch/executorch/../executorch/runtime/platform/log.h:161:11: note: in definition of macro ‘ET_LOG’\n    161 |           _format,                                                            \\\n        |           ^~~~~~~\n  /home/enrico/executorch/executorch/../executorch/runtime/platform/assert.h:39:7: note: in expansion of macro ‘ET_ASSERT_MESSAGE_EMIT’\n     39 |       ET_ASSERT_MESSAGE_EMIT(\" (%s): \" _format, #_cond, ##__VA_ARGS__); \\\n        |       ^~~~~~~~~~~~~~~~~~~~~~\n  /home/enrico/executorch/executorch/extension/aten_util/aten_bridge.cpp:57:3: note: in expansion of macro ‘ET_CHECK_MSG’\n     57 |   ET_CHECK_MSG(\n        |   ^~~~~~~~~~~~\n  /home/enrico/executorch/executorch/extension/aten_util/aten_bridge.cpp:59:31: note: format string is defined here\n     59 |       \"dtypes dont match a %hhd vs. b %hhd\",\n        |                            ~~~^\n        |                               |\n        |                               int\n  In file included from /home/enrico/executorch/executorch/../executorch/runtime/platform/assert.h:13,\n                   from /home/enrico/executorch/executorch/../executorch/runtime/core/array_ref.h:32,\n                   from /home/enrico/executorch/executorch/../executorch/runtime/core/exec_aten/exec_aten.h:32,\n                   from /home/enrico/executorch/executorch/../executorch/extension/aten_util/aten_bridge.h:11,\n                   from /home/enrico/executorch/executorch/extension/aten_util/aten_bridge.cpp:9:\n  /home/enrico/executorch/executorch/../executorch/runtime/platform/assert.h:24:7: warning: format ‘%hhd’ expects argument of type ‘int’, but argument 10 has type ‘torch::executor::ScalarType’ [-Wformat=]\n     24 |       \"In function %s(), assert failed\" _format, \\\n  /home/enrico/executorch/executorch/../executorch/runtime/platform/log.h:161:11: note: in definition of macro ‘ET_LOG’\n    161 |           _format,                                                            \\\n        |           ^~~~~~~\n  /home/enrico/executorch/executorch/../executorch/runtime/platform/assert.h:39:7: note: in expansion of macro ‘ET_ASSERT_MESSAGE_EMIT’\n     39 |       ET_ASSERT_MESSAGE_EMIT(\" (%s): \" _format, #_cond, ##__VA_ARGS__); \\\n        |       ^~~~~~~~~~~~~~~~~~~~~~\n  /home/enrico/executorch/executorch/extension/aten_util/aten_bridge.cpp:57:3: note: in expansion of macro ‘ET_CHECK_MSG’\n     57 |   ET_CHECK_MSG(\n        |   ^~~~~~~~~~~~\n  /home/enrico/executorch/executorch/extension/aten_util/aten_bridge.cpp:59:42: note: format string is defined here\n     59 |       \"dtypes dont match a %hhd vs. b %hhd\",\n        |                                       ~~~^\n        |                                          |\n        |                                          int\n</code></pre>\n<p>and</p>\n<pre><code class=\"lang-auto\"> [ 55%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_amin.cpp.o\n  /home/enrico/executorch/executorch/util/read_file.cpp: In function ‘torch::executor::Error torch::executor::util::read_file_content(const char*, std::shared_ptr&lt;char&gt;*, size_t*)’:\n  /home/enrico/executorch/executorch/util/read_file.cpp:49:8: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]\n     49 |   fread(ptr.get(), fileLen, 1, file);\n        |   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n</code></pre>\n<p>and</p>\n<pre><code class=\"lang-auto\"> [ 55%] Building CXX object extension/data_loader/CMakeFiles/extension_data_loader.dir/mmap_data_loader.cpp.o\n  In file included from /home/enrico/executorch/executorch/extension/data_loader/../../../executorch/runtime/core/error.h:18,\n                   from /home/enrico/executorch/executorch/extension/data_loader/../../../executorch/runtime/core/result.h:19,\n                   from /home/enrico/executorch/executorch/extension/data_loader/../../../executorch/runtime/core/data_loader.h:14,\n                   from /home/enrico/executorch/executorch/extension/data_loader/../../../executorch/extension/data_loader/mmap_data_loader.h:11,\n                   from /home/enrico/executorch/executorch/extension/data_loader/mmap_data_loader.cpp:9:\n  /home/enrico/executorch/executorch/extension/data_loader/mmap_data_loader.cpp: In function ‘void torch::executor::util::{anonymous}::MunmapSegment(void*, void*, size_t)’:\n  /home/enrico/executorch/executorch/extension/data_loader/mmap_data_loader.cpp:140:9: warning: too many arguments for format [-Wformat-extra-args]\n    140 |         \"munmap(0x%zx, %zu) failed: %s (ignored)\",\n        |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n  /home/enrico/executorch/executorch/extension/data_loader/../../../executorch/runtime/platform/log.h:161:11: note: in definition of macro ‘ET_LOG’\n    161 |           _format,                                                            \\\n        |           ^~~~~~~\n</code></pre>",873          "post_number": 3,874          "post_type": 1,875          "posts_count": 10,876          "updated_at": "2024-07-12T05:14:01.739Z",877          "reply_count": 1,878          "reply_to_post_number": null,879          "quote_count": 0,880          "incoming_link_count": 1,881          "reads": 15,882          "readers_count": 14,883          "score": 13.0,884          "yours": false,885          "topic_id": 206135,886          "topic_slug": "error-when-building-executorch-on-libquantized",887          "display_username": "Giustiniano",888          "primary_group_name": null,889          "flair_name": null,890          "flair_url": null,891          "flair_bg_color": null,892          "flair_color": null,893          "flair_group_id": null,894          "badges_granted": [],895          "version": 2,896          "can_edit": false,897          "can_delete": false,898          "can_recover": false,899          "can_see_hidden_post": false,900          "can_wiki": false,901          "read": true,902          "user_title": null,903          "bookmarked": false,904          "actions_summary": [],905          "moderator": false,906          "admin": false,907          "staff": false,908          "user_id": 77323,909          "hidden": false,910          "trust_level": 0,911          "deleted_at": null,912          "user_deleted": false,913          "edit_reason": null,914          "can_view_edit_history": true,915          "wiki": false,916          "post_url": "/t/error-when-building-executorch-on-libquantized/206135/3",917          "can_accept_answer": false,918          "can_unaccept_answer": false,919          "accepted_answer": false,920          "topic_accepted_answer": null921        },922        {923          "id": 448802,924          "name": "",925          "username": "ptrblck",926          "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",927          "created_at": "2024-07-12T12:32:51.394Z",928          "cooked": "<p>No, warnings won’t let the code fail.</p>",929          "post_number": 4,930          "post_type": 1,931          "posts_count": 10,932          "updated_at": "2024-07-12T12:32:51.394Z",933          "reply_count": 1,934          "reply_to_post_number": 3,935          "quote_count": 0,936          "incoming_link_count": 0,937          "reads": 13,938          "readers_count": 12,939          "score": 7.6,940          "yours": false,941          "topic_id": 206135,942          "topic_slug": "error-when-building-executorch-on-libquantized",943          "display_username": "",944          "primary_group_name": null,945          "flair_name": null,946          "flair_url": null,947          "flair_bg_color": null,948          "flair_color": null,949          "flair_group_id": null,950          "badges_granted": [],951          "version": 1,952          "can_edit": false,953          "can_delete": false,954          "can_recover": false,955          "can_see_hidden_post": false,956          "can_wiki": false,957          "read": true,958          "user_title": "",959          "reply_to_user": {960            "id": 77323,961            "username": "Giustiniano",962            "name": "Giustiniano",963            "avatar_template": "/user_avatar/discuss.pytorch.org/giustiniano/{size}/71360_2.png"964          },965          "bookmarked": false,966          "actions_summary": [],967          "moderator": true,968          "admin": true,969          "staff": true,970          "user_id": 3534,971          "hidden": false,972          "trust_level": 2,973          "deleted_at": null,974          "user_deleted": false,975          "edit_reason": null,976          "can_view_edit_history": true,977          "wiki": false,978          "post_url": "/t/error-when-building-executorch-on-libquantized/206135/4",979          "can_accept_answer": false,980          "can_unaccept_answer": false,981          "accepted_answer": false,982          "topic_accepted_answer": null983        },984        {985          "id": 448806,986          "name": "vjml",987          "username": "vjml",988          "avatar_template": "/user_avatar/discuss.pytorch.org/vjml/{size}/71382_2.png",989          "created_at": "2024-07-12T12:45:06.736Z",990          "cooked": "<p>I get the same error as the original poster. I do get cmake deprecation warnings in the logs, but no errors before this linking error.</p>\n<p>[ 90%] Built target portable_kernels<br>\n[ 90%] Generating selected_operators.yaml for portable_ops_lib<br>\n[ 90%] Linking CXX shared library libquantized_ops_aot_lib.so<br>\nc++: error: dynamic_lookup: No such file or directory<br>\nmake[3]: *** [kernels/quantized/CMakeFiles/quantized_ops_aot_lib.dir/build.make:391: kernels/quantized/libquantized_ops_aot_lib.so] Error 1<br>\nmake[2]: *** [CMakeFiles/Makefile2:1080: kernels/quantized/CMakeFiles/quantized_ops_aot_lib.dir/all] Error 2<br>\nmake[2]: *** Waiting for unfinished jobs…<br>\n[100%] Generating code for kernel registration<br>\n[100%] Building CXX object kernels/portable/CMakeFiles/portable_ops_lib.dir/portable_ops_lib/RegisterCodegenUnboxedKernelsEverything.cpp.o<br>\n[100%] Linking CXX static library libportable_ops_lib.a<br>\n[100%] Built target portable_ops_lib<br>\nmake[1]: *** [CMakeFiles/Makefile2:733: CMakeFiles/portable_lib.dir/rule] Error 2<br>\nmake: *** [Makefile:234: portable_lib] Error 2<br>\nerror: command ‘/home/xxxx/miniconda3/envs/executorch_llama/bin/cmake’ failed with exit code 2<br>\nerror: subprocess-exited-with-error</p>\n<p>× Building wheel for executorch (pyproject.toml) did not run successfully.<br>\n│ exit code: 1<br>\n╰─&gt; See above for output.</p>\n<p>note: This error originates from a subprocess, and is likely not a problem with pip.</p>",991          "post_number": 5,992          "post_type": 1,993          "posts_count": 10,994          "updated_at": "2024-07-12T12:45:06.736Z",995          "reply_count": 1,996          "reply_to_post_number": 4,997          "quote_count": 0,998          "incoming_link_count": 2,999          "reads": 14,1000          "readers_count": 13,1001          "score": 17.8,1002          "yours": false,1003          "topic_id": 206135,1004          "topic_slug": "error-when-building-executorch-on-libquantized",1005          "display_username": "vjml",1006          "primary_group_name": null,1007          "flair_name": null,1008          "flair_url": null,1009          "flair_bg_color": null,1010          "flair_color": null,1011          "flair_group_id": null,1012          "badges_granted": [],1013          "version": 1,1014          "can_edit": false,1015          "can_delete": false,1016          "can_recover": false,1017          "can_see_hidden_post": false,1018          "can_wiki": false,1019          "read": true,1020          "user_title": null,1021          "reply_to_user": {1022            "id": 3534,1023            "username": "ptrblck",1024            "name": "",1025            "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png"1026          },1027          "bookmarked": false,1028          "actions_summary": [],1029          "moderator": false,1030          "admin": false,1031          "staff": false,1032          "user_id": 77355,1033          "hidden": false,1034          "trust_level": 0,1035          "deleted_at": null,1036          "user_deleted": false,1037          "edit_reason": null,1038          "can_view_edit_history": true,1039          "wiki": false,1040          "post_url": "/t/error-when-building-executorch-on-libquantized/206135/5",1041          "can_accept_answer": false,1042          "can_unaccept_answer": false,1043          "accepted_answer": false,1044          "topic_accepted_answer": null1045        },1046        {1047          "id": 448812,1048          "name": "",1049          "username": "ptrblck",1050          "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",1051          "created_at": "2024-07-12T13:54:38.694Z",1052          "cooked": "<p>You would also need to check for previous errors pointing to a failure related to <code>dynamic_lookup</code>. If you have trouble isolating it, feel free to upload the full log into e.g. a Gist.</p>",1053          "post_number": 6,1054          "post_type": 1,1055          "posts_count": 10,1056          "updated_at": "2024-07-12T13:54:38.694Z",1057          "reply_count": 0,1058          "reply_to_post_number": 5,1059          "quote_count": 0,1060          "incoming_link_count": 1,1061          "reads": 12,1062          "readers_count": 11,1063          "score": 7.4,1064          "yours": false,1065          "topic_id": 206135,1066          "topic_slug": "error-when-building-executorch-on-libquantized",1067          "display_username": "",1068          "primary_group_name": null,1069          "flair_name": null,1070          "flair_url": null,1071          "flair_bg_color": null,1072          "flair_color": null,1073          "flair_group_id": null,1074          "badges_granted": [],1075          "version": 1,1076          "can_edit": false,1077          "can_delete": false,1078          "can_recover": false,1079          "can_see_hidden_post": false,1080          "can_wiki": false,1081          "read": true,1082          "user_title": "",1083          "reply_to_user": {1084            "id": 77355,1085            "username": "vjml",1086            "name": "vjml",1087            "avatar_template": "/user_avatar/discuss.pytorch.org/vjml/{size}/71382_2.png"1088          },1089          "bookmarked": false,1090          "actions_summary": [],1091          "moderator": true,1092          "admin": true,1093          "staff": true,1094          "user_id": 3534,1095          "hidden": false,1096          "trust_level": 2,1097          "deleted_at": null,1098          "user_deleted": false,1099          "edit_reason": null,1100          "can_view_edit_history": true,1101          "wiki": false,1102          "post_url": "/t/error-when-building-executorch-on-libquantized/206135/6",1103          "can_accept_answer": false,1104          "can_unaccept_answer": false,1105          "accepted_answer": false,1106          "topic_accepted_answer": null1107        },1108        {1109          "id": 448822,1110          "name": "Giustiniano",1111          "username": "Giustiniano",1112          "avatar_template": "/user_avatar/discuss.pytorch.org/giustiniano/{size}/71360_2.png",1113          "created_at": "2024-07-12T14:46:48.262Z",1114          "cooked": "<p>This is the full log, including the apt get calls so you can see the version of everything that is installed, in case it helps</p>\n<aside class=\"onebox githubgist\" data-onebox-src=\"https://gist.github.com/Giustiniano/d1fdbc3b089e0067193663aec2551c7e\">\n  <header class=\"source\">\n\n      <a href=\"https://gist.github.com/Giustiniano/d1fdbc3b089e0067193663aec2551c7e\" target=\"_blank\" rel=\"noopener nofollow ugc\">gist.github.com</a>\n  </header>\n\n  <article class=\"onebox-body\">\n    <h4><a href=\"https://gist.github.com/Giustiniano/d1fdbc3b089e0067193663aec2551c7e\" target=\"_blank\" rel=\"noopener nofollow ugc\">https://gist.github.com/Giustiniano/d1fdbc3b089e0067193663aec2551c7e</a></h4>\n\n  <h5>log.txt</h5>\n  <pre><code class=\"Text\">Welcome to Ubuntu 22.04.4 LTS (GNU/Linux 6.5.0-1023-azure x86_64)\n\n * Documentation:  https://help.ubuntu.com\n * Management:     https://landscape.canonical.com\n * Support:        https://ubuntu.com/pro\n\n System information as of Fri Jul 12 04:36:52 UTC 2024\n\n  System load:  0.45              Processes:             193\n  Usage of /:   2.4% of 61.84GB   Users logged in:       0</code></pre>\n   This file has been truncated. <a href=\"https://gist.github.com/Giustiniano/d1fdbc3b089e0067193663aec2551c7e\" target=\"_blank\" rel=\"noopener nofollow ugc\">show original</a>\n\n<p>\n</p>\n\n  </article>\n\n  <div class=\"onebox-metadata\">\n    \n    \n  </div>\n\n  <div style=\"clear: both\"></div>\n</aside>\n",1115          "post_number": 7,1116          "post_type": 1,1117          "posts_count": 10,1118          "updated_at": "2024-07-12T14:46:48.262Z",1119          "reply_count": 1,1120          "reply_to_post_number": null,1121          "quote_count": 0,1122          "incoming_link_count": 7,1123          "reads": 13,1124          "readers_count": 12,1125          "score": 42.6,1126          "yours": false,1127          "topic_id": 206135,1128          "topic_slug": "error-when-building-executorch-on-libquantized",1129          "display_username": "Giustiniano",1130          "primary_group_name": null,1131          "flair_name": null,1132          "flair_url": null,1133          "flair_bg_color": null,1134          "flair_color": null,1135          "flair_group_id": null,1136          "badges_granted": [],1137          "version": 1,1138          "can_edit": false,1139          "can_delete": false,1140          "can_recover": false,1141          "can_see_hidden_post": false,1142          "can_wiki": false,1143          "link_counts": [1144            {1145              "url": "https://gist.github.com/Giustiniano/d1fdbc3b089e0067193663aec2551c7e",1146              "internal": false,1147              "reflection": false,1148              "title": "executorch build log · GitHub",1149              "clicks": 31150            }1151          ],1152          "read": true,1153          "user_title": null,1154          "bookmarked": false,1155          "actions_summary": [],1156          "moderator": false,1157          "admin": false,1158          "staff": false,1159          "user_id": 77323,1160          "hidden": false,1161          "trust_level": 0,1162          "deleted_at": null,1163          "user_deleted": false,1164          "edit_reason": null,1165          "can_view_edit_history": true,1166          "wiki": false,1167          "post_url": "/t/error-when-building-executorch-on-libquantized/206135/7",1168          "can_accept_answer": false,1169          "can_unaccept_answer": false,1170          "accepted_answer": false,1171          "topic_accepted_answer": null1172        },1173        {1174          "id": 448826,1175          "name": "",1176          "username": "ptrblck",1177          "avatar_template": "/user_avatar/discuss.pytorch.org/ptrblck/{size}/1823_2.png",1178          "created_at": "2024-07-12T15:30:47.347Z",1179          "cooked": "<p>Your log does not show your original error and fails with:</p>\n<pre data-code-wrap=\"python\"><code class=\"lang-python\">CMake Error: CMake was unable to find a build program corresponding to \"Unix Makefiles\".\n</code></pre>\n<p>pointing to potentially <a href=\"https://stackoverflow.com/questions/48160125/cmake-was-unable-to-find-a-build-program-corresponding-to-unix-makefiles\">this issue</a>.</p>\n<p>Make sure you are able to at least start the build in your environment.</p>",1180          "post_number": 8,1181          "post_type": 1,1182          "posts_count": 10,1183          "updated_at": "2024-07-12T15:30:47.347Z",1184          "reply_count": 0,1185          "reply_to_post_number": 7,1186          "quote_count": 0,1187          "incoming_link_count": 3,1188          "reads": 13,1189          "readers_count": 12,1190          "score": 17.6,1191          "yours": false,1192          "topic_id": 206135,1193          "topic_slug": "error-when-building-executorch-on-libquantized",1194          "display_username": "",1195          "primary_group_name": null,1196          "flair_name": null,1197          "flair_url": null,1198          "flair_bg_color": null,1199          "flair_color": null,1200          "flair_group_id": null,

Showing the first 1,200 of 64680 lines. Download the file for the rest.