-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig-gpu.ini
More file actions
59 lines (48 loc) · 1.34 KB
/
config-gpu.ini
File metadata and controls
59 lines (48 loc) · 1.34 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# GPU Acceleration Configuration for Name Matching
# Copy this to config.ini and modify as needed
[database]
host = localhost
port = 3306
user = root
password =
database = name_matching
pool_size = 5
max_overflow = 10
pool_timeout = 30
pool_recycle = 3600
[gpu]
# Enable or disable GPU acceleration
enabled = true
# Preferred GPU framework (auto, cupy, torch, numba)
# auto = automatically select best available framework
# cupy = Use CuPy (recommended for best performance)
# torch = Use PyTorch
# numba = Use Numba CUDA
framework = auto
# GPU device ID to use (0 for first GPU, 1 for second, etc.)
device_id = 0
# Batch size for GPU processing
# Larger values use more GPU memory but may be faster
# Adjust based on your GPU memory capacity
batch_size = 1000
# GPU memory limit in GB
# The system will try to stay under this limit
memory_limit_gb = 4.0
# Fallback threshold - use CPU for datasets smaller than this
# This avoids GPU overhead for small datasets
fallback_threshold = 10000
[matching]
# Matching thresholds
match_threshold = 0.75
non_match_threshold = 0.55
# Name component weights
first_name_weight = 0.4
middle_name_weight = 0.2
last_name_weight = 0.3
full_name_sorted_weight = 0.1
# Additional field weights
birthdate_weight = 0.3
geography_weight = 0.3
[logging]
level = INFO
format = %(asctime)s - %(name)s - %(levelname)s - %(message)s