-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
29 lines (23 loc) · 801 Bytes
/
Copy pathconfig.py
File metadata and controls
29 lines (23 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import os
class Config:
"""
Configuration class for LLMCompress.
This class contains various configuration parameters and utility methods
used throughout the LLMCompress application.
"""
# Default values for context size and batch size
CONTEXT_SIZE = 512
BATCH_SIZE = 64
# Directory paths
LOGS_DIR = 'Logs'
RESULTS_DIR = 'Results'
OUTPUT_DIR = 'Output_Files'
@staticmethod
def ensure_directories():
"""
Ensure that all necessary directories exist.
This method creates the logs, results, and output directories
if they don't already exist.
"""
for directory in [Config.LOGS_DIR, Config.RESULTS_DIR, Config.OUTPUT_DIR]:
os.makedirs(directory, exist_ok=True)