Text Classification
Transformers
English
cortex
decision-intelligence
system-1
typed-decisions
dynamic-memory
Eval Results (legacy)
Instructions to use siddiVinayaka/Cortex-System-One with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use siddiVinayaka/Cortex-System-One with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="siddiVinayaka/Cortex-System-One")# pip install -U transformers accelerate # Load model directly from transformers import Cortex model = Cortex.from_pretrained("siddiVinayaka/Cortex-System-One", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update Quickstart prompt to verified invoice processing decision in Cortex_system_one(Testing).ipynb
Browse files- Cortex_system_one(Testing).ipynb +10 -10
Cortex_system_one(Testing).ipynb
CHANGED
|
@@ -27,7 +27,7 @@
|
|
| 27 |
"This official interactive notebook demonstrates **Cortex-System-One**, an original from-scratch System-1 foundation architecture engineered for fast 41\u201350ms enterprise decision intelligence on commodity hardware (Tesla T4).\n\n",
|
| 28 |
"---\n",
|
| 29 |
"### \u26a1 Section 1: 1-Click Load & Single-Decision Inference\n",
|
| 30 |
-
"Installs dependencies, pulls the calibrated model weights directly from Hugging Face into cache in ~15s, and runs instant inference on an enterprise
|
| 31 |
]
|
| 32 |
},
|
| 33 |
{
|
|
@@ -50,19 +50,19 @@
|
|
| 50 |
"model, calibration = load_cortex_model(model_dir, device=device)\n\n",
|
| 51 |
"# 4. Run Instant Decision Inference (41\u201350ms on Tesla T4)\n",
|
| 52 |
"prompt = (\n",
|
| 53 |
-
" \"Workflow:
|
| 54 |
-
" \"Task State: {\\\"
|
| 55 |
-
" \"Task: Determine
|
| 56 |
" \"Options:\\n\"\n",
|
| 57 |
-
" \"(A)
|
| 58 |
-
" \"(B)
|
| 59 |
-
" \"(C)
|
| 60 |
" \"Analyze the state and select the correct option.\\nAnswer:\"\n",
|
| 61 |
")\n\n",
|
| 62 |
"options = [\n",
|
| 63 |
-
" \"
|
| 64 |
-
" \"
|
| 65 |
-
" \"
|
| 66 |
"]\n\n",
|
| 67 |
"result = predict_decision(model, prompt, options, calibration=calibration, device=device)\n",
|
| 68 |
"confidence = result.get('confidence', result['probabilities'][result['predicted_option']])\n",
|
|
|
|
| 27 |
"This official interactive notebook demonstrates **Cortex-System-One**, an original from-scratch System-1 foundation architecture engineered for fast 41\u201350ms enterprise decision intelligence on commodity hardware (Tesla T4).\n\n",
|
| 28 |
"---\n",
|
| 29 |
"### \u26a1 Section 1: 1-Click Load & Single-Decision Inference\n",
|
| 30 |
+
"Installs dependencies, pulls the calibrated model weights directly from Hugging Face into cache in ~15s, and runs instant inference on an enterprise invoice financial schema validation scenario."
|
| 31 |
]
|
| 32 |
},
|
| 33 |
{
|
|
|
|
| 50 |
"model, calibration = load_cortex_model(model_dir, device=device)\n\n",
|
| 51 |
"# 4. Run Instant Decision Inference (41\u201350ms on Tesla T4)\n",
|
| 52 |
"prompt = (\n",
|
| 53 |
+
" \"Workflow: Invoice Processing\\n\"\n",
|
| 54 |
+
" \"Task State: {\\\"invoice_id\\\":\\\"INV-9421\\\",\\\"subtotal\\\":1000.0,\\\"tax\\\":180.0,\\\"total\\\":1500.0}\\n\\n\"\n",
|
| 55 |
+
" \"Task: Determine invoice validation status.\\n\"\n",
|
| 56 |
" \"Options:\\n\"\n",
|
| 57 |
+
" \"(A) Flag total calculation mismatch for manual accounting review\\n\"\n",
|
| 58 |
+
" \"(B) Approve payment immediately with automated clearance\\n\"\n",
|
| 59 |
+
" \"(C) Mark invoice as duplicate submission\\n\\n\"\n",
|
| 60 |
" \"Analyze the state and select the correct option.\\nAnswer:\"\n",
|
| 61 |
")\n\n",
|
| 62 |
"options = [\n",
|
| 63 |
+
" \"Flag total calculation mismatch for manual accounting review\",\n",
|
| 64 |
+
" \"Approve payment immediately with automated clearance\",\n",
|
| 65 |
+
" \"Mark invoice as duplicate submission\"\n",
|
| 66 |
"]\n\n",
|
| 67 |
"result = predict_decision(model, prompt, options, calibration=calibration, device=device)\n",
|
| 68 |
"confidence = result.get('confidence', result['probabilities'][result['predicted_option']])\n",
|