Skip to content

Type max_inference_sigma as float | None to match downstream consumer#314

Merged
ebetica merged 1 commit into
Biohub:mainfrom
bviggiano:fix/max-inference-sigma-type
May 30, 2026
Merged

Type max_inference_sigma as float | None to match downstream consumer#314
ebetica merged 1 commit into
Biohub:mainfrom
bviggiano:fix/max-inference-sigma-type

Conversation

@bviggiano
Copy link
Copy Markdown
Contributor

@bviggiano bviggiano commented May 28, 2026

The fold() / prepare_input() signature in esm/models/esmfold2/processor.py types max_inference_sigma as int | None, but the downstream consumer in transformers/models/esmfold2/modeling_esmfold2_common.py:1722 types it as float | None = 256.0 and casts float(max_inference_sigma) at the use site.

Sigma is a continuous quantity along the Karras schedule, so float is the correct type. The default value (256.0) is already a float. This patch aligns the user-facing API type annotation with what the model consumes.

@ebetica ebetica merged commit b6b0e88 into Biohub:main May 30, 2026
1 of 2 checks passed
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.

2 participants