Skip to content

Commit

Permalink
Update adding_custom_model.md
Browse files Browse the repository at this point in the history
  • Loading branch information
11carlesnavarro authored Apr 29, 2024
1 parent a811794 commit f27daf1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tutorials/adding_custom_model.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def create_custom_critic(config, vocabulary_size, critic_value_per_action=False)
```

and then add it to the model factory:

```
def custom_model_factory(cfg, *args, **kwargs):
return (
partial(create_custom_actor, cfg),
Expand All @@ -324,3 +324,4 @@ def custom_model_factory(cfg, *args, **kwargs):
resources.files("acegen.priors") / "custom_model.ckpt",
None,
)
```

0 comments on commit f27daf1

Please sign in to comment.