Get ESMFold2 importing: add __all__ + load ESMC via the Auto registry
- Add `__all__ = ["ESMFold2Model"]` to modeling_esmfold2.py so the model is
exported (`from transformers import ESMFold2Model` now works; previously the
class was defined but the module had no `__all__`).
- Replace the hard cross-model import `from ..esmc.modeling_esmc import
ESMCModel` in `load_esmc` (both modeling_esmfold2.py and the experimental
file) with `AutoModel.from_pretrained(...)`. ESMC is a shared, frozen 6B
backbone loaded separately from its own repo (`config.esmc_id`); resolving it
through the Auto registry (model_type "esmc" -> ESMCModel) keeps esmc and
esmfold2 as separate model directories without a runtime cross-dir import.
Verified: ESMFold2Model + ESMFold2Config export; core + experimental modules
import; no `..esmc` imports remain in the esmfold2 dir; AutoModel.from_config
resolves ESMCConfig -> ESMCModel. (Also removed the empty kernels/ and
distributed/ dirs left behind by their earlier git rm.)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>