protomotions.agents.fine_tuning.agent module#
PPO base class for agents that fine-tune frozen pretrained modules.
- class protomotions.agents.fine_tuning.agent.FineTuningAgent(fabric, env, config, root_dir=None)[source]#
Bases:
PretrainedModulesMixin,PPOPPO base for models that capture frozen pretrained modules during setup.
pretrainedis populated beforecreate_model(), consumed by the concrete model, then dropped after model reset. Surviving references live through the model that captured them. Subclasses should put adapter setup or other initialization that depends on those captured modules in_post_create_model_hook.