Text Classification
Transformers
English
cortex
decision-intelligence
system-1
typed-decisions
dynamic-memory
Eval Results (legacy)
Run this model with HF Jobs
Run siddiVinayaka/Cortex-System-One on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/siddiVinayaka/Cortex-System-One. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/siddiVinayaka/Cortex-System-One on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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
Enable 1-click snapshot_download Quickstart in README.md
Browse files104 unmodified lines10510610710810911011111211311411511611711811912012112212312412512612712812913013113213313410 unmodified lines145146147148149150151152153154155104 unmodified lines## Quickstart & Inference```bash# Ensure Git LFS is active to pull the 2.21 GB model weightsgit lfs installgit clone https://huggingface.co/siddiVinayaka/Cortex-System-Onecd Cortex-System-Onegit lfs pullpip install torch tiktoken huggingface_hub``````pythonimport torchfrom Model import Cortexfrom inference import load_cortex_model, predict_choice# 1. Load Model & Calibrationdevice = torch.device("cuda" if torch.cuda.is_available() else "cpu")model, calibration = load_cortex_model(checkpoint_path="ckpt_cortex_system_one_champion.pth",calibration_path="cortex_system_one_calibration.json",device=device)# 2. Run Inferenceprompt = ("Workflow: Security Incidents\n""Task State: {\"alert_type\":\"brute_force\",\"failed_logins\":42,\"source_ip\":\"198.51.100.2\"}\n\n"10 unmodified lines"Send non-urgent notification"]result = predict_choice(model, prompt, options, calibration=calibration, device=device)print(f"Decision: {result['predicted_option']}")print(f"Confidence: {result['probabilities']}")```---## License & Usage Restrictions104 unmodified lines10510610710810911011111211311411511611711811912012112212312412512612712812913013110 unmodified lines142143144145146147148149150151152153154155156157158159160161104 unmodified lines## Quickstart & Inference### 1. In Google Colab or Python (1-Click, Zero Git Clone)You can run Cortex-System-One directly in Python or a Google Colab notebook using `huggingface_hub` — **no `git clone` or `git lfs` needed**:```python# Install dependencies!pip install -q torch tiktoken huggingface_hub# Load model directly from Hugging Face repositoryimport sys, torchfrom huggingface_hub import snapshot_downloadmodel_dir = snapshot_download("siddiVinayaka/Cortex-System-One")sys.path.append(model_dir)from inference import load_cortex_model, predict_decisiondevice = torch.device("cuda" if torch.cuda.is_available() else "cpu")model, calibration = load_cortex_model(model_dir, device=device)# Run Inferenceprompt = ("Workflow: Security Incidents\n""Task State: {\"alert_type\":\"brute_force\",\"failed_logins\":42,\"source_ip\":\"198.51.100.2\"}\n\n"10 unmodified lines"Send non-urgent notification"]result = predict_decision(model, prompt, options, calibration=calibration, device=device)print(f"Decision: {result['predicted_option']}")print(f"Confidence: {result['probabilities']}")```### 2. Local Machine via Git```bashgit clone https://huggingface.co/siddiVinayaka/Cortex-System-Onecd Cortex-System-Onepip install -r requirements.txt # or: pip install torch tiktokenpython inference.py```---## License & Usage Restrictions
README.md+25-19