Skip to content

A straightforward method for training your LLM, from downloading data to generating text.

fix(config): show config paths with forward slashes in error messages on Windows

FareedKhan-dev4a256da40d36
diff --git a/config/loader.py b/config/loader.py
index 640d827..58c4e05 100644
--- a/config/loader.py
+++ b/config/loader.py
@@ -57,7 +57,7 @@ def _resolve_base(json_path: str | None, base_path: str | None) -> str:
if base_path is not None:
return base_path
if json_path:
- sibling = os.path.join(os.path.dirname(json_path), "base.json")
+ sibling = os.path.join(os.path.dirname(json_path), "base.json").replace(os.sep, "/") # same slashes as json_path
if os.path.exists(sibling):
return sibling
return "configs/base.json"