{
  "id": 569703,
  "title": "How can we run AlphaFold 3 on Kaggle? (Link provided)",
  "url": "/competitions/stanford-rna-3d-folding/discussion/569703",
  "author_name": "",
  "post_date": "2025-03-23T15:54:42.156487500Z",
  "votes": 1,
  "comment_count": 8,
  "views": 0,
  "content": "<p>The link of the source code is here: <a href=\"https://github.com/google-deepmind/alphafold3/releases\" target=\"_blank\">https://github.com/google-deepmind/alphafold3/releases</a></p>\n<p>I have tried so many times, and it seems like that it need python 3.11, kaggle's python version is 3.10, can we overcome this to run AlphaFold 3?</p>",
  "messages": [
    {
      "id": "3157584",
      "postDate": "03/23/2025 15:54:42",
      "content": "<p>The link of the source code is here: <a href=\"https://github.com/google-deepmind/alphafold3/releases\" target=\"_blank\">https://github.com/google-deepmind/alphafold3/releases</a></p>\n<p>I have tried so many times, and it seems like that it need python 3.11, kaggle's python version is 3.10, can we overcome this to run AlphaFold 3?</p>",
      "rawMarkdown": "The link of the source code is here: https://github.com/google-deepmind/alphafold3/releases\n\nI have tried so many times, and it seems like that it need python 3.11, kaggle's python version is 3.10, can we overcome this to run AlphaFold 3?",
      "votes": null
    },
    {
      "id": "3157866",
      "postDate": "03/24/2025 00:58:42",
      "content": "<p>You can try Protenix: <a href=\"https://github.com/bytedance/Protenix\" target=\"_blank\">https://github.com/bytedance/Protenix</a></p>",
      "rawMarkdown": "You can try Protenix: https://github.com/bytedance/Protenix",
      "votes": null
    },
    {
      "id": "3158296",
      "postDate": "03/24/2025 12:15:56",
      "content": "<p>Thanks! Can try it :)</p>",
      "rawMarkdown": "Thanks! Can try it :)",
      "votes": null
    },
    {
      "id": "3158852",
      "postDate": "03/25/2025 01:41:22",
      "content": "<p>Hi! May I ask if you know how to download the model for prediction as it is not in the github?</p>",
      "rawMarkdown": "Hi! May I ask if you know how to download the model for prediction as it is not in the github?",
      "votes": null
    },
    {
      "id": "3158853",
      "postDate": "03/25/2025 01:44:01",
      "content": "<p>My error is like this:<br>\n🧬 Predicting with Protenix:  92%|█████████▏| 11/12 [00:41&lt;00:03,  3.76s/it]<br>\n❌ Error in R1108: Error(s) in loading state_dict for Protenix:<br>\n    size mismatch for confidence_head.linear_no_bias_d.weight: copying a param with shape torch.Size([128, 15]) from checkpoint, the shape in current model is torch.Size([128, 39]).<br>\ntrain scheduler 16.0<br>\ninference scheduler 16.0<br>\nDiffusion Module has 16.0</p>",
      "rawMarkdown": "My error is like this:\n🧬 Predicting with Protenix:  92%|█████████▏| 11/12 [00:41<00:03,  3.76s/it]\n❌ Error in R1108: Error(s) in loading state_dict for Protenix:\n\tsize mismatch for confidence_head.linear_no_bias_d.weight: copying a param with shape torch.Size([128, 15]) from checkpoint, the shape in current model is torch.Size([128, 39]).\ntrain scheduler 16.0\ninference scheduler 16.0\nDiffusion Module has 16.0",
      "votes": null
    },
    {
      "id": "3158858",
      "postDate": "03/25/2025 01:56:54",
      "content": "<p>You can fork the github repository and check the file <code>inference_demo.sh</code></p>\n<pre><code>export LAYERNORM_TYPE=fast_layernorm\nexport USE_DEEPSPEED_EVO_ATTENTION=true\n\nN_sample=\nN_step=\nN_cycle=\nseed=\nuse_deepspeed_evo_attention=true\ninput_json_path=\ndump_dir=\n\npython3 runner/inference.py \\\n--seeds ${seed} \\\n--dump_dir ${dump_dir} \\\n--input_json_path ${input_json_path} \\\n--model.N_cycle ${N_cycle} \\\n--sample_diffusion.N_sample ${N_sample} \\\n--sample_diffusion.N_step ${N_step}\n</code></pre>",
      "rawMarkdown": "You can fork the github repository and check the file `inference_demo.sh`\n\n```python\nexport LAYERNORM_TYPE=fast_layernorm\nexport USE_DEEPSPEED_EVO_ATTENTION=true\n\nN_sample=5\nN_step=200\nN_cycle=10\nseed=101\nuse_deepspeed_evo_attention=true\ninput_json_path=\"./examples/example.json\"\ndump_dir=\"./output\"\n\npython3 runner/inference.py \\\n--seeds ${seed} \\\n--dump_dir ${dump_dir} \\\n--input_json_path ${input_json_path} \\\n--model.N_cycle ${N_cycle} \\\n--sample_diffusion.N_sample ${N_sample} \\\n--sample_diffusion.N_step ${N_step}\n```",
      "votes": null
    },
    {
      "id": "3158859",
      "postDate": "03/25/2025 01:58:04",
      "content": "<p>You used pip then <code>protenix predict --input examples/example.json --out_dir  ./output --seeds 101</code>, I guess?</p>",
      "rawMarkdown": "You used pip then `protenix predict --input examples/example.json --out_dir  ./output --seeds 101`, I guess?",
      "votes": null
    },
    {
      "id": "3159781",
      "postDate": "03/25/2025 22:34:59",
      "content": "<p>Hi! May I ask if you can do the inference only using the coding from github or not? Do you need to download extra model? (I download one which is 1.5GB but not match)</p>",
      "rawMarkdown": "Hi! May I ask if you can do the inference only using the coding from github or not? Do you need to download extra model? (I download one which is 1.5GB but not match)",
      "votes": null
    },
    {
      "id": "3159838",
      "postDate": "03/26/2025 01:14:51",
      "content": "<p>I trained my own model, not only github itself.</p>",
      "rawMarkdown": "I trained my own model, not only github itself.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 3157866,
      "author_name": "sweetyheehee",
      "author_url": "",
      "post_date": "03/24/2025 00:58:42",
      "content": "<p>You can try Protenix: <a href=\"https://github.com/bytedance/Protenix\" target=\"_blank\">https://github.com/bytedance/Protenix</a></p>",
      "votes": null,
      "replies": [
        {
          "id": 3158296,
          "author_name": "larrylin666",
          "author_url": "",
          "post_date": "03/24/2025 12:15:56",
          "content": "<p>Thanks! Can try it :)</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 3158852,
          "author_name": "larrylin666",
          "author_url": "",
          "post_date": "03/25/2025 01:41:22",
          "content": "<p>Hi! May I ask if you know how to download the model for prediction as it is not in the github?</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 3158853,
          "author_name": "larrylin666",
          "author_url": "",
          "post_date": "03/25/2025 01:44:01",
          "content": "<p>My error is like this:<br>\n🧬 Predicting with Protenix:  92%|█████████▏| 11/12 [00:41&lt;00:03,  3.76s/it]<br>\n❌ Error in R1108: Error(s) in loading state_dict for Protenix:<br>\n    size mismatch for confidence_head.linear_no_bias_d.weight: copying a param with shape torch.Size([128, 15]) from checkpoint, the shape in current model is torch.Size([128, 39]).<br>\ntrain scheduler 16.0<br>\ninference scheduler 16.0<br>\nDiffusion Module has 16.0</p>",
          "votes": null,
          "replies": [
            {
              "id": 3158858,
              "author_name": "sweetyheehee",
              "author_url": "",
              "post_date": "03/25/2025 01:56:54",
              "content": "<p>You can fork the github repository and check the file <code>inference_demo.sh</code></p>\n<pre><code>export LAYERNORM_TYPE=fast_layernorm\nexport USE_DEEPSPEED_EVO_ATTENTION=true\n\nN_sample=\nN_step=\nN_cycle=\nseed=\nuse_deepspeed_evo_attention=true\ninput_json_path=\ndump_dir=\n\npython3 runner/inference.py \\\n--seeds ${seed} \\\n--dump_dir ${dump_dir} \\\n--input_json_path ${input_json_path} \\\n--model.N_cycle ${N_cycle} \\\n--sample_diffusion.N_sample ${N_sample} \\\n--sample_diffusion.N_step ${N_step}\n</code></pre>",
              "votes": null,
              "replies": []
            },
            {
              "id": 3158859,
              "author_name": "sweetyheehee",
              "author_url": "",
              "post_date": "03/25/2025 01:58:04",
              "content": "<p>You used pip then <code>protenix predict --input examples/example.json --out_dir  ./output --seeds 101</code>, I guess?</p>",
              "votes": null,
              "replies": [
                {
                  "id": 3159781,
                  "author_name": "larrylin666",
                  "author_url": "",
                  "post_date": "03/25/2025 22:34:59",
                  "content": "<p>Hi! May I ask if you can do the inference only using the coding from github or not? Do you need to download extra model? (I download one which is 1.5GB but not match)</p>",
                  "votes": null,
                  "replies": [
                    {
                      "id": 3159838,
                      "author_name": "sweetyheehee",
                      "author_url": "",
                      "post_date": "03/26/2025 01:14:51",
                      "content": "<p>I trained my own model, not only github itself.</p>",
                      "votes": null,
                      "replies": []
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "3157584": "The link of the source code is here: https://github.com/google-deepmind/alphafold3/releases\n\nI have tried so many times, and it seems like that it need python 3.11, kaggle's python version is 3.10, can we overcome this to run AlphaFold 3?",
    "3157866": "You can try Protenix: https://github.com/bytedance/Protenix",
    "3158296": "Thanks! Can try it :)",
    "3158852": "Hi! May I ask if you know how to download the model for prediction as it is not in the github?",
    "3158853": "My error is like this:\n🧬 Predicting with Protenix:  92%|█████████▏| 11/12 [00:41<00:03,  3.76s/it]\n❌ Error in R1108: Error(s) in loading state_dict for Protenix:\n\tsize mismatch for confidence_head.linear_no_bias_d.weight: copying a param with shape torch.Size([128, 15]) from checkpoint, the shape in current model is torch.Size([128, 39]).\ntrain scheduler 16.0\ninference scheduler 16.0\nDiffusion Module has 16.0",
    "3158858": "You can fork the github repository and check the file `inference_demo.sh`\n\n```python\nexport LAYERNORM_TYPE=fast_layernorm\nexport USE_DEEPSPEED_EVO_ATTENTION=true\n\nN_sample=5\nN_step=200\nN_cycle=10\nseed=101\nuse_deepspeed_evo_attention=true\ninput_json_path=\"./examples/example.json\"\ndump_dir=\"./output\"\n\npython3 runner/inference.py \\\n--seeds ${seed} \\\n--dump_dir ${dump_dir} \\\n--input_json_path ${input_json_path} \\\n--model.N_cycle ${N_cycle} \\\n--sample_diffusion.N_sample ${N_sample} \\\n--sample_diffusion.N_step ${N_step}\n```",
    "3158859": "You used pip then `protenix predict --input examples/example.json --out_dir  ./output --seeds 101`, I guess?",
    "3159781": "Hi! May I ask if you can do the inference only using the coding from github or not? Do you need to download extra model? (I download one which is 1.5GB but not match)",
    "3159838": "I trained my own model, not only github itself."
  },
  "source": "meta"
}