You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PR Review: Additional modifications to train on plant genomes
This PR adds support for training on plant genomes by creating sharded versions of the Angiosperm_16_genomes dataset. I've conducted a comprehensive review following CLAUDE.md standards.
Summary of Changes
Added 2 utility scripts in experiments/training_data/ for dataset preparation
Modified configs/data/plants.yaml to use local sharded dataset
Added new experiment config: plants_clm_transformer_base.yaml
Updated README with dataset download command
✅ Strengths
Proper experiments directory usage - Scripts correctly placed in experiments/ with appropriate standards
PEP 723 inline script metadata - Excellent use of inline dependency declarations
Clear separation of concerns - Sharding and uploading properly separated
Good documentation - Scripts have clear docstrings
🔍 Critical Issues Requiring Action
1. Missing Issue Reference ⚠️
Problem: No GitHub issue referenced, violating Agentic Git Flow CLAUDE.md: "All work starts with GitHub issue" Action: Link to issue or create one
2. Missing Tests ⚠️
Problem: New experiment config not tested Action: Add test to test_configs.py to verify config instantiation
3. Dataset Path Validation ⚠️
Problem: Changed from HF dataset ID to local path - needs verification Action: Test that load_dataset() works with local path and streaming
4. Missing Documentation ⚠️
Problem: No README in experiments/training_data/ Action: Add README explaining workflow (shard → upload → download)
📝 Code Quality Issues
Type Hints
shard_dataset.py:77 - main() missing return type hint (add -> None)
upload_dataset.py:24 - main() missing return type hint
Hardcoded Values
upload_dataset.py:37 - Default repo ID hardcoded to "gonzalobenegas/..."
Recommendation: Make required or document that users should customize
Error Handling
upload_dataset.py:73-80 - No try/except for network errors
shard_dataset.py - No validation that output dir is writable
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
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.
No description provided.