remedi 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (314) hide show
  1. remedi-0.1.0/.github/workflows/python-app.yml +39 -0
  2. remedi-0.1.0/.github/workflows/release.yml +34 -0
  3. remedi-0.1.0/.gitignore +25 -0
  4. remedi-0.1.0/.pre-commit-config.yaml +15 -0
  5. remedi-0.1.0/LICENSE +201 -0
  6. remedi-0.1.0/NOTICE +19 -0
  7. remedi-0.1.0/PKG-INFO +161 -0
  8. remedi-0.1.0/README.md +107 -0
  9. remedi-0.1.0/configs/dataset_creation/benchmarks_local.yaml +24 -0
  10. remedi-0.1.0/configs/dataset_creation/benchmarks_template.yaml +53 -0
  11. remedi-0.1.0/configs/dataset_creation/dataset_comparison_dev.yaml +51 -0
  12. remedi-0.1.0/configs/dataset_creation/dataset_comparison_full.yaml +70 -0
  13. remedi-0.1.0/configs/dataset_creation/dataset_comparison_full_all.yaml +168 -0
  14. remedi-0.1.0/configs/dataset_creation/dataset_comparison_geom_only.yaml +62 -0
  15. remedi-0.1.0/configs/dataset_creation/dataset_comparison_geom_only_all.yaml +161 -0
  16. remedi-0.1.0/configs/dataset_creation/dataset_comparison_pcqm100k.yaml +60 -0
  17. remedi-0.1.0/configs/dataset_creation/dataset_comparison_pcqm100k_auto.yaml +64 -0
  18. remedi-0.1.0/configs/training/pcqm_ablation_novicreg/pcqm_agg_mean/architecture_config.yaml +68 -0
  19. remedi-0.1.0/configs/training/pcqm_ablation_novicreg/pcqm_agg_mean/training_config.yaml +41 -0
  20. remedi-0.1.0/configs/training/pcqm_ablation_novicreg/pcqm_agg_pma/architecture_config.yaml +73 -0
  21. remedi-0.1.0/configs/training/pcqm_ablation_novicreg/pcqm_agg_pma/training_config.yaml +41 -0
  22. remedi-0.1.0/configs/training/pcqm_ablation_novicreg/pcqm_baseline/architecture_config.yaml +71 -0
  23. remedi-0.1.0/configs/training/pcqm_ablation_novicreg/pcqm_baseline/training_config.yaml +41 -0
  24. remedi-0.1.0/configs/training/pcqm_ablation_novicreg/pcqm_depth_2/architecture_config.yaml +71 -0
  25. remedi-0.1.0/configs/training/pcqm_ablation_novicreg/pcqm_depth_2/training_config.yaml +41 -0
  26. remedi-0.1.0/configs/training/pcqm_ablation_novicreg/pcqm_depth_6/architecture_config.yaml +71 -0
  27. remedi-0.1.0/configs/training/pcqm_ablation_novicreg/pcqm_depth_6/training_config.yaml +41 -0
  28. remedi-0.1.0/configs/training/pcqm_ablation_novicreg/pcqm_dim_128/architecture_config.yaml +71 -0
  29. remedi-0.1.0/configs/training/pcqm_ablation_novicreg/pcqm_dim_128/training_config.yaml +41 -0
  30. remedi-0.1.0/configs/training/pcqm_ablation_novicreg/pcqm_dim_32/architecture_config.yaml +71 -0
  31. remedi-0.1.0/configs/training/pcqm_ablation_novicreg/pcqm_dim_32/training_config.yaml +41 -0
  32. remedi-0.1.0/configs/training/pcqm_ablation_novicreg/pcqm_dropout_0.1/architecture_config.yaml +71 -0
  33. remedi-0.1.0/configs/training/pcqm_ablation_novicreg/pcqm_dropout_0.1/training_config.yaml +41 -0
  34. remedi-0.1.0/configs/training/pcqm_ablation_novicreg/pcqm_dropout_0.5/architecture_config.yaml +71 -0
  35. remedi-0.1.0/configs/training/pcqm_ablation_novicreg/pcqm_dropout_0.5/training_config.yaml +41 -0
  36. remedi-0.1.0/configs/training/pcqm_ablation_novicreg/pcqm_lr_1e-3/architecture_config.yaml +71 -0
  37. remedi-0.1.0/configs/training/pcqm_ablation_novicreg/pcqm_lr_1e-3/training_config.yaml +41 -0
  38. remedi-0.1.0/configs/training/pcqm_ablation_novicreg/pcqm_lr_1e-4/architecture_config.yaml +71 -0
  39. remedi-0.1.0/configs/training/pcqm_ablation_novicreg/pcqm_lr_1e-4/training_config.yaml +41 -0
  40. remedi-0.1.0/configs/training/probe_smoke/architecture_config.yaml +71 -0
  41. remedi-0.1.0/configs/training/probe_smoke/training_config.yaml +50 -0
  42. remedi-0.1.0/docs/header-rem3di.jpg +0 -0
  43. remedi-0.1.0/docs/header-rem3di.png +0 -0
  44. remedi-0.1.0/pyproject.toml +118 -0
  45. remedi-0.1.0/remedi/__init__.py +0 -0
  46. remedi-0.1.0/remedi/configuration/architecture_config.py +903 -0
  47. remedi-0.1.0/remedi/configuration/config_utils.py +35 -0
  48. remedi-0.1.0/remedi/configuration/data_config.py +143 -0
  49. remedi-0.1.0/remedi/configuration/dataloader_config.py +94 -0
  50. remedi-0.1.0/remedi/configuration/dataset_analysis_config.py +77 -0
  51. remedi-0.1.0/remedi/configuration/dataset_comparison_config.py +92 -0
  52. remedi-0.1.0/remedi/configuration/dataset_config.py +140 -0
  53. remedi-0.1.0/remedi/configuration/mace_config.py +116 -0
  54. remedi-0.1.0/remedi/configuration/training_config.py +110 -0
  55. remedi-0.1.0/remedi/data_handling/__init__.py +0 -0
  56. remedi-0.1.0/remedi/data_handling/benchmarks.py +686 -0
  57. remedi-0.1.0/remedi/data_handling/data_utils.py +340 -0
  58. remedi-0.1.0/remedi/data_handling/dataset_analysis.py +1031 -0
  59. remedi-0.1.0/remedi/data_handling/dataset_comparison.py +1210 -0
  60. remedi-0.1.0/remedi/data_handling/dataset_creation/__init__.py +3 -0
  61. remedi-0.1.0/remedi/data_handling/dataset_creation/benchmark_dataloader.py +444 -0
  62. remedi-0.1.0/remedi/data_handling/dataset_creation/build_config.py +76 -0
  63. remedi-0.1.0/remedi/data_handling/dataset_creation/build_stats.py +49 -0
  64. remedi-0.1.0/remedi/data_handling/dataset_creation/conformer_timing.py +56 -0
  65. remedi-0.1.0/remedi/data_handling/dataset_creation/dataset_concatenation.py +482 -0
  66. remedi-0.1.0/remedi/data_handling/dataset_creation/generators/__init__.py +2 -0
  67. remedi-0.1.0/remedi/data_handling/dataset_creation/generators/chiral_cat_generator.py +189 -0
  68. remedi-0.1.0/remedi/data_handling/dataset_creation/generators/chiro_docking_generator.py +238 -0
  69. remedi-0.1.0/remedi/data_handling/dataset_creation/generators/geom_generator.py +215 -0
  70. remedi-0.1.0/remedi/data_handling/dataset_creation/generators/molecule_generator.py +20 -0
  71. remedi-0.1.0/remedi/data_handling/dataset_creation/generators/moleculenet_generator.py +136 -0
  72. remedi-0.1.0/remedi/data_handling/dataset_creation/generators/polaris_offline_generator.py +195 -0
  73. remedi-0.1.0/remedi/data_handling/dataset_creation/generators/qm9_generator.py +193 -0
  74. remedi-0.1.0/remedi/data_handling/dataset_creation/generators/sdf_generator.py +127 -0
  75. remedi-0.1.0/remedi/data_handling/dataset_creation/generators/smiles_list_generator.py +40 -0
  76. remedi-0.1.0/remedi/data_handling/dataset_creation/generators/tdc_generator.py +150 -0
  77. remedi-0.1.0/remedi/data_handling/dataset_creation/generators/tmqm_generator.py +110 -0
  78. remedi-0.1.0/remedi/data_handling/dataset_creation/generators/tsv_generator.py +40 -0
  79. remedi-0.1.0/remedi/data_handling/dataset_creation/generators/utils.py +283 -0
  80. remedi-0.1.0/remedi/data_handling/dataset_creation/generators/xyz_generator.py +93 -0
  81. remedi-0.1.0/remedi/data_handling/dataset_creation/loading_batch.py +63 -0
  82. remedi-0.1.0/remedi/data_handling/dataset_creation/orchestrator.py +242 -0
  83. remedi-0.1.0/remedi/data_handling/dataset_creation/pipeline_stages.py +612 -0
  84. remedi-0.1.0/remedi/data_handling/dataset_creation/shard_aligned_writer.py +315 -0
  85. remedi-0.1.0/remedi/data_handling/dataset_creation/splits.py +189 -0
  86. remedi-0.1.0/remedi/data_handling/dataset_creation/structure_ids.py +9 -0
  87. remedi-0.1.0/remedi/data_handling/dataset_creation/utils.py +178 -0
  88. remedi-0.1.0/remedi/data_handling/indexed_subset.py +74 -0
  89. remedi-0.1.0/remedi/data_handling/physchem.py +219 -0
  90. remedi-0.1.0/remedi/data_handling/sample.py +156 -0
  91. remedi-0.1.0/remedi/data_handling/source_preprocessing/__init__.py +0 -0
  92. remedi-0.1.0/remedi/data_handling/source_preprocessing/cmrt_preprocessing.py +87 -0
  93. remedi-0.1.0/remedi/data_handling/source_preprocessing/geom_preprocessing.py +244 -0
  94. remedi-0.1.0/remedi/data_handling/source_preprocessing/pcqm_preprocessing.py +93 -0
  95. remedi-0.1.0/remedi/data_handling/source_preprocessing/qm9_preprocessing.py +147 -0
  96. remedi-0.1.0/remedi/data_handling/source_preprocessing/similarity_screening_preprocessing.py +98 -0
  97. remedi-0.1.0/remedi/data_handling/source_preprocessing/tmqm_preprocessing.py +160 -0
  98. remedi-0.1.0/remedi/evaluation/__init__.py +0 -0
  99. remedi-0.1.0/remedi/evaluation/benchmark/__init__.py +7 -0
  100. remedi-0.1.0/remedi/evaluation/benchmark/descriptors.py +318 -0
  101. remedi-0.1.0/remedi/evaluation/benchmark/learners.py +799 -0
  102. remedi-0.1.0/remedi/evaluation/benchmark/metrics.py +142 -0
  103. remedi-0.1.0/remedi/evaluation/benchmark/pairwise.py +91 -0
  104. remedi-0.1.0/remedi/evaluation/benchmark/runner.py +432 -0
  105. remedi-0.1.0/remedi/evaluation/chiral/__init__.py +15 -0
  106. remedi-0.1.0/remedi/evaluation/chiral/chiral_report.py +207 -0
  107. remedi-0.1.0/remedi/evaluation/descriptor_analysis/__init__.py +71 -0
  108. remedi-0.1.0/remedi/evaluation/descriptor_analysis/analysis_tasks.py +1487 -0
  109. remedi-0.1.0/remedi/evaluation/descriptor_analysis/capacity_diagnostic.py +187 -0
  110. remedi-0.1.0/remedi/evaluation/descriptor_analysis/clustering.py +63 -0
  111. remedi-0.1.0/remedi/evaluation/descriptor_analysis/coloring.py +184 -0
  112. remedi-0.1.0/remedi/evaluation/descriptor_analysis/context.py +151 -0
  113. remedi-0.1.0/remedi/evaluation/descriptor_analysis/mace_invariant_stats.py +599 -0
  114. remedi-0.1.0/remedi/evaluation/descriptor_analysis/plotting.py +107 -0
  115. remedi-0.1.0/remedi/evaluation/descriptor_analysis/runner.py +90 -0
  116. remedi-0.1.0/remedi/evaluation/descriptor_analysis/tmqm_chemical_features.py +420 -0
  117. remedi-0.1.0/remedi/evaluation/descriptor_analysis/tmqm_clustering_utils.py +201 -0
  118. remedi-0.1.0/remedi/evaluation/evaluation_pipeline.py +44 -0
  119. remedi-0.1.0/remedi/evaluation/evaluation_utils.py +285 -0
  120. remedi-0.1.0/remedi/evaluation/framework/__init__.py +46 -0
  121. remedi-0.1.0/remedi/evaluation/framework/builtin_plotters.py +56 -0
  122. remedi-0.1.0/remedi/evaluation/framework/config.py +53 -0
  123. remedi-0.1.0/remedi/evaluation/framework/context.py +30 -0
  124. remedi-0.1.0/remedi/evaluation/framework/plotting.py +71 -0
  125. remedi-0.1.0/remedi/evaluation/framework/resources.py +170 -0
  126. remedi-0.1.0/remedi/evaluation/framework/runner.py +119 -0
  127. remedi-0.1.0/remedi/evaluation/framework/task.py +36 -0
  128. remedi-0.1.0/remedi/evaluation/framework/tasks/__init__.py +7 -0
  129. remedi-0.1.0/remedi/evaluation/framework/tasks/benchmark.py +151 -0
  130. remedi-0.1.0/remedi/evaluation/framework/tasks/descriptor_analysis.py +85 -0
  131. remedi-0.1.0/remedi/evaluation/framework/tasks/retrieval.py +130 -0
  132. remedi-0.1.0/remedi/evaluation/model_comparison/compare_runs.py +136 -0
  133. remedi-0.1.0/remedi/evaluation/model_comparison/cv_runs_stat_tests.py +154 -0
  134. remedi-0.1.0/remedi/evaluation/model_comparison/training_evaluation.py +0 -0
  135. remedi-0.1.0/remedi/evaluation/model_comparison/training_metadata.py +34 -0
  136. remedi-0.1.0/remedi/evaluation/regression/__init__.py +0 -0
  137. remedi-0.1.0/remedi/evaluation/regression/cross_validation.py +225 -0
  138. remedi-0.1.0/remedi/evaluation/regression/featurization.py +102 -0
  139. remedi-0.1.0/remedi/evaluation/regression/learner.py +313 -0
  140. remedi-0.1.0/remedi/evaluation/regression/regression_tasks.py +179 -0
  141. remedi-0.1.0/remedi/evaluation/regression/regression_utils.py +87 -0
  142. remedi-0.1.0/remedi/evaluation/regression/task.py +17 -0
  143. remedi-0.1.0/remedi/evaluation/regression/uncertainty_task.py +124 -0
  144. remedi-0.1.0/remedi/evaluation/regression/utils.py +74 -0
  145. remedi-0.1.0/remedi/evaluation/results.py +159 -0
  146. remedi-0.1.0/remedi/evaluation/retrieval/__init__.py +13 -0
  147. remedi-0.1.0/remedi/evaluation/retrieval/config.py +70 -0
  148. remedi-0.1.0/remedi/evaluation/retrieval/fingerprints.py +35 -0
  149. remedi-0.1.0/remedi/evaluation/retrieval/nearest_molecule.py +265 -0
  150. remedi-0.1.0/remedi/evaluation/retrieval/runner.py +26 -0
  151. remedi-0.1.0/remedi/evaluation/retrieval/tanimoto_similarity.py +178 -0
  152. remedi-0.1.0/remedi/evaluation/retrieval/vector_store.py +208 -0
  153. remedi-0.1.0/remedi/evaluation/similarity_screening/descriptor_similarity_metrics.py +67 -0
  154. remedi-0.1.0/remedi/evaluation/similarity_screening/similarity_screening.py +372 -0
  155. remedi-0.1.0/remedi/evaluation/similarity_screening/similarity_screening_task.py +37 -0
  156. remedi-0.1.0/remedi/model/__init__.py +0 -0
  157. remedi-0.1.0/remedi/model/decoder.py +100 -0
  158. remedi-0.1.0/remedi/model/model_output.py +11 -0
  159. remedi-0.1.0/remedi/model/molecular_descriptor.py +63 -0
  160. remedi-0.1.0/remedi/model/molecule_difference_regressor.py +55 -0
  161. remedi-0.1.0/remedi/model/multihead_self_attention.py +130 -0
  162. remedi-0.1.0/remedi/model/pair_biased_attention.py +119 -0
  163. remedi-0.1.0/remedi/model/pair_block.py +126 -0
  164. remedi-0.1.0/remedi/model/pair_encoder.py +42 -0
  165. remedi-0.1.0/remedi/model/pooling.py +235 -0
  166. remedi-0.1.0/remedi/model/preprocessing/atomic_descriptor_preprocessor.py +344 -0
  167. remedi-0.1.0/remedi/model/preprocessing/chiral_embedding_model.py +115 -0
  168. remedi-0.1.0/remedi/model/preprocessing/geometric_preprocessor.py +54 -0
  169. remedi-0.1.0/remedi/model/preprocessing/preprocessing.py +239 -0
  170. remedi-0.1.0/remedi/model/preprocessing/pseudoscalar_tp.py +209 -0
  171. remedi-0.1.0/remedi/model/preprocessing/radial_basis_functions.py +65 -0
  172. remedi-0.1.0/remedi/model/regression_models.py +245 -0
  173. remedi-0.1.0/remedi/model/remedi_model.py +59 -0
  174. remedi-0.1.0/remedi/training/__init__.py +0 -0
  175. remedi-0.1.0/remedi/training/classification_training.py +71 -0
  176. remedi-0.1.0/remedi/training/data/__init__.py +2 -0
  177. remedi-0.1.0/remedi/training/data/data_normalization.py +238 -0
  178. remedi-0.1.0/remedi/training/data/dataset_splitting.py +221 -0
  179. remedi-0.1.0/remedi/training/data/samplers.py +150 -0
  180. remedi-0.1.0/remedi/training/data/util.py +74 -0
  181. remedi-0.1.0/remedi/training/gradient_surgery.py +63 -0
  182. remedi-0.1.0/remedi/training/linear_probe.py +185 -0
  183. remedi-0.1.0/remedi/training/noise_scheduler.py +45 -0
  184. remedi-0.1.0/remedi/training/pretraining.py +78 -0
  185. remedi-0.1.0/remedi/training/regression_training.py +101 -0
  186. remedi-0.1.0/remedi/training/telemetry.py +183 -0
  187. remedi-0.1.0/remedi/training/training_utils.py +29 -0
  188. remedi-0.1.0/remedi/utils/__init__.py +0 -0
  189. remedi-0.1.0/remedi/utils/model_utils.py +124 -0
  190. remedi-0.1.0/remedi/utils/pseudoscalar_paths.py +108 -0
  191. remedi-0.1.0/reports/2026-05-21-conformer-timing-experiment.md +133 -0
  192. remedi-0.1.0/reports/2026-05-27-dataset-comparison-metrics.md +167 -0
  193. remedi-0.1.0/scripts/dataset_creation/build_benchmark_dataset.py +195 -0
  194. remedi-0.1.0/scripts/dataset_creation/build_benchmark_dataset.sbatch +25 -0
  195. remedi-0.1.0/scripts/dataset_creation/build_benchmark_dataset_juwels.sbatch +28 -0
  196. remedi-0.1.0/scripts/dataset_creation/build_chiral_cat.py +128 -0
  197. remedi-0.1.0/scripts/dataset_creation/build_chiro_docking.py +156 -0
  198. remedi-0.1.0/scripts/dataset_creation/build_pcqm_subset_juwels.sbatch +33 -0
  199. remedi-0.1.0/scripts/dataset_creation/calibrate_bitbirch_threshold.py +110 -0
  200. remedi-0.1.0/scripts/dataset_creation/concatenate_datasets.py +20 -0
  201. remedi-0.1.0/scripts/dataset_creation/dataset_analysis.py +74 -0
  202. remedi-0.1.0/scripts/dataset_creation/load_from_sdf_structures.py +48 -0
  203. remedi-0.1.0/scripts/dataset_creation/load_from_smiles.py +62 -0
  204. remedi-0.1.0/scripts/dataset_creation/load_from_tsv_smiles.py +49 -0
  205. remedi-0.1.0/scripts/dataset_creation/load_from_xyz.py +59 -0
  206. remedi-0.1.0/scripts/dataset_creation/load_from_xyz_tmqm.py +71 -0
  207. remedi-0.1.0/scripts/dataset_creation/load_geom_drugs.py +60 -0
  208. remedi-0.1.0/scripts/dataset_creation/load_pcqm100k_juwels.py +118 -0
  209. remedi-0.1.0/scripts/dataset_creation/load_qm9.py +67 -0
  210. remedi-0.1.0/scripts/dataset_creation/nvmolkit_smoke.py +58 -0
  211. remedi-0.1.0/scripts/dataset_creation/nvmolkit_smoke.sbatch +16 -0
  212. remedi-0.1.0/scripts/dataset_creation/run_dataset_comparison.py +49 -0
  213. remedi-0.1.0/scripts/dataset_creation/run_dataset_comparison_full.sbatch +28 -0
  214. remedi-0.1.0/scripts/dataset_creation/run_dataset_comparison_full_all.sbatch +29 -0
  215. remedi-0.1.0/scripts/dataset_creation/run_dataset_comparison_geom_only.sbatch +26 -0
  216. remedi-0.1.0/scripts/dataset_creation/run_dataset_comparison_geom_only_all.sbatch +27 -0
  217. remedi-0.1.0/scripts/dataset_download/download_geomdrugs.sh +8 -0
  218. remedi-0.1.0/scripts/dataset_download/download_pcqm4mv2.sh +9 -0
  219. remedi-0.1.0/scripts/dataset_download/download_riniker_landrum_benchmark_data.sh +65 -0
  220. remedi-0.1.0/scripts/dataset_download/download_tmqm.sh +24 -0
  221. remedi-0.1.0/scripts/dataset_download/dump_polaris.py +211 -0
  222. remedi-0.1.0/scripts/evaluation/chiral_per_class_eval.py +189 -0
  223. remedi-0.1.0/scripts/evaluation/compare_benchmarks.py +155 -0
  224. remedi-0.1.0/scripts/evaluation/correlate_capacity_downstream.py +235 -0
  225. remedi-0.1.0/scripts/evaluation/descriptor_arithmetic.py +167 -0
  226. remedi-0.1.0/scripts/evaluation/embedding_umap.py +176 -0
  227. remedi-0.1.0/scripts/evaluation/eval_pcqm_capacity.py +162 -0
  228. remedi-0.1.0/scripts/evaluation/eval_tmqm_clustering.py +182 -0
  229. remedi-0.1.0/scripts/evaluation/profiling/analyze_mace_invariants.py +279 -0
  230. remedi-0.1.0/scripts/evaluation/profiling/analyze_mace_invariants.yaml +15 -0
  231. remedi-0.1.0/scripts/evaluation/profiling/profile_dataloader.py +108 -0
  232. remedi-0.1.0/scripts/evaluation/profiling/profile_dataloader.yaml +30 -0
  233. remedi-0.1.0/scripts/evaluation/replot.py +56 -0
  234. remedi-0.1.0/scripts/evaluation/run_dataset_analysis.py +21 -0
  235. remedi-0.1.0/scripts/evaluation/run_eval.py +51 -0
  236. remedi-0.1.0/scripts/evaluation/submit_eval_jobs.py +103 -0
  237. remedi-0.1.0/scripts/evaluation/submit_eval_node.sbatch +79 -0
  238. remedi-0.1.0/scripts/evaluation/tanimoto_k_sweep.py +307 -0
  239. remedi-0.1.0/scripts/evaluation/umap_grid_sweep.py +363 -0
  240. remedi-0.1.0/scripts/evaluation/umap_render_sweep.py +166 -0
  241. remedi-0.1.0/scripts/generate_chiral_ablation_configs.py +107 -0
  242. remedi-0.1.0/scripts/generate_pcqm_ablation_configs.py +119 -0
  243. remedi-0.1.0/scripts/run_online_embedding_denoising_pretraining.py +604 -0
  244. remedi-0.1.0/scripts/setup_gpu_job.py +104 -0
  245. remedi-0.1.0/scripts/submit_ablation_node.sbatch +90 -0
  246. remedi-0.1.0/scripts/submit_job.py +126 -0
  247. remedi-0.1.0/scripts/train_chiral_classifier.py +314 -0
  248. remedi-0.1.0/scripts/train_chiral_classifier.sbatch +112 -0
  249. remedi-0.1.0/scripts/write_config_file.py +75 -0
  250. remedi-0.1.0/tests/__init__.py +3 -0
  251. remedi-0.1.0/tests/architecture_config_nops.yaml +29 -0
  252. remedi-0.1.0/tests/architecture_config_ps.yaml +29 -0
  253. remedi-0.1.0/tests/cmrt_raw_test_data.csv +3 -0
  254. remedi-0.1.0/tests/configuration/test_aggregation_config.py +100 -0
  255. remedi-0.1.0/tests/conftest.py +75 -0
  256. remedi-0.1.0/tests/dataloading/test_dataset_splitting.py +1 -0
  257. remedi-0.1.0/tests/dataloading/test_log_scaling_data.py +6 -0
  258. remedi-0.1.0/tests/dataloading/test_mol_ids.py +39 -0
  259. remedi-0.1.0/tests/dataloading/test_samplers.py +356 -0
  260. remedi-0.1.0/tests/model/test_molecular_descriptor.py +50 -0
  261. remedi-0.1.0/tests/model/test_pma_pooling.py +238 -0
  262. remedi-0.1.0/tests/model/test_pooling.py +74 -0
  263. remedi-0.1.0/tests/model/test_preprocessor_padding.py +66 -0
  264. remedi-0.1.0/tests/test_analysis.py +20 -0
  265. remedi-0.1.0/tests/test_architecture_config.yaml +34 -0
  266. remedi-0.1.0/tests/test_architecture_config_encoder_decoder.yaml +25 -0
  267. remedi-0.1.0/tests/test_benchmark_build_config.py +90 -0
  268. remedi-0.1.0/tests/test_benchmark_manifest.py +63 -0
  269. remedi-0.1.0/tests/test_benchmark_runner.py +371 -0
  270. remedi-0.1.0/tests/test_benchmarks_registry.py +78 -0
  271. remedi-0.1.0/tests/test_charge_spin_pipeline.py +251 -0
  272. remedi-0.1.0/tests/test_chiral_cat_generator.py +183 -0
  273. remedi-0.1.0/tests/test_chiral_classifier.py +123 -0
  274. remedi-0.1.0/tests/test_chiral_dataset.py +121 -0
  275. remedi-0.1.0/tests/test_chiro_docking_generator.py +186 -0
  276. remedi-0.1.0/tests/test_configuration.py +262 -0
  277. remedi-0.1.0/tests/test_conformer_timing.py +91 -0
  278. remedi-0.1.0/tests/test_data_batching.py +65 -0
  279. remedi-0.1.0/tests/test_data_concatenation.py +41 -0
  280. remedi-0.1.0/tests/test_data_pipeline.py +75 -0
  281. remedi-0.1.0/tests/test_data_utils.py +46 -0
  282. remedi-0.1.0/tests/test_dataset_analysis.py +257 -0
  283. remedi-0.1.0/tests/test_dataset_comparison.py +228 -0
  284. remedi-0.1.0/tests/test_dataset_io.py +29 -0
  285. remedi-0.1.0/tests/test_dataset_split.py +130 -0
  286. remedi-0.1.0/tests/test_eval_descriptors.py +105 -0
  287. remedi-0.1.0/tests/test_eval_framework.py +308 -0
  288. remedi-0.1.0/tests/test_eval_learners.py +237 -0
  289. remedi-0.1.0/tests/test_eval_metrics.py +53 -0
  290. remedi-0.1.0/tests/test_evaluation.py +183 -0
  291. remedi-0.1.0/tests/test_filter_stages.py +236 -0
  292. remedi-0.1.0/tests/test_irrep_slicing.py +105 -0
  293. remedi-0.1.0/tests/test_job_submission.py +142 -0
  294. remedi-0.1.0/tests/test_layer_selection_and_projection.py +269 -0
  295. remedi-0.1.0/tests/test_linear_probe.py +116 -0
  296. remedi-0.1.0/tests/test_mace_invariant_stats.py +142 -0
  297. remedi-0.1.0/tests/test_model.py +48 -0
  298. remedi-0.1.0/tests/test_moleculenet_generator.py +168 -0
  299. remedi-0.1.0/tests/test_multiclass_eval.py +192 -0
  300. remedi-0.1.0/tests/test_pairwise_ranking.py +129 -0
  301. remedi-0.1.0/tests/test_physchem.py +90 -0
  302. remedi-0.1.0/tests/test_physchem_stage.py +145 -0
  303. remedi-0.1.0/tests/test_preprocessing_mace_inference.py +197 -0
  304. remedi-0.1.0/tests/test_pseudoscalar_generator.py +140 -0
  305. remedi-0.1.0/tests/test_pseudoscalar_paths.py +142 -0
  306. remedi-0.1.0/tests/test_qm9_generator.py +238 -0
  307. remedi-0.1.0/tests/test_retrieval.py +163 -0
  308. remedi-0.1.0/tests/test_scaffold_splits.py +76 -0
  309. remedi-0.1.0/tests/test_similarity_screening.py +0 -0
  310. remedi-0.1.0/tests/test_smiles_storage.py +47 -0
  311. remedi-0.1.0/tests/test_structural_encoding.py +60 -0
  312. remedi-0.1.0/tests/test_tdc_generator.py +167 -0
  313. remedi-0.1.0/tests/test_tmqm_chemical_features.py +530 -0
  314. remedi-0.1.0/tests/test_zarr_sharding.py +204 -0
@@ -0,0 +1,39 @@
1
+ # This workflow will install Python dependencies, run tests and lint with a single version of Python
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3
+
4
+ name: Python application
5
+
6
+ on:
7
+ push:
8
+ branches: [ "main" ]
9
+ pull_request:
10
+ branches: [ "main" ]
11
+
12
+ permissions:
13
+ contents: read
14
+
15
+ jobs:
16
+ build:
17
+
18
+ runs-on: ubuntu-latest
19
+
20
+ steps:
21
+ - uses: actions/checkout@v4
22
+ - name: Set up Python 3.12
23
+ uses: actions/setup-python@v3
24
+ with:
25
+ python-version: "3.12"
26
+ - name: Install dependencies
27
+ run: |
28
+ python -m pip install --upgrade pip
29
+ pip install flake8 pytest
30
+ pip install .
31
+ - name: Lint with flake8
32
+ run: |
33
+ # stop the build if there are Python syntax errors or undefined names
34
+ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
35
+ # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
36
+ flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
37
+ - name: Test with pytest
38
+ run: |
39
+ pytest tests/
@@ -0,0 +1,34 @@
1
+ name: Release to PyPI
2
+
3
+ on:
4
+ push:
5
+ tags: ["v*"]
6
+ workflow_dispatch: # build-only dry run (no publish unless a tag triggered it)
7
+
8
+ jobs:
9
+ build:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ - uses: astral-sh/setup-uv@v5
14
+ - name: Build sdist + wheel
15
+ run: uv build
16
+ - uses: actions/upload-artifact@v4
17
+ with:
18
+ name: dist
19
+ path: dist/
20
+
21
+ publish:
22
+ # Only publish on a tag push; workflow_dispatch just builds above.
23
+ if: startsWith(github.ref, 'refs/tags/v')
24
+ needs: build
25
+ runs-on: ubuntu-latest
26
+ environment: pypi
27
+ permissions:
28
+ id-token: write # OIDC token for PyPI Trusted Publishing
29
+ steps:
30
+ - uses: actions/download-artifact@v4
31
+ with:
32
+ name: dist
33
+ path: dist/
34
+ - uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,25 @@
1
+ __pycache__/
2
+ datasets/
3
+ figures/
4
+ transformer_model/
5
+ mace_model/
6
+ .ruff_cache
7
+ wandb
8
+ .pytest_cache
9
+ .vscode/
10
+ eval_runs/
11
+ training_runs/
12
+ notebooks/
13
+ backed_up_models/
14
+ *.log
15
+ raw_datasets/
16
+ dataset
17
+ uv.lock
18
+ .claude
19
+ .env
20
+ CLAUDE.md
21
+ *.model
22
+ *.err
23
+ *.out
24
+ analysis_output/
25
+ /submit_*.sh
@@ -0,0 +1,15 @@
1
+ repos:
2
+ - repo: https://github.com/pre-commit/pre-commit-hooks
3
+ rev: v5.0.0
4
+ hooks:
5
+ - id: check-yaml
6
+ - id: end-of-file-fixer
7
+ - id: trailing-whitespace
8
+ - id: check-added-large-files
9
+ args: ['--maxkb=1000']
10
+ - repo: https://github.com/astral-sh/ruff-pre-commit
11
+ rev: v0.6.9
12
+ hooks:
13
+ - id: ruff
14
+ args: ["--fix"]
15
+ - id: ruff-format
remedi-0.1.0/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 The Rem3Di Authors
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
remedi-0.1.0/NOTICE ADDED
@@ -0,0 +1,19 @@
1
+ Rem3Di (remedi)
2
+ Copyright 2026 The Rem3Di Authors
3
+
4
+ This product includes software developed for the paper:
5
+ "Rem3Di: Learning smooth, chiral 3D molecular descriptors from atomistic
6
+ foundation models", NeurIPS 2025 Workshop on Symmetry and Geometry in
7
+ Neural Representations.
8
+
9
+ Origin and attribution:
10
+ Source https://github.com/molsuit/Rem3Di
11
+ Documentation https://molsuit.github.io/Rem3Di/
12
+ Paper https://openreview.net/forum?id=jOmZsvXoK5
13
+
14
+ If you use this software in academic or derivative work, please retain this
15
+ notice and cite the paper above.
16
+
17
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
18
+ these files except in compliance with the License. See the LICENSE file for the
19
+ full terms.
remedi-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,161 @@
1
+ Metadata-Version: 2.4
2
+ Name: remedi
3
+ Version: 0.1.0
4
+ Summary: Smooth, chiral 3D molecular descriptors from atomistic foundation models
5
+ Project-URL: Homepage, https://molsuit.github.io/Rem3Di/
6
+ Project-URL: Documentation, https://molsuit.github.io/Rem3Di/
7
+ Project-URL: Repository, https://github.com/molsuit/Rem3Di
8
+ Project-URL: Paper, https://openreview.net/forum?id=jOmZsvXoK5
9
+ Author: The Rem3Di Authors
10
+ License-Expression: Apache-2.0
11
+ License-File: LICENSE
12
+ License-File: NOTICE
13
+ Keywords: cheminformatics,chirality,equivariant,mace,machine-learned-interatomic-potentials,molecular-descriptors
14
+ Classifier: Development Status :: 4 - Beta
15
+ Classifier: Intended Audience :: Science/Research
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
18
+ Classifier: Topic :: Scientific/Engineering :: Chemistry
19
+ Requires-Python: >=3.12
20
+ Requires-Dist: ase>=3.24.0
21
+ Requires-Dist: chemiscope>=1.0.3
22
+ Requires-Dist: datashader>=0.19.0
23
+ Requires-Dist: pyarrow
24
+ Requires-Dist: pydantic
25
+ Requires-Dist: pydantic-yaml
26
+ Requires-Dist: pymatgen>=2026.3.23
27
+ Requires-Dist: pytdc>=0.3.6
28
+ Requires-Dist: rdkit>=2024.9.4
29
+ Requires-Dist: umap-learn
30
+ Requires-Dist: wandb
31
+ Requires-Dist: zarr>=3.2
32
+ Provides-Extra: cpu
33
+ Requires-Dist: mace-torch>=0.3.16; extra == 'cpu'
34
+ Requires-Dist: torch-sim-atomistic; extra == 'cpu'
35
+ Requires-Dist: torch>=2.5.1; extra == 'cpu'
36
+ Provides-Extra: cuda
37
+ Requires-Dist: cuequivariance-ops-torch-cu12==0.9.1; extra == 'cuda'
38
+ Requires-Dist: cuequivariance-torch==0.9.1; extra == 'cuda'
39
+ Requires-Dist: cuequivariance==0.9.1; extra == 'cuda'
40
+ Requires-Dist: mace-torch>=0.3.16; extra == 'cuda'
41
+ Requires-Dist: nvidia-cusparselt-cu12; extra == 'cuda'
42
+ Requires-Dist: nvmolkit>=0.5.0; extra == 'cuda'
43
+ Requires-Dist: torch-sim-atomistic; extra == 'cuda'
44
+ Requires-Dist: torch>=2.5.1; extra == 'cuda'
45
+ Provides-Extra: eval
46
+ Requires-Dist: bblean>=0.10.3; extra == 'eval'
47
+ Requires-Dist: lightgbm>=4.6.0; extra == 'eval'
48
+ Requires-Dist: molfeat; extra == 'eval'
49
+ Requires-Dist: pandas; extra == 'eval'
50
+ Requires-Dist: pyyaml; extra == 'eval'
51
+ Requires-Dist: scikit-learn; extra == 'eval'
52
+ Requires-Dist: scipy; extra == 'eval'
53
+ Description-Content-Type: text/markdown
54
+
55
+ # Rem3Di: REpresentation learning for Molecules with 3D Information
56
+
57
+ <div align="center">
58
+ <b>Learning smooth, chiral 3D molecular representations from equivariant atomistic foundation models</b>
59
+ <br> <br>
60
+ <a href="https://www.linkedin.com/in/steffen-wedig/" target="_blank">Steffen&nbsp;Wedig</a> &emsp; <b>&middot;</b> &emsp;
61
+ <a href="https://www.felixburton.com" target="_blank">Felix&nbsp;Burton</a> &emsp; <b>&middot;</b> &emsp;
62
+ <a href="https://www.linkedin.com/in/rokas-elijošius-9148a8147/" target="_blank">Rokas&nbsp;Elijošius</a><sup>*</sup> &emsp; <b>&middot;</b> &emsp;
63
+ <a href="https://www.phy.cam.ac.uk/profile/dr-christoph-schran/" target="_blank">Christoph&nbsp;Schran</a><sup>*</sup> &emsp; <b>&middot;</b> &emsp;
64
+ <a href="https://www.larsschaaf.com" target="_blank">Lars&nbsp;L.&nbsp;Schaaf</a><sup>*</sup>
65
+ <br> <br>
66
+ <a href="https://openreview.net/forum?id=jOmZsvXoK5&referrer" target="_blank"><b><u>Paper Link</u></b></a>
67
+ &emsp;
68
+ <a href="https://molsuit.github.io/Rem3Di/" target="_blank"><img alt="Documentation" src="https://img.shields.io/badge/Documentation-online-blue"></a>
69
+ <br> <br>
70
+ </div>
71
+
72
+ <div align="center">
73
+ <img width="600" alt="Rem3Di" src="docs/header-rem3di.jpg"/>
74
+ </div>
75
+
76
+
77
+ ## Documentation
78
+
79
+ 📖 Full usage docs — installation, quickstart, evaluating models, training downstream
80
+ heads, training from scratch, and concepts — are online at
81
+ **<https://molsuit.github.io/Rem3Di/>**.
82
+
83
+
84
+
85
+ ## Setup
86
+ 1. pip install from pyproject.toml
87
+ 2. Additionally clone and install a torch-sim fork from https://github.com/steffen-wedig/torch-sim
88
+
89
+
90
+ ## Raw dataset download
91
+ We work with a number of different datasets for benchmarking Rem3Di.
92
+
93
+ Scripts to download these datasets from can be found in scripts/dataset_download. All scripts take the target destination folder as their first argument.
94
+
95
+ Example: Geom Drugs can be downloaded by:
96
+
97
+ ```bash
98
+ mkdir raw_datasets
99
+ bash scripts/dataset_download/download_geomdrugs.sh ./raw_datasets
100
+ ```
101
+
102
+ ## Generating a MoleculeDataset for Training
103
+ TL;DR: We generate molecular datasets containing molecular structures and their mace descriptors from various sources, examples can be found in ```scripts/dataset_creation```.
104
+
105
+
106
+ ### Dataset Overview
107
+ MoleculeDatasets (```remedi/data_handling/dataset/molecule_dataset.py```) is the object that contains all embedding and structural data for our molecular datasets. The datasets can further contain system wide, molecular labels, or atomwise labels, which can be used for training regression models. Our datasets are backed by zarr arrays(Design motivitation: multithreaded read access from disk, when dataset size exceeds memory limit). As the size of molecules varies, the MoleculeDataset contain pointer values that point to the molecules atom limits.
108
+
109
+ ### Dataset Generation
110
+ Dataset generation is implemented batchwise to increase performance, as GPU memory can be fully utilized in this way. The pipeline goes through the following stages.
111
+
112
+ 1. MoleculeGenerators yield batches of smiles or processed ase atoms, in case the molecular structures are available in the datasets. For a new data source, like a new dataset that stores molecular data in its own way, you need to implement a new MoleculeGenerator.
113
+ 2. Configurable Orchestrator will execute the pipeline. E.g. perform conformal sampling, relaxation. Lastly, the mace descriptors will be configured
114
+ 3. Everything (Embeddings, structures, optional system wide or atom wise regression labels) will be shoved into the right zarr arrays in the MoleculeDataset.
115
+
116
+ ## Running Pretraining
117
+ 1. Create a training dir with a training_config.yaml and architecture_config.yaml **or** generate the architecture_config.yaml with the scripts/write_config_file.py script. In the train dir
118
+ 2. Run pretrainig via scripts/scripts/run_denoising_pretraining.py --train_dir "dir"
119
+
120
+ One note re. training: For training we create new dataset object (class TrainingMoleculeDataset). This contains additionally logic how multiple dataloader workers can simulatounsly retireve data from the same zarr files.
121
+
122
+
123
+ ## Using Pretrained Model
124
+
125
+
126
+
127
+ ```python
128
+ import torch
129
+ from remedi.configuration.architecture_config import EncoderOnlyArchitectureConfig
130
+ from remedi.evaluation.evaluation_utils import evaluate_molecular_descriptor_on_dataset
131
+ from remedi.data_handling.dataset.training_dataset import (
132
+ TrainingMoleculeDataset,
133
+ pos_emb_getitem,
134
+ )
135
+ ds = TrainingMoleculeDataset(training_config.dataset_path, get_item=pos_emb_getitem)
136
+ model = EncoderOnlyArchitectureConfig.from_directory(model_dir).build()
137
+ model.encoder.load_state_dict(torch.load(f"{model_dir}/encoder.pth"))
138
+ model.preprocessor.atomic_preprocessor.load_state_dict(
139
+ torch.load(f"{model_dir}/atomic_preprocessor.pth")
140
+ )
141
+ model.preprocessor.geometric_preprocessor.load_state_dict(
142
+ torch.load(f"{model_dir}/geometric_preprocessor.pth")
143
+ )
144
+ remedi_descriptors = evaluate_molecular_descriptor_on_dataset(model, ds)
145
+ ```
146
+
147
+ ## Citation
148
+
149
+ If you use any of this code in your work, please cite our paper
150
+ (<a href="https://openreview.net/forum?id=jOmZsvXoK5&referrer" target="_blank">OpenReview</a>):
151
+
152
+ > Wedig, Steffen, et al. <a href="https://openreview.net/forum?id=jOmZsvXoK5&referrer" target="_blank">"REM3DI: Learning smooth, chiral 3D molecular representations from equivariant atomistic foundation models."</a> NeurIPS 2025 Workshop on Symmetry and Geometry in Neural Representations. 2025.
153
+
154
+ ```bibtex
155
+ @inproceedings{wedig2025rem3di,
156
+ title={REM3DI: Learning smooth, chiral 3D molecular representations from equivariant atomistic foundation models},
157
+ author={Wedig, Steffen and Elijo{\v{s}}ius, Rokas and Schran, Christoph and Schaaf, Lars Leon},
158
+ booktitle={NeurIPS 2025 Workshop on Symmetry and Geometry in Neural Representations},
159
+ year={2025}
160
+ }
161
+ ```
remedi-0.1.0/README.md ADDED
@@ -0,0 +1,107 @@
1
+ # Rem3Di: REpresentation learning for Molecules with 3D Information
2
+
3
+ <div align="center">
4
+ <b>Learning smooth, chiral 3D molecular representations from equivariant atomistic foundation models</b>
5
+ <br> <br>
6
+ <a href="https://www.linkedin.com/in/steffen-wedig/" target="_blank">Steffen&nbsp;Wedig</a> &emsp; <b>&middot;</b> &emsp;
7
+ <a href="https://www.felixburton.com" target="_blank">Felix&nbsp;Burton</a> &emsp; <b>&middot;</b> &emsp;
8
+ <a href="https://www.linkedin.com/in/rokas-elijošius-9148a8147/" target="_blank">Rokas&nbsp;Elijošius</a><sup>*</sup> &emsp; <b>&middot;</b> &emsp;
9
+ <a href="https://www.phy.cam.ac.uk/profile/dr-christoph-schran/" target="_blank">Christoph&nbsp;Schran</a><sup>*</sup> &emsp; <b>&middot;</b> &emsp;
10
+ <a href="https://www.larsschaaf.com" target="_blank">Lars&nbsp;L.&nbsp;Schaaf</a><sup>*</sup>
11
+ <br> <br>
12
+ <a href="https://openreview.net/forum?id=jOmZsvXoK5&referrer" target="_blank"><b><u>Paper Link</u></b></a>
13
+ &emsp;
14
+ <a href="https://molsuit.github.io/Rem3Di/" target="_blank"><img alt="Documentation" src="https://img.shields.io/badge/Documentation-online-blue"></a>
15
+ <br> <br>
16
+ </div>
17
+
18
+ <div align="center">
19
+ <img width="600" alt="Rem3Di" src="docs/header-rem3di.jpg"/>
20
+ </div>
21
+
22
+
23
+ ## Documentation
24
+
25
+ 📖 Full usage docs — installation, quickstart, evaluating models, training downstream
26
+ heads, training from scratch, and concepts — are online at
27
+ **<https://molsuit.github.io/Rem3Di/>**.
28
+
29
+
30
+
31
+ ## Setup
32
+ 1. pip install from pyproject.toml
33
+ 2. Additionally clone and install a torch-sim fork from https://github.com/steffen-wedig/torch-sim
34
+
35
+
36
+ ## Raw dataset download
37
+ We work with a number of different datasets for benchmarking Rem3Di.
38
+
39
+ Scripts to download these datasets from can be found in scripts/dataset_download. All scripts take the target destination folder as their first argument.
40
+
41
+ Example: Geom Drugs can be downloaded by:
42
+
43
+ ```bash
44
+ mkdir raw_datasets
45
+ bash scripts/dataset_download/download_geomdrugs.sh ./raw_datasets
46
+ ```
47
+
48
+ ## Generating a MoleculeDataset for Training
49
+ TL;DR: We generate molecular datasets containing molecular structures and their mace descriptors from various sources, examples can be found in ```scripts/dataset_creation```.
50
+
51
+
52
+ ### Dataset Overview
53
+ MoleculeDatasets (```remedi/data_handling/dataset/molecule_dataset.py```) is the object that contains all embedding and structural data for our molecular datasets. The datasets can further contain system wide, molecular labels, or atomwise labels, which can be used for training regression models. Our datasets are backed by zarr arrays(Design motivitation: multithreaded read access from disk, when dataset size exceeds memory limit). As the size of molecules varies, the MoleculeDataset contain pointer values that point to the molecules atom limits.
54
+
55
+ ### Dataset Generation
56
+ Dataset generation is implemented batchwise to increase performance, as GPU memory can be fully utilized in this way. The pipeline goes through the following stages.
57
+
58
+ 1. MoleculeGenerators yield batches of smiles or processed ase atoms, in case the molecular structures are available in the datasets. For a new data source, like a new dataset that stores molecular data in its own way, you need to implement a new MoleculeGenerator.
59
+ 2. Configurable Orchestrator will execute the pipeline. E.g. perform conformal sampling, relaxation. Lastly, the mace descriptors will be configured
60
+ 3. Everything (Embeddings, structures, optional system wide or atom wise regression labels) will be shoved into the right zarr arrays in the MoleculeDataset.
61
+
62
+ ## Running Pretraining
63
+ 1. Create a training dir with a training_config.yaml and architecture_config.yaml **or** generate the architecture_config.yaml with the scripts/write_config_file.py script. In the train dir
64
+ 2. Run pretrainig via scripts/scripts/run_denoising_pretraining.py --train_dir "dir"
65
+
66
+ One note re. training: For training we create new dataset object (class TrainingMoleculeDataset). This contains additionally logic how multiple dataloader workers can simulatounsly retireve data from the same zarr files.
67
+
68
+
69
+ ## Using Pretrained Model
70
+
71
+
72
+
73
+ ```python
74
+ import torch
75
+ from remedi.configuration.architecture_config import EncoderOnlyArchitectureConfig
76
+ from remedi.evaluation.evaluation_utils import evaluate_molecular_descriptor_on_dataset
77
+ from remedi.data_handling.dataset.training_dataset import (
78
+ TrainingMoleculeDataset,
79
+ pos_emb_getitem,
80
+ )
81
+ ds = TrainingMoleculeDataset(training_config.dataset_path, get_item=pos_emb_getitem)
82
+ model = EncoderOnlyArchitectureConfig.from_directory(model_dir).build()
83
+ model.encoder.load_state_dict(torch.load(f"{model_dir}/encoder.pth"))
84
+ model.preprocessor.atomic_preprocessor.load_state_dict(
85
+ torch.load(f"{model_dir}/atomic_preprocessor.pth")
86
+ )
87
+ model.preprocessor.geometric_preprocessor.load_state_dict(
88
+ torch.load(f"{model_dir}/geometric_preprocessor.pth")
89
+ )
90
+ remedi_descriptors = evaluate_molecular_descriptor_on_dataset(model, ds)
91
+ ```
92
+
93
+ ## Citation
94
+
95
+ If you use any of this code in your work, please cite our paper
96
+ (<a href="https://openreview.net/forum?id=jOmZsvXoK5&referrer" target="_blank">OpenReview</a>):
97
+
98
+ > Wedig, Steffen, et al. <a href="https://openreview.net/forum?id=jOmZsvXoK5&referrer" target="_blank">"REM3DI: Learning smooth, chiral 3D molecular representations from equivariant atomistic foundation models."</a> NeurIPS 2025 Workshop on Symmetry and Geometry in Neural Representations. 2025.
99
+
100
+ ```bibtex
101
+ @inproceedings{wedig2025rem3di,
102
+ title={REM3DI: Learning smooth, chiral 3D molecular representations from equivariant atomistic foundation models},
103
+ author={Wedig, Steffen and Elijo{\v{s}}ius, Rokas and Schran, Christoph and Schaaf, Lars Leon},
104
+ booktitle={NeurIPS 2025 Workshop on Symmetry and Geometry in Neural Representations},
105
+ year={2025}
106
+ }
107
+ ```
@@ -0,0 +1,24 @@
1
+ # Local benchmark dataset-build config — invoked by
2
+ # `scripts/dataset_creation/build_benchmark_dataset.py`. Builds every
3
+ # registered MoleculeNet + TDC ADMET benchmark; re-running is idempotent
4
+ # (datasets whose zarr subdir already exists are skipped).
5
+
6
+ output_root: /path/to/datasets/benchmarks
7
+ moleculenet_raw_root: /path/to/molecule_net
8
+ tdc_cache: /path/to/datasets/tdc_cache
9
+ polaris_raw_root: /path/to/raw_datasets/polaris
10
+
11
+ batch_size: 256
12
+ n_sampled_conformers: 1
13
+ max_embed_attempts: 200
14
+ max_mmff_steps: 100
15
+ mmff_non_bonded_thresh: 100.0
16
+
17
+ tdc_train_valid_seed: 1
18
+
19
+ filter:
20
+ max_atoms: 100
21
+ element_set: mace_off
22
+ strip_salts: true
23
+ neutralize: true
24
+ dedupe: true