You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, I am quite often evaluating models with different revisions and the current save logic groups these all together in the same subfolder which makes it hard to determine which result corresponds to which run.
Would it make sense to append the model revision parameter to the filepaths, e.g. something like this for the main revision (or whatever is passed to the revision arg in the script):
My current workaround is to manually specify the model path in --output_dir={ORG}/{MODEL_ID}/{REVISION} and then glob the files. This is fine, but a bit clunky because one ends up with a long nested path like {ORG}/{MODEL_ID}/{REVISION}/results/{ORG}/{MODEL_ID}
Would {ORG}/{MODEL_ID}_{REVISION} work for you?
I think it would allow you to get the info you need, without creating too many nested levels for users for which it would be irrelevant.
If that would, I can add it to our logging.
Would {ORG}/{MODEL_ID}_{REVISION} work for you? I think it would allow you to get the info you need, without creating too many nested levels for users for which it would be irrelevant. If that would, I can add it to our logging.
That would be perfect! Note that using the revision (not necessarily the SHA) would be ideal so that one can distinguish e.g. branches or tags like vX.Y from each other. I realise this is quite a niche ask, so don't worry if it's too annoying to include
Actually after thinking about this a bit more, a somewhat better approach IMO would be to let the user specify the filepath in --output_dir, after which we dump the details/results there. This way people like me can nest the results as desired and we don't need to hardcode more logic :)
We expect the results to follow a specific path when pushed to the hub, which is one of the reasons why we have this nested architecture. At which level would you want to have control over the path?
like to take this one if it's still wanted. plan is to include the revision in both the results and details output paths so runs against different checkpoints don't collide, and to add a {revision} placeholder to results_path_template for consistency. one question. if the revision isn't already captured on GeneralConfigLogger i'd thread it through from the model config as part of this. does that sound right or would you rather keep the scope to just the path change
Activity
clefourrier commentedon Feb 26, 2024
Would
{ORG}/{MODEL_ID}_{REVISION}work for you?I think it would allow you to get the info you need, without creating too many nested levels for users for which it would be irrelevant.
If that would, I can add it to our logging.
lewtun commentedon Feb 27, 2024
That would be perfect! Note that using the revision (not necessarily the SHA) would be ideal so that one can distinguish e.g. branches or tags like
vX.Yfrom each other. I realise this is quite a niche ask, so don't worry if it's too annoying to includelewtun commentedon Mar 4, 2024
Actually after thinking about this a bit more, a somewhat better approach IMO would be to let the user specify the filepath in
--output_dir, after which we dump the details/results there. This way people like me can nest the results as desired and we don't need to hardcode more logic :)clefourrier commentedon Mar 5, 2024
We expect the results to follow a specific path when pushed to the hub, which is one of the reasons why we have this nested architecture. At which level would you want to have control over the path?
Oligou commentedon Sep 10, 2025
The revision information could also appear in the .json output in "config_general".
thisisreyy commentedon Aug 30, 2026
like to take this one if it's still wanted. plan is to include the revision in both the results and details output paths so runs against different checkpoints don't collide, and to add a {revision} placeholder to results_path_template for consistency. one question. if the revision isn't already captured on GeneralConfigLogger i'd thread it through from the model config as part of this. does that sound right or would you rather keep the scope to just the path change