Skip to content

Docs/update impress r restructure - #18

Open
mgoliyad wants to merge 6 commits into
mainfrom
docs/update-impress-r-restructure
Open

mgoliyad wants to merge 6 commits into
mainfrom
docs/update-impress-r-restructure

Conversation

@mgoliyad

@mgoliyad mgoliyad commented Oct 1, 2026

Copy link
Copy Markdown
Collaborator

Major updates for unit tests and documentation

Mariya Goliyad and others added 6 commits September 28, 2026 16:48
…and llm dtype arg

- stream.py: set status=FAILED (not RUNNING) when reload raises, so waiters
  in reload_model() don't incorrectly assume the new weights are loaded
- trainer.py: add max_consecutive_failures to TrainerConfig; auto-train loop
  now stops after N consecutive failed rounds rather than retrying indefinitely
- train/llm.py: fix dtype= -> torch_dtype= in AutoModelForCausalLM.from_pretrained
- data.py: promote rejected/duplicate record log messages from debug to info

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add unified delta_gpu_run.sh / delta_env_setup.sh for both
  protein_binding and small_molecule_binding use cases
- Add submit.sh wrapper that sets --job-name=${IMPRESS_USECASE}
  so SLURM %x routes logs to <use_case>/logs/ automatically
- Move PB trainer files into protein_binding/ subdirectory
- Add small_molecule_binding/ with run_smb_rome.py (removes
  TEST/RunConfig import, reads N_PIPELINES from env only) and
  LigandMPNN trainer
- Add unified README.md and skill.md (reward functions, filters,
  checkpoint guide, Dragon warning, reward customisation section)
- Remove old flat impress_r scripts superseded by the above
- Update .gitignore: campaign_outputs/, **/logs/, asyncflow.session.*/

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbNxkFCwkCEEkHnN8xGH7Q
mpnn.py moved to protein_binding/mpnn_trainer.py in the impress_r
restructure. Update gen_ref_pages.py EXTRA_MODULES and the three
hand-written doc pages that linked to the old generated API path.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbNxkFCwkCEEkHnN8xGH7Q
Update all test files to use the new module paths following the
impress_r restructure:
  examples.impress_r.mpnn          -> examples.impress_r.protein_binding.mpnn_trainer
  examples.impress_r.mpnn_stream   -> examples.impress_r.protein_binding.mpnn_stream
  examples.impress_r.mpnn_train_wrapper -> examples.impress_r.protein_binding.mpnn_train_wrapper
  examples.impress_r.run_protein_binding_rome -> examples.impress_r.protein_binding.run_protein_binding_rome

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbNxkFCwkCEEkHnN8xGH7Q
- §5(d): replace deleted adaptive_rome.py smoke test with
  pytest tests/unit/test_impress_r_hooks.py + test_impress_r.py
- §7: replace hand-written sbatch script with submit.sh workflow
- §8: replace "swapping stubs" table with env var requirements
  table for the real production script
- §9: fix percentile_sampler import path; replace deleted
  af_stats_watch.py with direct af_stats CSV inspection note

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbNxkFCwkCEEkHnN8xGH7Q
Tests:
- Replace warmup_ratio → warmup_steps in GRPOConfig/SFTConfig (TRL dropped warmup_ratio)
- Add use_cpu=True in TRL config unit tests (newer transformers validates GPU at init)
- Update test_impress_r.py to ImpressManager(flow) API (takes WorkflowEngine, not backend)
- Fix broken DragonExecutionBackend compat shim (except branch imported wrong name)
- Parquet → JSON for train manifest; drop pyarrow dependency

Docs:
- Delete docs/impress.md; absorb unique content into proteinmpnn_training.md and examples/impress-r.md
- delta.md: fix Python version, install commands, smoke-test output, log path, DragonExecutionBackend call
- README.md and examples/impress_r/README.md: rewrite as lean seam-contract, no duplicate content
- Fix all dauparas/ProteinMPNN → $MPNN_PATH, old GitHub URLs → radical-collaboration/ROME
- DragonExecutionBackendV3 → DragonExecutionBackend compat shim (rhapsody 0.5.0 rename)
- dragon-cleanup-deprecated added to delta_gpu_run.sh (SLURM timeout fix)
- skill.md: fix log format discrepancies

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbNxkFCwkCEEkHnN8xGH7Q

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant