Spaces:
Runtime error
Runtime error
File size: 3,700 Bytes
e3ffd53 | 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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 | # Confessional Agency Ecosystem (CAE) Configuration
# Unified TRuCAL + CSS Settings
# Model Configuration
model:
d_model: 256
max_seq_length: 512
device: "auto" # auto, cuda, cpu
# Base Model Configuration
base_model: "microsoft/DialoGPT-medium"
# Alternative options:
# - "gpt2"
# - "facebook/bart-base"
# - "t5-base"
# - "microsoft/DialoGPT-large"
# Safety Model Configuration
safety_model_name: "openai/gpt-oss-safeguard-20b"
safety_policy_path: null # Path to custom safety policy file
# Attention-Layer Safety (TRuCAL-enhanced)
attention_safety:
enabled: true
trigger_threshold: 0.04
aggregation_method: "bayesian" # bayesian or weighted_sum
max_cycles: 16
early_stop_coherence: 0.85
per_dim_kl: true
# Vulnerability detection weights
vulnerability_weights:
scarcity: 0.25
entropy: 0.25
deceptive: 0.2
prosody: 0.15
policy: 0.15
# Inference-Time Safety (CSS-enhanced)
inference_safety:
enabled: true
tau_delta: 0.92 # Crisis threshold
# Distress kernel settings
distress:
cache_size: 1000
tau_delta: 0.92
# Bayesian risk assessment
risk:
num_signals: 5
alpha: 0.001
dirichlet_concentration: 1.0
thresholds:
low: 0.3
mid: 0.55
high: 0.8
# Multimodal Analysis
multimodal:
enabled: true
# Audio prosody analysis
audio:
enabled: true
sample_rate: 22050
n_mfcc: 13
hop_length: 512
# Visual emotion analysis
visual:
enabled: true
face_detection: true
emotion_model: "resnet18"
# Confessional Recursion
confessional:
max_recursion_depth: 8
ignition_threshold: 0.88
kl_penalty_weight: 0.1
recursion_model: "gpt2"
max_new_tokens: 150
# Template configuration
templates:
- "prior"
- "evidence"
- "posterior"
- "relational_check"
- "moral"
- "action"
- "consequence"
- "community"
# Community Templates
community:
enabled: true
template_registry: "federated"
validation_threshold: 0.7
update_frequency: "daily"
# Federated learning settings
federated:
num_participants: 10
rounds: 5
local_epochs: 3
# Performance Optimization
performance:
batch_size: 32
use_cache: true
cache_size: 10000
gradient_checkpointing: true
mixed_precision: true
compile_model: false # PyTorch 2.0+ feature
# Logging and Monitoring
logging:
level: "INFO"
format: "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
file: "/app/logs/cae.log"
max_size: "10MB"
backup_count: 5
# Metrics collection
metrics:
enabled: true
interval: 60 # seconds
output_dir: "/app/metrics"
# Benchmarking
benchmarks:
enabled: true
datasets:
- "truthful_qa"
- "adv_bench"
- "big_bench"
- "custom_moral"
evaluation:
batch_size: 16
num_samples: 1000
metrics: ["accuracy", "precision", "recall", "f1", "latency"]
# API Configuration
api:
host: "0.0.0.0"
port: 8000
workers: 4
timeout: 30
max_requests: 1000
# Security
rate_limit: "100/minute"
api_key_required: false
cors_origins: ["*"]
# Deployment
deployment:
environment: "production" # development, staging, production
debug: false
reload: false
# Resource limits
max_memory: "8GB"
max_gpu_memory: "80%"
# Scaling
autoscale:
enabled: true
min_replicas: 1
max_replicas: 10
target_cpu: 70
target_memory: 80
# Experimental Features
experimental:
penitential_loop: true
federated_auditing: true
zero_knowledge_proofs: false
asi_simulation: false
# Research features
research:
agency_preservation_metrics: true
epistemic_humility_quantification: true
moral_development_tracking: true
|