Skip to content

Commit 5e6828c

Browse files
committed
refactor hash length setting into constants file and reducing length to something more sane
1 parent 0ac2a1d commit 5e6828c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

llmtune/constants/files.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# Example config file
22
EXAMPLE_CONFIG_FNAME = "config.yml"
33

4-
# DIRECTORY HELPER
4+
# DIRECTORY HELPER - HASH SETTING
5+
NUM_MD5_DIGITS_FOR_SQIDS = 2
6+
7+
# DIRECTORY HELPER - DIRECTORY & FILE NAMES
58
CONFIG_DIR_NAME = "config"
69
CONFIG_FILE_NAME = "config.yml"
710

llmtune/utils/save_utils.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
CONFIG_DIR_NAME,
1818
CONFIG_FILE_NAME,
1919
DATASET_DIR_NAME,
20+
NUM_MD5_DIGITS_FOR_SQIDS,
2021
QA_DIR_NAME,
2122
QA_FILE_NAME,
2223
RESULTS_DIR_NAME,
@@ -26,9 +27,6 @@
2627
from llmtune.pydantic_models.config_model import Config
2728

2829

29-
NUM_MD5_DIGITS_FOR_SQIDS = 5 # TODO: maybe move consts to a dedicated folder
30-
31-
3230
@dataclass
3331
class DirectoryList:
3432
save_dir: Path

0 commit comments

Comments
 (0)