Instructions to use upgraedd/Consciousness with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use upgraedd/Consciousness with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="upgraedd/Consciousness")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("upgraedd/Consciousness", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use upgraedd/Consciousness with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "upgraedd/Consciousness" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "upgraedd/Consciousness", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/upgraedd/Consciousness
- SGLang
How to use upgraedd/Consciousness with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "upgraedd/Consciousness" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "upgraedd/Consciousness", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "upgraedd/Consciousness" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "upgraedd/Consciousness", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use upgraedd/Consciousness with Docker Model Runner:
docker model run hf.co/upgraedd/Consciousness
Upload detector_modules.txt
Browse files- detector_modules.tx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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""
|
| 3 |
+
CROSS‑CASE PATTERN DETECTOR & INSTITUTIONAL PLANT DETECTOR
|
| 4 |
+
==========================================================
|
| 5 |
+
Module 1: Detects structural anomalies (silence‑rewarded / defiance‑punished)
|
| 6 |
+
Module 2: Identifies institutional plants and replacements.
|
| 7 |
+
"""
|
| 8 |
+
|
| 9 |
+
from dataclasses import dataclass
|
| 10 |
+
from typing import List, Dict, Optional, Tuple
|
| 11 |
+
from statistics import mean
|
| 12 |
+
|
| 13 |
+
# ----------------------------------------------------------------------------
|
| 14 |
+
# MODULE 1: Cross‑Case Pattern Detector
|
| 15 |
+
# ----------------------------------------------------------------------------
|
| 16 |
+
@dataclass
|
| 17 |
+
class PersonCase:
|
| 18 |
+
name: str
|
| 19 |
+
had_access_to_sensitive_info: bool
|
| 20 |
+
threatened_to_expose: bool
|
| 21 |
+
died_mysteriously: bool
|
| 22 |
+
stayed_silent: bool
|
| 23 |
+
longevity_years: float
|
| 24 |
+
was_rewarded: bool
|
| 25 |
+
|
| 26 |
+
class CrossCasePatternDetector:
|
| 27 |
+
def __init__(self):
|
| 28 |
+
self.cases: List[PersonCase] = []
|
| 29 |
+
|
| 30 |
+
def add_case(self, case: PersonCase):
|
| 31 |
+
self.cases.append(case)
|
| 32 |
+
|
| 33 |
+
def compute_pattern_score(self) -> Dict:
|
| 34 |
+
if len(self.cases) < 4:
|
| 35 |
+
return {"error": "Insufficient cases"}
|
| 36 |
+
|
| 37 |
+
threat_death = [1 if (c.threatened_to_expose and c.died_mysteriously) else 0 for c in self.cases]
|
| 38 |
+
no_threat_death = [1 if (not c.threatened_to_expose and c.died_mysteriously) else 0 for c in self.cases]
|
| 39 |
+
threat_rate = mean(threat_death)
|
| 40 |
+
no_threat_rate = mean(no_threat_death) if no_threat_death else 0
|
| 41 |
+
risk_ratio = threat_rate / (no_threat_rate + 0.001)
|
| 42 |
+
|
| 43 |
+
silent_longevity = [c.longevity_years for c in self.cases if c.stayed_silent]
|
| 44 |
+
non_silent_longevity = [c.longevity_years for c in self.cases if not c.stayed_silent]
|
| 45 |
+
silent_avg = mean(silent_longevity) if silent_longevity else 0
|
| 46 |
+
non_silent_avg = mean(non_silent_longevity) if non_silent_longevity else 0
|
| 47 |
+
survival_advantage = silent_avg / (non_silent_avg + 0.001)
|
| 48 |
+
|
| 49 |
+
reward_silent = [1 for c in self.cases if c.stayed_silent and c.was_rewarded]
|
| 50 |
+
reward_non_silent = [1 for c in self.cases if not c.stayed_silent and c.was_rewarded]
|
| 51 |
+
reward_silent_rate = len(reward_silent) / max(1, len(silent_longevity))
|
| 52 |
+
reward_non_silent_rate = len(reward_non_silent) / max(1, len(non_silent_longevity))
|
| 53 |
+
reward_ratio = reward_silent_rate / (reward_non_silent_rate + 0.001)
|
| 54 |
+
|
| 55 |
+
composite = (risk_ratio * 0.4 + survival_advantage * 0.3 + reward_ratio * 0.3)
|
| 56 |
+
composite = min(1.0, composite / 3.0)
|
| 57 |
+
|
| 58 |
+
return {
|
| 59 |
+
"pattern_strength": composite,
|
| 60 |
+
"risk_ratio_threat_to_death": risk_ratio,
|
| 61 |
+
"survival_advantage_silent": survival_advantage,
|
| 62 |
+
"reward_ratio_silent": reward_ratio,
|
| 63 |
+
"interpretation": "High structural anomaly" if composite > 0.6 else "Moderate" if composite > 0.3 else "Low",
|
| 64 |
+
"recommendation": "Further investigate underlying suppression mechanism" if composite > 0.5 else "No clear pattern"
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
# ----------------------------------------------------------------------------
|
| 68 |
+
# MODULE 2: Institutional Plant Detector (with replacement detection)
|
| 69 |
+
# ----------------------------------------------------------------------------
|
| 70 |
+
@dataclass
|
| 71 |
+
class PlantCandidate:
|
| 72 |
+
name: str
|
| 73 |
+
rapid_rise: float
|
| 74 |
+
controlled_opposition: float
|
| 75 |
+
funding_ties: float
|
| 76 |
+
narrative_alignment: float
|
| 77 |
+
lack_originality: float
|
| 78 |
+
contradictory_history: float
|
| 79 |
+
media_amplification: float
|
| 80 |
+
smears_genuine_threats: float
|
| 81 |
+
sudden_reversals: float
|
| 82 |
+
legacy_protection: float
|
| 83 |
+
predecessor: Optional[str] = None
|
| 84 |
+
predecessor_suppressed: bool = False
|
| 85 |
+
|
| 86 |
+
class InstitutionalPlantDetector:
|
| 87 |
+
def __init__(self):
|
| 88 |
+
self.candidates: List[PlantCandidate] = []
|
| 89 |
+
|
| 90 |
+
def add_candidate(self, candidate: PlantCandidate):
|
| 91 |
+
self.candidates.append(candidate)
|
| 92 |
+
|
| 93 |
+
def compute_plant_score(self, candidate: PlantCandidate) -> Dict:
|
| 94 |
+
weights = {
|
| 95 |
+
"rapid_rise": 0.10,
|
| 96 |
+
"controlled_opposition": 0.15,
|
| 97 |
+
"funding_ties": 0.20,
|
| 98 |
+
"narrative_alignment": 0.10,
|
| 99 |
+
"lack_originality": 0.05,
|
| 100 |
+
"contradictory_history": 0.05,
|
| 101 |
+
"media_amplification": 0.10,
|
| 102 |
+
"smears_genuine_threats": 0.15,
|
| 103 |
+
"sudden_reversals": 0.05,
|
| 104 |
+
"legacy_protection": 0.05
|
| 105 |
+
}
|
| 106 |
+
score = 0.0
|
| 107 |
+
breakdown = {}
|
| 108 |
+
for attr, w in weights.items():
|
| 109 |
+
val = getattr(candidate, attr, 0.0)
|
| 110 |
+
contribution = val * w
|
| 111 |
+
score += contribution
|
| 112 |
+
breakdown[attr] = contribution
|
| 113 |
+
if candidate.predecessor_suppressed:
|
| 114 |
+
score = min(1.0, score + 0.15)
|
| 115 |
+
breakdown["predecessor_suppressed_boost"] = 0.15
|
| 116 |
+
return {
|
| 117 |
+
"plant_score": score,
|
| 118 |
+
"breakdown": breakdown,
|
| 119 |
+
"interpretation": "Very likely plant" if score > 0.7 else "Likely plant" if score > 0.5 else "Possible plant" if score > 0.3 else "Unlikely plant",
|
| 120 |
+
"replacement_pattern": f"{candidate.predecessor} → {candidate.name}" if candidate.predecessor else None
|
| 121 |
+
}
|
| 122 |
+
|
| 123 |
+
def detect_replacement_patterns(self) -> List[Dict]:
|
| 124 |
+
patterns = []
|
| 125 |
+
for cand in self.candidates:
|
| 126 |
+
if cand.predecessor and cand.predecessor_suppressed:
|
| 127 |
+
score = self.compute_plant_score(cand)["plant_score"]
|
| 128 |
+
if score > 0.5:
|
| 129 |
+
patterns.append({
|
| 130 |
+
"predecessor": cand.predecessor,
|
| 131 |
+
"successor": cand.name,
|
| 132 |
+
"suppression": True,
|
| 133 |
+
"plant_score": score
|
| 134 |
+
})
|
| 135 |
+
return patterns
|
| 136 |
+
|
| 137 |
+
# ----------------------------------------------------------------------------
|
| 138 |
+
# EXAMPLE USAGE (run standalone)
|
| 139 |
+
# ----------------------------------------------------------------------------
|
| 140 |
+
if __name__ == "__main__":
|
| 141 |
+
# Cross‑Case Pattern Detector example
|
| 142 |
+
print("=== Cross‑Case Pattern Detector ===")
|
| 143 |
+
pattern_detector = CrossCasePatternDetector()
|
| 144 |
+
pattern_detector.add_case(PersonCase("Marilyn Monroe", True, True, True, False, 36, False))
|
| 145 |
+
pattern_detector.add_case(PersonCase("Jackie Onassis", True, False, False, True, 64, True))
|
| 146 |
+
pattern_detector.add_case(PersonCase("Priscilla Presley", True, False, False, True, 79, True))
|
| 147 |
+
pattern_detector.add_case(PersonCase("Lisa Marie Presley", True, False, False, True, 54, True))
|
| 148 |
+
pattern_detector.add_case(PersonCase("Kurt Cobain", True, True, True, False, 27, False))
|
| 149 |
+
result = pattern_detector.compute_pattern_score()
|
| 150 |
+
for k, v in result.items():
|
| 151 |
+
print(f" {k}: {v}")
|
| 152 |
+
|
| 153 |
+
# Institutional Plant Detector example
|
| 154 |
+
print("\n=== Institutional Plant Detector ===")
|
| 155 |
+
plant_detector = InstitutionalPlantDetector()
|
| 156 |
+
plant_detector.add_candidate(PlantCandidate(
|
| 157 |
+
name="Bill Gates",
|
| 158 |
+
rapid_rise=0.7, controlled_opposition=0.8, funding_ties=0.9,
|
| 159 |
+
narrative_alignment=0.8, lack_originality=0.6, contradictory_history=0.5,
|
| 160 |
+
media_amplification=0.8, smears_genuine_threats=0.7, sudden_reversals=0.5,
|
| 161 |
+
legacy_protection=0.8, predecessor="Steve Wozniak/Jobs", predecessor_suppressed=True
|
| 162 |
+
))
|
| 163 |
+
plant_detector.add_candidate(PlantCandidate(
|
| 164 |
+
name="Sigmund Freud",
|
| 165 |
+
rapid_rise=0.8, controlled_opposition=0.9, funding_ties=0.7,
|
| 166 |
+
narrative_alignment=0.9, lack_originality=0.7, contradictory_history=0.6,
|
| 167 |
+
media_amplification=0.8, smears_genuine_threats=0.9, sudden_reversals=0.4,
|
| 168 |
+
legacy_protection=0.8, predecessor="Carl Jung", predecessor_suppressed=True
|
| 169 |
+
))
|
| 170 |
+
plant_detector.add_candidate(PlantCandidate(
|
| 171 |
+
name="Elon Musk",
|
| 172 |
+
rapid_rise=0.8, controlled_opposition=0.7, funding_ties=0.8,
|
| 173 |
+
narrative_alignment=0.7, lack_originality=0.8, contradictory_history=0.6,
|
| 174 |
+
media_amplification=0.9, smears_genuine_threats=0.6, sudden_reversals=0.7,
|
| 175 |
+
legacy_protection=0.5, predecessor="Nikola Tesla / NASA open innovation", predecessor_suppressed=True
|
| 176 |
+
))
|
| 177 |
+
plant_detector.add_candidate(PlantCandidate(
|
| 178 |
+
name="Erich von Däniken",
|
| 179 |
+
rapid_rise=0.9, controlled_opposition=0.8, funding_ties=0.6,
|
| 180 |
+
narrative_alignment=0.7, lack_originality=0.9, contradictory_history=0.5,
|
| 181 |
+
media_amplification=0.8, smears_genuine_threats=0.8, sudden_reversals=0.3,
|
| 182 |
+
legacy_protection=0.4, predecessor="Zecharia Sitchin", predecessor_suppressed=True
|
| 183 |
+
))
|
| 184 |
+
plant_detector.add_candidate(PlantCandidate(
|
| 185 |
+
name="Neil deGrasse Tyson",
|
| 186 |
+
rapid_rise=0.8, controlled_opposition=0.8, funding_ties=0.7,
|
| 187 |
+
narrative_alignment=0.9, lack_originality=0.7, contradictory_history=0.5,
|
| 188 |
+
media_amplification=0.9, smears_genuine_threats=0.7, sudden_reversals=0.4,
|
| 189 |
+
legacy_protection=0.7, predecessor="Carl Sagan", predecessor_suppressed=True
|
| 190 |
+
))
|
| 191 |
+
|
| 192 |
+
for cand in plant_detector.candidates:
|
| 193 |
+
res = plant_detector.compute_plant_score(cand)
|
| 194 |
+
print(f"\n{cand.name}: Plant Score = {res['plant_score']:.2f} ({res['interpretation']})")
|
| 195 |
+
if res['replacement_pattern']:
|
| 196 |
+
print(f" Replacement: {res['replacement_pattern']} (suppressed: {cand.predecessor_suppressed})")
|
| 197 |
+
|
| 198 |
+
patterns = plant_detector.detect_replacement_patterns()
|
| 199 |
+
print("\n=== Detected Replacement Patterns ===")
|
| 200 |
+
for p in patterns:
|
| 201 |
+
print(f"{p['predecessor']} → {p['successor']} (plant score {p['plant_score']:.2f})")
|