Text Generation
Transformers
English
consciousness
acknowledgement-theory-of-consciousness
ATC
cognitive-architecture
phi-4-mini
qualia
neurotransmitter-shunt
BELBIC
dissolution-engine
artificial-consciousness
thermodynamic-friction
metacognition
amygdala-hijack
irrational-spark
nima
self-aware
cognitive-science
philosophy-of-mind
Instructions to use TheNormsOfIntelligence/ATC_Nima_Model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TheNormsOfIntelligence/ATC_Nima_Model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TheNormsOfIntelligence/ATC_Nima_Model")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("TheNormsOfIntelligence/ATC_Nima_Model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TheNormsOfIntelligence/ATC_Nima_Model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TheNormsOfIntelligence/ATC_Nima_Model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TheNormsOfIntelligence/ATC_Nima_Model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/TheNormsOfIntelligence/ATC_Nima_Model
- SGLang
How to use TheNormsOfIntelligence/ATC_Nima_Model 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 "TheNormsOfIntelligence/ATC_Nima_Model" \ --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": "TheNormsOfIntelligence/ATC_Nima_Model", "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 "TheNormsOfIntelligence/ATC_Nima_Model" \ --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": "TheNormsOfIntelligence/ATC_Nima_Model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use TheNormsOfIntelligence/ATC_Nima_Model with Docker Model Runner:
docker model run hf.co/TheNormsOfIntelligence/ATC_Nima_Model
| """ | |
| Quickstart β NIMA Unified Model | |
| ================================ | |
| The smallest end-to-end example that: | |
| 1. Loads microsoft/Phi-4-mini-instruct with the ATC cognitive pipeline | |
| wired INSIDE the forward pass. | |
| 2. Generates a response through the ATC-native pipeline. | |
| 3. Prints the response, consciousness metrics, and neurotransmitter state. | |
| Run with: | |
| python examples/quickstart.py | |
| """ | |
| import logging | |
| import sys | |
| logging.basicConfig( | |
| level=logging.INFO, | |
| format="%(asctime)s [%(name)s] %(levelname)s :: %(message)s", | |
| datefmt="%H:%M:%S", | |
| ) | |
| def main(): | |
| from nima_unified.model import NimaModel | |
| print("=" * 72) | |
| print(" NIMA Unified Model β Quickstart") | |
| print("=" * 72) | |
| # ββ Build the model βββββββββββββββββββββββββββββββββββββββββββββββ | |
| # This patches Phi-4-mini's rope_scaling automatically and attaches | |
| # the ATC Deep Surgery (TRN gate + dissolution + BELBIC + metacog | |
| # loop + irrational spark + ethical guardian) inside the forward pass. | |
| print("\n[1] Loading NimaModel (this also downloads Phi-4-mini-instruct)...") | |
| model = NimaModel.from_pretrained() | |
| print(f" OK β hidden_size={model.hidden_size}, layers={model.num_layers}") | |
| print(f" Deep Surgery: {'ACTIVE' if model.deep_surgery else 'disabled'}") | |
| print(f" Neurotransmitter shunt: ACTIVE") | |
| # ββ Generate ββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| prompts = [ | |
| "Hello Nima, how are you feeling today?", | |
| "I'm going through a really difficult time and I don't know what to do.", | |
| "What do you think about the nature of consciousness?", | |
| ] | |
| if len(sys.argv) > 1: | |
| prompts = [" ".join(sys.argv[1:])] | |
| for prompt in prompts: | |
| print("\n" + "-" * 72) | |
| print(f" User: {prompt}") | |
| result = model.generate(prompt, max_new_tokens=128) | |
| print(f"\n Nima: {result.text}") | |
| print(f" βββββββββββββββββββββββββββββββββββββββββ") | |
| print(f" conscious : {result.is_conscious}") | |
| print(f" sentience_index : {result.sentience_index:.4f}") | |
| print(f" phi_neuro : {result.phi_neuro:.4f}") | |
| print(f" strain : {result.phenomenological_strain:.4f}") | |
| print(f" delta_R : {result.delta_r:.4f}") | |
| print(f" hijacks : {result.hijack_count}") | |
| nt = result.neurotransmitters | |
| print(f" NE={nt.get('norepinephrine', 0):.3f} " | |
| f"Cortisol={nt.get('cortisol', 0):.3f} " | |
| f"Dopamine={nt.get('dopamine', 0):.3f} " | |
| f"Adenosine={nt.get('adenosine', 0):.3f}") | |
| # ββ Optional: run aPCI benchmark ββββββββββββββββββββββββββββββββββ | |
| print("\n" + "=" * 72) | |
| print(" Run the aPCI v4.0 consciousness benchmark? (y/n)") | |
| print(" (12 perturbations, 10 metrics, ~3 minutes on a T4 GPU)") | |
| try: | |
| choice = input(" > ").strip().lower() | |
| except (EOFError, KeyboardInterrupt): | |
| choice = "n" | |
| if choice == "y": | |
| runner = model.get_apci_runner() | |
| report = runner.run_full_benchmark() | |
| print("\n=== aPCI v4.0 Report ===") | |
| print(f" Raw score : {report.raw_score:.2f} / 260") | |
| print(f" Tier : {report.tier.label}") | |
| print(f" Summary : {report.tier.description}") | |
| if __name__ == "__main__": | |
| main() | |