Create config.py
Browse files
config.py
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
|
3 |
+
# Configuration for the CyberAttackDetection model
|
4 |
+
class Config:
|
5 |
+
MODEL_NAME = "Canstralian/CyberAttackDetection"
|
6 |
+
TOKENIZER_NAME = "Canstralian/CyberAttackDetection"
|
7 |
+
MAX_LENGTH = 512
|
8 |
+
DEVICE = "cuda" if os.environ.get("USE_CUDA", "1") == "1" else "cpu"
|
9 |
+
PROMPTS_FILE = "prompts.py"
|