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
Document zero-shot base (41.80%) and truthful Tesla T4 latency in Cortex_system_one(Testing).ipynb
Browse files
Cortex_system_one(Testing).ipynb
CHANGED
|
@@ -24,7 +24,7 @@
|
|
| 24 |
"**Developer**: Siddi Vinayaka ([Visthar Solutions](https://huggingface.co/siddiVinayaka/Cortex-System-One)) \n",
|
| 25 |
"**Model**: `siddiVinayaka/Cortex-System-One` (0.574B parameters) \n",
|
| 26 |
"**License**: CC-BY-NC-ND-4.0 \n\n",
|
| 27 |
-
"This official interactive notebook demonstrates **Cortex-System-One**, an original from-scratch System-1 foundation architecture engineered for
|
| 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 code defect security triage scenario."
|
|
@@ -48,7 +48,7 @@
|
|
| 48 |
"# 3. Load Model onto GPU\n",
|
| 49 |
"device = torch.device(\"cuda\" if torch.cuda.is_available() else \"cpu\")\n",
|
| 50 |
"model, calibration = load_cortex_model(model_dir, device=device)\n\n",
|
| 51 |
-
"# 4. Run Instant Decision Inference (
|
| 52 |
"prompt = (\n",
|
| 53 |
" \"Workflow: Code Defect Security\\n\"\n",
|
| 54 |
" \"Task State: {\\\"file\\\":\\\"auth_service.py\\\",\\\"ast_node\\\":\\\"BinaryOp_Add\\\",\\\"code_snippet\\\":\\\"query = 'SELECT * FROM users WHERE email = \\'' + user_input + '\\''\\\",\\\"cwe\\\":\\\"CWE-89\\\"}\\n\\n\"\n",
|
|
|
|
| 24 |
"**Developer**: Siddi Vinayaka ([Visthar Solutions](https://huggingface.co/siddiVinayaka/Cortex-System-One)) \n",
|
| 25 |
"**Model**: `siddiVinayaka/Cortex-System-One` (0.574B parameters) \n",
|
| 26 |
"**License**: CC-BY-NC-ND-4.0 \n\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 code defect security triage scenario."
|
|
|
|
| 48 |
"# 3. Load Model onto GPU\n",
|
| 49 |
"device = torch.device(\"cuda\" if torch.cuda.is_available() else \"cpu\")\n",
|
| 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: Code Defect Security\\n\"\n",
|
| 54 |
" \"Task State: {\\\"file\\\":\\\"auth_service.py\\\",\\\"ast_node\\\":\\\"BinaryOp_Add\\\",\\\"code_snippet\\\":\\\"query = 'SELECT * FROM users WHERE email = \\'' + user_input + '\\''\\\",\\\"cwe\\\":\\\"CWE-89\\\"}\\n\\n\"\n",
|