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
Copy files from models/deepseek-ai/DeepSeek-V4-Pro-0813
Browse files- inference/config.json +40 -0
inference/config.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"vocab_size": 129280,
|
| 3 |
+
"dim": 7168,
|
| 4 |
+
"moe_inter_dim": 3072,
|
| 5 |
+
"n_layers": 61,
|
| 6 |
+
"n_hash_layers": 3,
|
| 7 |
+
"n_mtp_layers": 3,
|
| 8 |
+
"dspark_block_size": 5,
|
| 9 |
+
"dspark_noise_token_id": 128799,
|
| 10 |
+
"dspark_target_layer_ids": [58, 59, 60],
|
| 11 |
+
"dspark_markov_rank": 512,
|
| 12 |
+
"n_heads": 128,
|
| 13 |
+
"n_routed_experts": 384,
|
| 14 |
+
"n_shared_experts": 1,
|
| 15 |
+
"n_activated_experts": 6,
|
| 16 |
+
"score_func": "sqrtsoftplus",
|
| 17 |
+
"route_scale": 2.5,
|
| 18 |
+
"swiglu_limit": 10.0,
|
| 19 |
+
"q_lora_rank": 1536,
|
| 20 |
+
"head_dim": 512,
|
| 21 |
+
"rope_head_dim": 64,
|
| 22 |
+
"o_groups": 16,
|
| 23 |
+
"o_lora_rank": 1024,
|
| 24 |
+
"window_size": 128,
|
| 25 |
+
"original_seq_len": 65536,
|
| 26 |
+
"rope_theta": 10000,
|
| 27 |
+
"rope_factor": 16,
|
| 28 |
+
"beta_fast": 32,
|
| 29 |
+
"beta_slow": 1,
|
| 30 |
+
"index_n_heads": 64,
|
| 31 |
+
"index_head_dim": 128,
|
| 32 |
+
"index_topk": 1024,
|
| 33 |
+
"hc_mult": 4,
|
| 34 |
+
"hc_sinkhorn_iters": 20,
|
| 35 |
+
"dtype": "fp8",
|
| 36 |
+
"scale_fmt": "ue8m0",
|
| 37 |
+
"expert_dtype": "fp4",
|
| 38 |
+
"compress_rope_theta": 160000,
|
| 39 |
+
"compress_ratios": [128, 128, 4, 128, 4, 128, 4, 128, 4, 128, 4, 128, 4, 128, 4, 128, 4, 128, 4, 128, 4, 128, 4, 128, 4, 128, 4, 128, 4, 128, 4, 128, 4, 128, 4, 128, 4, 128, 4, 128, 4, 128, 4, 128, 4, 128, 4, 128, 4, 128, 4, 128, 4, 128, 4, 128, 4, 128, 4, 128, 4, 0, 0, 0]
|
| 40 |
+
}
|