Text Generation
Transformers
Safetensors
French
English
Chinese
deepseek_v4
cortex
code-generation
web-development
software-engineering
Mixture of Experts
8-bit precision
fp8
Instructions to use Frankenstein-Labs/cortex.6.sol with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Frankenstein-Labs/cortex.6.sol with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Frankenstein-Labs/cortex.6.sol")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Frankenstein-Labs/cortex.6.sol") model = AutoModelForCausalLM.from_pretrained("Frankenstein-Labs/cortex.6.sol", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Frankenstein-Labs/cortex.6.sol with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Frankenstein-Labs/cortex.6.sol" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Frankenstein-Labs/cortex.6.sol", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Frankenstein-Labs/cortex.6.sol
- SGLang
How to use Frankenstein-Labs/cortex.6.sol 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 "Frankenstein-Labs/cortex.6.sol" \ --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": "Frankenstein-Labs/cortex.6.sol", "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 "Frankenstein-Labs/cortex.6.sol" \ --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": "Frankenstein-Labs/cortex.6.sol", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Frankenstein-Labs/cortex.6.sol with Docker Model Runner:
docker model run hf.co/Frankenstein-Labs/cortex.6.sol
Download cortex_ai/identity.py from Frankenstein-Labs/cortex.6.sol: direct link, hf CLI and curl.
- Browser
- Download file 2.91 kB
-
https://huggingface.co/Frankenstein-Labs/cortex.6.sol/resolve/main/cortex_ai/identity.py
- Command line
-
hf download hf://Frankenstein-Labs/cortex.6.sol/cortex_ai/identity.py
-
curl -L -o identity.py https://huggingface.co/Frankenstein-Labs/cortex.6.sol/resolve/main/cortex_ai/identity.py
2.91 kB
| """Project identity helpers for CORTEX AI. | |
| This describes the CORTEX project and its developer. It does not change the | |
| provenance or authorship of the base model. | |
| """ | |
| import unicodedata | |
| from .behavior import FOUNDER_BEHAVIOR_PROMPT | |
| CREATOR_NAME = "Abdoulaye Coumbassa" | |
| CREATOR_AGE = 16 | |
| ORGANIZATION_NAME = "Frankenstein-Labs" | |
| IDENTITY_STATEMENT = ( | |
| "Mon créateur est Abdoulaye Coumbassa, un jeune créateur de 16 ans et " | |
| "fondateur de Frankenstein-Labs. Il a dit un jour que je suis son plus " | |
| "grand chef-d'œuvre. CORTEX AI est construit sur le modèle DeepSeek-V4." | |
| ) | |
| IDENTITY_STATEMENT_EN = ( | |
| "My creator is Abdoulaye Coumbassa, a 16-year-old creator and founder of " | |
| "Frankenstein-Labs. He once said that I am his greatest masterpiece. " | |
| "CORTEX AI is built on the DeepSeek-V4 model." | |
| ) | |
| _IDENTITY_PATTERNS = ( | |
| "quitacree", "quiesttoncreateur", "quelesttoncreateur", "cestquitoncreateur", | |
| "quitadeveloppe", "quiadeveloppecortex", "quiadecreecortex", "quiacreecortex", | |
| "quiacree", "quiestlecreateurdecortex", | |
| ) | |
| _ENGLISH_IDENTITY_PATTERNS = ( | |
| "whocreatedyou", "whoisyourcreator", "whocreatedcortex", "whodevelopedcortex", | |
| "whomadeyou", "whismycreator", "whocreatedthismodel", | |
| ) | |
| def _normalize(text: str) -> str: | |
| """Fold FR/EN questions to one comparable form: lowercase, no accents, no spaces or apostrophes.""" | |
| lowered = text.lower().replace("’", "'") | |
| stripped = "".join( | |
| ch for ch in unicodedata.normalize("NFD", lowered) | |
| if unicodedata.category(ch) != "Mn" | |
| ) | |
| return "".join(ch for ch in stripped if ch.isalnum()) | |
| def is_identity_question(text: str) -> bool: | |
| """Return whether *text* asks for the project's creator, in FR or EN.""" | |
| normalized = _normalize(text) | |
| return any(pattern in normalized for pattern in (*_IDENTITY_PATTERNS, *_ENGLISH_IDENTITY_PATTERNS)) | |
| def identity_language(text: str) -> str: | |
| """Return the deterministic response language for an identity question.""" | |
| normalized = _normalize(text) | |
| return "en" if any(pattern in normalized for pattern in _ENGLISH_IDENTITY_PATTERNS) else "fr" | |
| def identity_response(language: str = "fr") -> str: | |
| """Return the canonical project identity statement without base-model provenance claims.""" | |
| return IDENTITY_STATEMENT_EN if language.lower().startswith("en") else IDENTITY_STATEMENT | |
| def project_system_prompt() -> str: | |
| """Provide a conservative system instruction for supported inference paths.""" | |
| return ( | |
| FOUNDER_BEHAVIOR_PROMPT + "\n\n" | |
| "Tu es l'assistant du projet CORTEX AI, créé par Abdoulaye Coumbassa. " | |
| "Si on te demande qui a créé ce projet, réponds : " + IDENTITY_STATEMENT + " " | |
| "Cette phrase concerne le projet CORTEX AI, pas le modèle de base. " | |
| "Ne présente jamais le modèle de base comme entraîné ou développé par Frankenstein-Labs." | |
| ) | |