⚙️ Operations Status

Live systems, scheduled jobs, methods, and infrastructure — updated 2026-07-11

Live Services

~$24
Monthly Cost (Tier 2)
6hr
BioMistral Daily Window
2
Models (BioMistral + OpenBioLLM)
5
Scheduled Pipelines

Daily Schedule (All Times ET)

TimeEventMethodDuration
2:45 AMBioMistral startsEventBridge → Lambda → ECS RunTask (Fargate 4vCPU/8GB)~30s startup
3:00 AMNightly pipeline runsECS nightly container → scoring, docking, governance, learning~60-90 min
3:00 AMBioMistral consultedHTTP POST to biomistral.cortex.internal:8080 with RAG evidence~30-60s per query
~4:30 AMNightly completesTask auto-stops BioMistral (in nightly_docking.py)—
8:45 AMBioMistral force-stopEventBridge → Lambda (stop_lambda.py) — safety net—

Weekly Schedule (Sundays)

Time (ET)EventMethodOutput
4:00 AMTraining data refreshEventBridge → Fargate task → training_data_refresh.py~10K examples → S3
6:00 AMQLoRA retrainEventBridge → GPU Batch (g4dn.xlarge) → qlora_train.pyAdapter → S3

Models

ModelSizeQuantS3 PathStatus
BioMistral-7B4.4 GBQ4_K_M edice-brain-biomistral-gguf/biomistral-7b-q4_K_M.gguf LIVE
OpenBioLLM-8B4.6 GBQ4_K_M edice-brain-openbio-gguf/openbiollm-llama3-8b-q4_K_M.gguf READY

Methods: Inference

BioMistral CPU Inference (biomistral_server_cpu.py)
CortexQ Scientific Reasoning (cortexq_master.py)

Methods: Training

QLoRA Fine-Tuning (qlora_train.py)
Training Data Generation (5 pipelines)
PipelineMethodOutput
Internal LakeS3 scan (966 genes) → cBioPortal mutations + DepMap scores + hero records → instruction pairs~5K examples
ChEMBLREST API (ebi.ac.uk) → drug-target activities (IC50/Ki/Kd) for 41 targets → SAR assessment pairs~500 examples
DepMapS3 lake (pre-indexed) → CRISPR dependency scores for 54 genes → essentiality assessment pairs~200 examples
CRC MSS CorpusPubMed E-utilities (10 topics × 50 articles) + ClinicalTrials.gov V2 API → structured output pairs~1K examples
CortexQ AlignmentDDB heroes scan (all grades ≥C) × 7 task types → claim/evidence/disproof JSON format~3.5K examples

Methods: Disease Adapters

Adapter Architecture
AdapterTopicsKey MechanismsStatus
CRC MSS10 Immune exclusion, myeloid suppression, TGF-β/WNT, KRAS/MAPK, checkpoint resistance DATA READY
Prostate7 AR signaling, castration resistance, lineage plasticity, DNA repair, PI3K/PTEN DATA READY
Lung7 EGFR/ALK/KRAS TKI resistance, histologic transformation, MET bypass, co-mutations DATA READY
Pancreatic7 Stroma barrier, KRAS dependency, immune desert, metabolic adaptation, drug delivery DATA READY

Methods: NPEAD V2 Scoring

npead_v2_score() — Unified Scoring Entry Point
#DimensionMethod
1Disease ContextWeighted dimension scoring per cancer profile (7 dims × profile weights)
2Resistance MechanismKeyword matching against 6 resistance types (primary/acquired/immune/bypass/lineage/metabolic)
3Evidence SourceFixed weighting: wet-lab(1.0) > cohort(0.95) > trial(0.80) > paper(0.50) > model(0.30)
4Confidence Separation6 independent confidence fields: LM, evidence, statistical, biological, translational, disproof
5Cross-Cancer TransferCount gene appearances across cancer types in heroes table
6Retrieval FreshnessLinear decay: 1.0 at day 0 → 0.0 at day 90 from last update
7Clinical Actionability6 components: patient_selection, biomarker, combination, trial, target, diagnostic
8Contradiction HandlingPenalty accumulation: overexpressed bystander(+0.3), grade vs MD(+0.2), docking vs binding(+0.2)

Methods: Retrieval Layer (RAG)

retrieve_evidence() → build_evidence_context()
SourceAPIRate Limit
PubMedNCBI E-utilities (esearch + esummary)3 req/s (10 with API key)
ClinicalTrials.govV2 REST APINo published limit
Internal HeroesDynamoDB Query (pk = gene)On-demand capacity
TCGA/GDCPre-indexed JSON in S3N/A (local read)
PathwaysPre-indexed JSON in S3 (KEGG/Reactome)N/A (local read)

CIFOG Graph — 51K+ Edges (Production Scale)

51K+
Total Edges
1,592
Nodes
14
Curated Pathways
50
ChEMBL Targets
LayerEdgesSourceEnables
Molecular (ChEMBL)~46,500IC50/Ki/Kd pChEMBL≥5Compound→target, SAR, selectivity
Pathway (curated)211Hand-built signalingDirectional: EGFR→SOS1→KRAS→BRAF→MEK→ERK + feedback
Pathway (KEGG)2,55214 cancer pathwaysGene→pathway membership
Knowledge (heroes)1,530Internal heroesTarget→cancer/pathway/resistance
TOTAL~51,000
14 Curated Signaling Pathways (211 directional edges)

RAS/MAPK (27) · PI3K/AKT/mTOR (20) · WNT/β-catenin (16) · TGF-β/SMAD (14) · cGAS/STING (14) · PD-1/Checkpoint (11) · Cell Cycle (18) · DNA Damage (14) · Apoptosis (18) · Myeloid Suppression (12) · AR Signaling (11) · Hippo/YAP (12) · Notch (9) · JAK/STAT (15)

Infrastructure

ResourceTypeConfigPurpose
ECS ClustermindnetqFargateBioMistral + OpenBioLLM inference
Batch Queuecortex-gpu-queueg4dn.xlarge (spot)QLoRA training, docking, MD
Task Defbiomistral-inference-cpu:14 vCPU / 8 GBBioMistral GGUF serving
Task Defopenbio-inference-cpu:14 vCPU / 16 GBOpenBioLLM GGUF serving
Job Defcortex-qlora-train:14 vCPU / 30 GB / 1 GPUQLoRA fine-tuning
Lambdastart-biomistral128 MB / 30sStarts BioMistral Fargate task
Lambdastop-biomistral128 MB / 30sStops BioMistral tasks
Cloud Mapcortex.internalPrivate DNSService discovery (biomistral.cortex.internal)
S3edice-brain-models-v2StandardModels, adapters, training data
S3edicer-raw-source-lakeStandard966 genes, genomics, drugs, pathways
ECRbiomistral-inference-cpu—Inference container (llama.cpp)
ECRqlora-training—Training container (peft + trl + bitsandbytes)

Key Files

CategoryFilePurpose
Inferencebiomistral-server/biomistral_server_cpu.pyGGUF inference server (llama.cpp)
cortexq_master.pyMaster decision engine + BioMistral consultation
retrieval_layer.pyRAG — PubMed/trials/DDB/TCGA retrieval
Trainingbiomistral-server/qlora_train.pyQLoRA entry point (GPU Batch)
alignment_training_data.pyHeroes → structured output training data
training_data_refresh.pyWeekly orchestrator (all 5 pipelines)
Adapterscrc_mss_adapter_data.pyCRC MSS corpus collector
cancer_adapter_corpus.pyProstate/lung/pancreatic collectors
npead_predictive_engine.pyNPEAD V2 + disease profiles + 8 dimensions
Datalake_to_training.pyInternal lake → training examples
chembl_training_data.pyChEMBL API → SAR training data
depmap_training_data.pyDepMap CRISPR → essentiality training data

Benchmark Results (BioMistral-7B)

QuestionCategoryTimeTokens/sResult
TBK1 target assessment in MSS CRCTarget Assessment72.9s1.5✅ Correct
KRAS G12D + anti-PD1 + MEK resistanceResistance Reasoning31.8s1.5✅ PI3K/AKT bypass identified
MYC modality in pancreatic cancerModality Selection30.3s1.7✅ PROTAC recommended
CDK4/6i conflicting studies synthesisEvidence Synthesis92.7s2.4✅ Sample size limitation noted
MEK inhibitor feedback loops in KRAS CRCPathway Reasoning31.7s1.8✅ Feedback mechanisms described

Average: 51.9s response time, 1.8 tok/s, 5/5 questions answered. CPU inference on Fargate 4vCPU.

CortexQ is the master. NPEAD is the lead engine. Models are subordinate tools. Nothing overrides CortexQ.
Last updated: 2026-07-11 16:50 ET