Skip to content

Conversation

@Jack-Khuu
Copy link
Contributor

@Jack-Khuu Jack-Khuu commented Jan 13, 2026

We don't always want to use the cached routing config. This adds an option to turn off the cache


python -m Fuser.auto_agent --problem /home/jackkhuu/KernelBench/KernelBench/level3/33_VanillaRNN.py
python -m Fuser.auto_agent --problem /home/jackkhuu/KernelBench/KernelBench/level3/33_VanillaRNN.py --no-router-cache

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jan 13, 2026
@Jack-Khuu Jack-Khuu changed the title Add option to ignore router cache [AutoAgent] Add option to ignore router cache Jan 13, 2026
Copy link
Contributor

@kaiming-cheng kaiming-cheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, leave one review on the _load_router_cache call

}
_save_router_cache(cache)
if self.use_router_cache:
cache[code_hash] = info.get("parsed") or {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

router-emitted config.llm_models / config.ka_model can be non-configured/inaccessible, gets cached verbatim, and later runs apply it unvalidated. Please consider validating/intersecting against the local registry (utils/providers/available_models.py) + provider availability before (a) applying and/or (b) writing to cache.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, I have a local fix I'll push in a separate PR since there's actually some other bugs that get tackled over there

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#79

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

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants