Add CMG task: Conditional Material Generation (paper task)#52
Open
doncamilom wants to merge 2 commits intomainfrom
Open
Add CMG task: Conditional Material Generation (paper task)#52doncamilom wants to merge 2 commits intomainfrom
doncamilom wants to merge 2 commits intomainfrom
Conversation
Open
doncamilom
added a commit
that referenced
this pull request
Apr 6, 2026
- demo/crystalrelax_tiny: 8 train / 2 test M2S binary compound fixtures
- fixture_manifest.csv and run_fixture_smoke.py updated (conditional on
heavy deps being available)
- relaxing.py: add _has_local_files() guard to skip download_data when
local files exist (consistent with ForwardReaction pattern)
- Remove orphaned cmg.yaml (CMG task moved to PR #52)
Cherry-picked from condmatgen-jeffrey. Given a set of chemical elements, the model proposes a novel crystalline compound with a space group number. Reward includes SMACT validity, element precision, and novelty bonus. Paper task reported in Table 4. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
713abca to
4223010
Compare
doncamilom
added a commit
that referenced
this pull request
Apr 6, 2026
- demo/crystalrelax_tiny: 8 train / 2 test M2S binary compound fixtures
- fixture_manifest.csv and run_fixture_smoke.py updated (conditional on
heavy deps being available)
- relaxing.py: add _has_local_files() guard to skip download_data when
local files exist (consistent with ForwardReaction pattern)
- Remove orphaned cmg.yaml (CMG task moved to PR #52)
Contributor
Author
|
Rebased onto main (post-#60). Clean diff, no regressions, CI should be green. Remaining items after merge:
— Andres |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
condmatgen-jeffreyChanges
src/open_r1/tasks/condmatgen/condmatgen.py— task implementation with lazy pymatgen/smact imports,expand_pathfor dataset loading, relative path forcomps_used_in_sft.jsonsrc/open_r1/tasks/condmatgen/comps_used_in_sft.json— compositions seen during SFT (for novelty bonus)src/open_r1/tasks/__init__.py— registercondmatgentask with try/except for optional depsrecipes/condmatgen.yaml— recipe with${MIST_DATA_DIR}/condmatgendataset pathdocs/source/tasks/condmatgen.rst— Sphinx autodoc pagedocs/source/modules.rst— add condmatgen to toctreeTest plan
python -c "from open_r1.tasks import CHEMTASKS; print(CHEMTASKS.get('condmatgen'))"succeeds (with pymatgen installed)🤖 Generated with Claude Code