mirror of
https://github.com/karpathy/nanochat.git
synced 2026-04-14 04:48:24 +00:00
remove unneeded Path casting
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
This commit is contained in:
parent
e6da3d7768
commit
b2dcc8dda7
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user