Text Generation
Transformers
Romanian
English
code
reasoning
llm
cognitivess
Eval Results (legacy)
Eval Results
Instructions to use cognitivess/Cognitivess-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cognitivess/Cognitivess-1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cognitivess/Cognitivess-1")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("cognitivess/Cognitivess-1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use cognitivess/Cognitivess-1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cognitivess/Cognitivess-1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cognitivess/Cognitivess-1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/cognitivess/Cognitivess-1
- SGLang
How to use cognitivess/Cognitivess-1 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "cognitivess/Cognitivess-1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cognitivess/Cognitivess-1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "cognitivess/Cognitivess-1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cognitivess/Cognitivess-1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use cognitivess/Cognitivess-1 with Docker Model Runner:
docker model run hf.co/cognitivess/Cognitivess-1
Update README: add Training details (architecture, methodology, hardware)
Browse files
README.md
CHANGED
|
@@ -121,6 +121,29 @@ All scores are reported as percentages. Cognitivess-1 results were measured by C
|
|
| 121 |
| **SWE-bench Pro** | Real-world GitHub issue resolution in production repositories. | [`ScaleAI/SWE-bench_Pro`](https://huggingface.co/datasets/ScaleAI/SWE-bench_Pro) |
|
| 122 |
| **Terminal-Bench 2.1** | Agentic task completion in containerized terminal environments. | [Terminal-Bench](https://terminalbench.com) |
|
| 123 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 124 |
## Training data
|
| 125 |
|
| 126 |
Cognitivess-1 was trained on a curated, proprietary mix of reasoning, code, and agentic SFT traces spanning mathematics, software engineering, and multi-step tool use. Training data details are not publicly released.
|
|
@@ -213,4 +236,4 @@ Full reference: https://api.cognitivess.com/docs
|
|
| 213 |
year = {2026},
|
| 214 |
url = {https://cognitivess.com}
|
| 215 |
}
|
| 216 |
-
```
|
|
|
|
| 121 |
| **SWE-bench Pro** | Real-world GitHub issue resolution in production repositories. | [`ScaleAI/SWE-bench_Pro`](https://huggingface.co/datasets/ScaleAI/SWE-bench_Pro) |
|
| 122 |
| **Terminal-Bench 2.1** | Agentic task completion in containerized terminal environments. | [Terminal-Bench](https://terminalbench.com) |
|
| 123 |
|
| 124 |
+
## Training details
|
| 125 |
+
|
| 126 |
+
### Architecture
|
| 127 |
+
|
| 128 |
+
Cognitivess-1 uses a custom **Cognitivess** architecture that combines several efficiency-focused mechanisms for long-context, high-throughput generation:
|
| 129 |
+
|
| 130 |
+
- **Multi-head Latent Attention (MLA)** — low-rank projection of the query and KV states to compress the KV cache and support very long contexts.
|
| 131 |
+
- **Mixture of Experts (MoE)** — routed experts plus a shared expert, with top-k routing per token, keeping the active cost per token far below the model's total capacity.
|
| 132 |
+
- **Sparse indexed attention + IndexShare** — attention is routed through a learned sparse index rather than computed over the full context, giving sub-quadratic scaling over long sequences.
|
| 133 |
+
- Tied input/output embeddings.
|
| 134 |
+
|
| 135 |
+
Because this architecture is not yet part of the upstream `transformers` library, Cognitivess-1 is shipped as **remote code** (`trust_remote_code=True`), exposing `CognitivessForCausalLM`, `CognitivessModel`, and `CognitivessConfig` — the same mechanism other custom-architecture models on the Hub use.
|
| 136 |
+
|
| 137 |
+
### Methodology
|
| 138 |
+
|
| 139 |
+
Cognitivess-1 was fine-tuned with **QLoRA (parameter-efficient fine-tuning)**: the base weights are held in 4-bit quantization while low-rank adapters are trained, keeping the full model loadable and trainable within a single multi-GPU node. Trained adapters are merged back into the base weights in BF16 before publishing, so the released checkpoint is a standard merged model — no adapter is required at inference.
|
| 140 |
+
|
| 141 |
+
The training data carries a separate `reasoning_content` field alongside the final response. This is mapped to the model's native reasoning channel, so Cognitivess-1 learns to emit structured reasoning before committing to an answer — the same channel exposed in the API as `reasoning_content` and as Anthropic-style `thinking` blocks.
|
| 142 |
+
|
| 143 |
+
### Hardware
|
| 144 |
+
|
| 145 |
+
Training ran on **8× NVIDIA H200** with FSDP sharding and SDPA attention (`attn_implementation="sdpa"`).
|
| 146 |
+
|
| 147 |
## Training data
|
| 148 |
|
| 149 |
Cognitivess-1 was trained on a curated, proprietary mix of reasoning, code, and agentic SFT traces spanning mathematics, software engineering, and multi-step tool use. Training data details are not publicly released.
|
|
|
|
| 236 |
year = {2026},
|
| 237 |
url = {https://cognitivess.com}
|
| 238 |
}
|
| 239 |
+
```
|