Update app.py
Browse files
app.py
CHANGED
|
@@ -154,10 +154,10 @@ class ResearchConstants:
|
|
| 154 |
RECENT_BOOST_FACTOR: float = 0.1 # Boost factor for recent tokens
|
| 155 |
PROGRESSIVE_MIN_RATIO: float = 0.0001 # Minimum ratio to prevent division by zero
|
| 156 |
|
| 157 |
-
# Kernel size thresholds (explicit sequence length boundaries)
|
| 158 |
-
KERNEL_SIZE_SMALL_THRESHOLD: int =
|
| 159 |
-
KERNEL_SIZE_MEDIUM_THRESHOLD: int =
|
| 160 |
-
KERNEL_SIZE_LARGE_THRESHOLD: int =
|
| 161 |
|
| 162 |
# Precision level defaults (research-validated for 450x compression)
|
| 163 |
DEFAULT_PRECISION_LEVELS_AGGRESSIVE: List[PrecisionLevel] = field(default_factory=lambda: [
|
|
|
|
| 154 |
RECENT_BOOST_FACTOR: float = 0.1 # Boost factor for recent tokens
|
| 155 |
PROGRESSIVE_MIN_RATIO: float = 0.0001 # Minimum ratio to prevent division by zero
|
| 156 |
|
| 157 |
+
# Kernel size thresholds (explicit sequence length boundaries - adjusted for GPT-Neo)
|
| 158 |
+
KERNEL_SIZE_SMALL_THRESHOLD: int = 512 # Small sequence threshold
|
| 159 |
+
KERNEL_SIZE_MEDIUM_THRESHOLD: int = 1024 # Medium sequence threshold
|
| 160 |
+
KERNEL_SIZE_LARGE_THRESHOLD: int = 1536 # Large sequence threshold
|
| 161 |
|
| 162 |
# Precision level defaults (research-validated for 450x compression)
|
| 163 |
DEFAULT_PRECISION_LEVELS_AGGRESSIVE: List[PrecisionLevel] = field(default_factory=lambda: [
|