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
I've reviewed this PR against the CLAUDE.md guidelines. Here's my feedback:
🔴 Critical Issues
1. Missing soft_masked_weight Parameter
Location: Both experiment configs Issue: The configs don't specify soft_masked_weight in the data section, but the model config (clm_transformer_base.yaml:3) references ${data.soft_masked_weight}.
Impact: This will cause a Hydra interpolation error at runtime since the key is missing.
Fix: Add to both configs:
data:
_target_: glm_experiments.data.lm_datamodule.CLMDataModuledataset_name: data/gonzalobenegas/genomes-v2-genome_set-animals-intervals-v1_512_256per_device_batch_size: 256data_augmentation: falsesoft_masked_weight: 0.01# Required - referenced by model config
2. Missing evals Parameter
Location: Both experiment configs Issue: Similarly, the model config references ${data.evals} (line 4) but it's not defined.
Fix: Add to both configs:
data:
evals: null # Or specify eval datasets if needed
⚠️ Medium Priority Issues
3. Duplicate WandB Name
Location:clm_transformer_base_new_dataset_vertebrates.yaml:12 Issue: Both configs use the same wandb name experiment-clm-transformer-base-new-dataset, making it hard to distinguish runs.
Location:clm_transformer_base_new_dataset_vertebrates.yaml:4 Issue: Comment says experiment=clm_transformer_base_new_dataset but should be experiment=clm_transformer_base_new_dataset_vertebrates.
Fix:
# to execute this experiment run:# python glm_experiments/train.py experiment=clm_transformer_base_new_dataset_vertebrates
📝 Recommendations
5. Missing Dataset Validation
Concern: The README.md is updated to include download instructions for the new dataset, but there's no verification that:
The dataset exists at the specified HuggingFace path
The dataset has the expected structure (columns, format)
The dataset is compatible with CLMDataModule
Suggestion: Add a simple test or at least manually verify the dataset can be loaded.
6. Inconsistent Pattern with Base Config
Observation:clm_transformer_base.yaml doesn't explicitly override data_augmentation: false, but these new configs do. This is fine, but worth noting for consistency.
✅ Positive Observations
Proper use of Hydra _target_ instantiation pattern
Correct scheduler configuration with interpolation (${trainer.max_steps})
Appropriate tags for experiment tracking
Follows existing experiment config structure
🧪 Testing Recommendation
Since this PR was merged, I recommend:
Running both experiment configs to verify they don't crash on startup
Checking that the Hydra interpolations resolve correctly
Verifying the datasets can be loaded
Command to test:
# Dry-run to check config resolution
uv run python glm_experiments/train.py experiment=clm_transformer_base_new_dataset --cfg job
# Check vertebrates config
uv run python glm_experiments/train.py experiment=clm_transformer_base_new_dataset_vertebrates --cfg job
Summary
Severity: Medium-High - The missing required parameters will cause runtime failures.
Action Required: Either:
Create a follow-up PR to fix the missing parameters, OR
Verify that subsequent commits already addressed these issues
Review conducted following CLAUDE.md standards for configuration management and Hydra patterns.
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.