Skip to content

Fix three issues blocking HELM_MiCE from running on repo defaults - #9

Open
kaisaraka wants to merge 1 commit into
Graph-and-Geometric-Learning:mainfrom
kaisaraka:fix-repo-runnability
Open

Fix three issues blocking HELM_MiCE from running on repo defaults#9
kaisaraka wants to merge 1 commit into
Graph-and-Geometric-Learning:mainfrom
kaisaraka:fix-repo-runnability

Conversation

@kaisaraka

Copy link
Copy Markdown
Collaborator

Building the model from repo defaults (torch 2.11) hits three errors in helm/modules/mice.py:

  1. moe_inter_dim undefined (line 190-191): the config defines mice_inter_dim, but the experts read args.moe_inter_dim → AttributeError: 'Namespace' object has no attribute 'moe_inter_dim'. Renamed to mice_inter_dim.

  2. bool flag passed as int (line 189): args.train_curv is 1 (int), and geoopt's Lorentz(learnable=...) rejects it on torch 2.11 (require_grad must be bool, not int). Wrapped in bool(...).

  3. .eval() unpack error (line 215): LorentzMoE.forward unpacks three values from Gate.forward, which returns two in eval mode → ValueError: not enough values to unpack. Made the unpack tolerant of both.

Verified the model builds and runs a forward in both train and eval mode after the fixes. These block anyone running the repo on defaults, not specific to my setup.

@kaisaraka
kaisaraka requested a review from heneil July 22, 2026 15:24
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