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 configs/cortex/cortex-dev-1.json from Frankenstein-Labs/cortex.6.sol: direct link, hf CLI and curl.
- Browser
- Download file 2.42 kB
-
https://huggingface.co/Frankenstein-Labs/cortex.6.sol/resolve/main/configs/cortex/cortex-dev-1.json
- Command line
-
hf download hf://Frankenstein-Labs/cortex.6.sol/configs/cortex/cortex-dev-1.json
-
curl -L -o cortex-dev-1.json https://huggingface.co/Frankenstein-Labs/cortex.6.sol/resolve/main/configs/cortex/cortex-dev-1.json
2.42 kB
| { | |
| "model_name": "cortex-dev-1", | |
| "status": "development-config-not-trained", | |
| "_comment": [ | |
| "CORTEX dev-scale training configuration.", | |
| "This describes a model Frankenstein-Labs can actually TRAIN on realistic hardware.", | |
| "It does NOT describe the distributed checkpoint in this repository, which is a", | |
| "1.65T-parameter redistribution and is untouched by this pipeline.", | |
| "Any checkpoint produced from this config is a new, separately trained model." | |
| ], | |
| "architecture": "cortex_dense_decoder", | |
| "hidden_size": 768, | |
| "num_hidden_layers": 12, | |
| "num_attention_heads": 12, | |
| "num_key_value_heads": 4, | |
| "intermediate_size": 2048, | |
| "hidden_act": "silu", | |
| "max_position_embeddings": 2048, | |
| "rope_theta": 10000.0, | |
| "rms_norm_eps": 1e-05, | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "tie_word_embeddings": true, | |
| "initializer_range": 0.02, | |
| "torch_dtype": "float32", | |
| "use_cache": true, | |
| "vocab_size": 129280, | |
| "bos_token_id": 0, | |
| "eos_token_id": 1, | |
| "pad_token_id": 2, | |
| "tokenizer_source": { | |
| "repo": "Frankenstein-Labs/Cortex-ai", | |
| "file": "tokenizer.json", | |
| "license": "MIT", | |
| "note": "Reused as-is from the distributed repository. The tokenizer is not modified." | |
| }, | |
| "training": { | |
| "precision": "float32", | |
| "micro_batch_size": 2, | |
| "gradient_accumulation_steps": 8, | |
| "effective_batch_size": 16, | |
| "learning_rate": 0.0003, | |
| "min_learning_rate": 0.00003, | |
| "weight_decay": 0.1, | |
| "beta1": 0.9, | |
| "beta2": 0.95, | |
| "grad_clip": 1.0, | |
| "warmup_steps": 100, | |
| "max_steps": 20000, | |
| "lr_schedule": "cosine", | |
| "seed": 1337, | |
| "log_every": 10, | |
| "eval_every": 500, | |
| "save_every": 1000, | |
| "sequence_length": 512 | |
| }, | |
| "hardware_expectation": { | |
| "minimum": "1 CPU core, ~2 GiB RAM, runs but very slowly", | |
| "recommended": "1 GPU with >= 8 GiB VRAM", | |
| "verified_on": "4 CPU cores, ~15 GiB RAM, no GPU", | |
| "note": "Smoke-tested on CPU. Full training is not claimed to have been run." | |
| }, | |
| "provenance": { | |
| "developer": "Frankenstein-Labs", | |
| "weights": "randomly initialised by this pipeline, then trained by Frankenstein-Labs", | |
| "base_model": null, | |
| "base_model_note": [ | |
| "Deliberately null: no parent model applies to weights produced from this config.", | |
| "This field must stay null unless the weights are in fact derived from another model." | |
| ], | |
| "license": "mit" | |
| } | |
| } | |