RuntimeError: mat1 and mat2 shapes cannot be multiplied during sampling with finetuned_replogle.ckpt
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 68/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- python
调研方向
首先阅读 sampling_generation_helpers.py 第 58 行附近和 sampling_generation.py 第 94 行附近硬编码的维度断言,然后将它们与 finetuned_replogle.ckpt 的维度以及提供的 sampling 配置进行比较。完成的标准是使用该 checkpoint 可以运行 sampling,并且不存在 2000 个基因的 shape mismatch。
由索引模型根据 Issue 内容生成。
描述
Hello! I'm trying to run the sampling script using the provided finetuned_replogle.ckpt.
It seems this checkpoint was trained on 12626 genes, but script defaults to a 2000-gene space, causing a shape mismatch error:
RuntimeError: mat1 and mat2 shapes cannot be multiplied (128x4000 and 25252x512)
I tried changing the config to match 12626 genes:
data.pad_length=12626
model.hidden_num=[12626,512]
model.input_dim=12626
data.embed_key=X
However, the script still fails because 2000 is strictly hardcoded in several assert statements across the sampling codebase (e.g., sampling_generation_helpers.py line 58 and sampling_generation.py line 94).
How can I correctly run sampling for this finetuned checkpoint? Are there plans to make the gene dimension dynamic instead of hardcoded?
Thanks!
- 主要语言
- Python
- 星标
- 63
- 派生
- 10
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
DeepGraphLearning/PerturbDiff 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 45/100
-
难度 4/5 3-5 天 新手友好度 38/100
DeepGraphLearning/PerturbDiff#7 · 1 条评论 ·
-
Question: Simulating gene knockout on novel datasets (zero-shot inference) & Implementation feedback 未关闭
难度 5/5 一周以上 新手友好度 30/100
DeepGraphLearning/PerturbDiff#5 · 1 条评论 · 1 个 reaction ·
-
Inference 未关闭
难度 4/5 3-5 天 新手友好度 45/100
DeepGraphLearning/PerturbDiff#1 · 4 条评论 ·
查看 DeepGraphLearning/PerturbDiff 的全部 Issue
相似的 Issue
-
link-check link-check:sphinx-theme
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 65/100
qgis/QGIS-Documentation#11275 ·
-
bug priority:normal ready-for-dev
难度 2/5 1-3 小时 新手友好度 88/100
OpenHands/extensions#626 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
CSCfi/sd-search-api#39 ·
-
难度 1/5 1 小时以内 新手友好度 90/100