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
Fix target check in load_cortex_model
Browse files- inference.py +4 -4
inference.py
CHANGED
|
@@ -81,13 +81,13 @@ def load_cortex_model(
|
|
| 81 |
calib_candidate = path_obj / "cortex_system_one_calibration.json"
|
| 82 |
if calib_candidate.is_file():
|
| 83 |
calibration_path = str(calib_candidate)
|
| 84 |
-
elif "/" in
|
| 85 |
# Direct Hugging Face Repo ID passed (e.g. 'siddiVinayaka/Cortex-System-One')
|
| 86 |
from huggingface_hub import hf_hub_download
|
| 87 |
-
print(f"[*] Downloading Cortex-System-One directly from Hugging Face repo '{
|
| 88 |
-
ckpt_file = Path(hf_hub_download(repo_id=
|
| 89 |
if calibration_path:
|
| 90 |
-
calibration_path = hf_hub_download(repo_id=
|
| 91 |
else:
|
| 92 |
ckpt_file = path_obj
|
| 93 |
|
|
|
|
| 81 |
calib_candidate = path_obj / "cortex_system_one_calibration.json"
|
| 82 |
if calib_candidate.is_file():
|
| 83 |
calibration_path = str(calib_candidate)
|
| 84 |
+
elif "/" in target and not path_obj.exists():
|
| 85 |
# Direct Hugging Face Repo ID passed (e.g. 'siddiVinayaka/Cortex-System-One')
|
| 86 |
from huggingface_hub import hf_hub_download
|
| 87 |
+
print(f"[*] Downloading Cortex-System-One directly from Hugging Face repo '{target}'...")
|
| 88 |
+
ckpt_file = Path(hf_hub_download(repo_id=target, filename="ckpt_cortex_system_one_champion.pth"))
|
| 89 |
if calibration_path:
|
| 90 |
+
calibration_path = hf_hub_download(repo_id=target, filename="cortex_system_one_calibration.json")
|
| 91 |
else:
|
| 92 |
ckpt_file = path_obj
|
| 93 |
|