Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,37 +1,51 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
-
|
| 8 |
-
-
|
| 9 |
-
-
|
| 10 |
-
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
library_name: cortexnet
|
| 6 |
+
tags:
|
| 7 |
+
- cortexnet
|
| 8 |
+
- llm
|
| 9 |
+
- state-space-model
|
| 10 |
+
- sparse-attention
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# CortexNet
|
| 14 |
+
|
| 15 |
+
CortexNet is a unified neural architecture implementation for language modeling and reasoning.
|
| 16 |
+
|
| 17 |
+
This Hugging Face model repository is used as the public project card and release artifact index.
|
| 18 |
+
|
| 19 |
+
## Install
|
| 20 |
+
|
| 21 |
+
```bash
|
| 22 |
+
pip install cortexnet
|
| 23 |
+
```
|
| 24 |
+
|
| 25 |
+
## Quickstart
|
| 26 |
+
|
| 27 |
+
```python
|
| 28 |
+
import torch
|
| 29 |
+
from cortexnet import CortexNet, CortexNetConfig
|
| 30 |
+
|
| 31 |
+
cfg = CortexNetConfig(vocab_size=32000, hidden_size=256, num_layers=4, num_heads=8, lite=True)
|
| 32 |
+
model = CortexNet(cfg).eval()
|
| 33 |
+
input_ids = torch.randint(0, cfg.vocab_size, (1, 16))
|
| 34 |
+
with torch.no_grad():
|
| 35 |
+
out = model(input_ids)
|
| 36 |
+
print(out["logits"].shape)
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
+
## Links
|
| 40 |
+
|
| 41 |
+
- GitHub: https://github.com/chaojixiaokeai/CortexNet
|
| 42 |
+
- PyPI: https://pypi.org/project/cortexnet/
|
| 43 |
+
- GitHub Release: https://github.com/chaojixiaokeai/CortexNet/releases
|
| 44 |
+
- Docs Hub: https://github.com/chaojixiaokeai/CortexNet/tree/main/docs
|
| 45 |
+
|
| 46 |
+
## Included Files
|
| 47 |
+
|
| 48 |
+
- `README.md`: this model card
|
| 49 |
+
- `PROJECT_README.md`: project root README
|
| 50 |
+
- `DOCS_INDEX.md`: bilingual docs index
|
| 51 |
+
- `reports/`: release smoke benchmark reports and JSON artifacts
|