Skip to content

Instantly share code, notes, and snippets.

View tailagency's full-sized avatar

Tail tailagency

View GitHub Profile
@tailagency
tailagency / cohen.md
Created January 31, 2025 14:50 — forked from ruvnet/cohen.md
Cohen’s Conjecture

Cohen’s Agentic Conjecture: A Dual-Process Neuro-Symbolic Framework for Agentic AI

Abstract

This research introduces Cohen’s Agentic Conjecture (CAC), proposing that an artificial intelligence system integrating fast, neural heuristics (System 1) with slow, symbolic logic (System 2) through a dynamic gating mechanism can exhibit emergent agentic properties. These properties include context-aware decision-making, self-directed learning, robust reasoning, and reflective self-correction. Drawing inspiration from dual-process cognitive theories and neuro-symbolic AI paradigms, this work formalizes CAC, presents a comprehensive Python implementation, and validates the conjecture through empirical experiments. The findings demonstrate that CAC-enhanced systems outperform purely neural or purely symbolic counterparts in terms of accuracy, interpretability, and adaptability. This framework lays the groundwork for developing next-generation AI agents capable of autonomous, reliable, and

@tailagency
tailagency / grpo_demo.py
Created January 31, 2025 14:22 — forked from willccbb/grpo_demo.py
GRPO Llama-1B
# train_grpo.py
import re
import torch
from datasets import load_dataset, Dataset
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import LoraConfig
from trl import GRPOConfig, GRPOTrainer
# Load and prep dataset