Description
Implement the Cognitive Layer (synapse-cognition) to enable the system to "think" using Small Language Models (SLMs) like Phi-3 Mini or Gemma 2B, guided by the ethical constraints of the Synapse Core.
Architecture
The LLM acts as the Cognitive Cortex, while Synapse Core acts as the Limbic/Moral System.
The Loop
- Perception: Input -> Latent Vector.
- Judgment: Core analyzes Entropy/Suffering (Genesis Matrix).
- Cognition: LLM generates response/thought based on dynamic system prompt injected with ethical state.
- Simulation: Response is fed back to Core to verify entropy reduction before output.
Tasks
Technical Stack
- Runtime: ONNX Runtime (
ort crate) for broad hardware support (NPU/GPU).
- Models: Quantized Phi-3 Mini or Gemma 2B (ONNX format).