remove unneeded Path casting

Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
This commit is contained in:
Tsvika Shapira 2025-12-27 13:58:50 +02:00 committed by GitHub
parent e6da3d7768
commit b2dcc8dda7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -148,5 +148,5 @@ def load_model(source, *args, **kwargs):
"rl": "chatrl_checkpoints",
}[source]
base_dir = get_base_dir()
checkpoints_dir = Path(base_dir) / model_dir
checkpoints_dir = base_dir / model_dir
return load_model_from_dir(checkpoints_dir, *args, **kwargs)