{"Code":200,"Data":{"AigcAttributes":"{}","AigcIsTop":0,"AigcType":"","AlreadyStar":false,"ApplyMeta":"{}","ApprovalMode":1,"ApprovalNotifyEmail":"","Architectures":["DeepseekV4ForCausalLM"],"Avatar":"https://img.alicdn.com/imgextra/i1/O1CN01yhHrHg1Pdl3UKPhGc_!!6000000001864-2-tps-88-88.png","Backbone":[],"BackendSupport":{"architectures":null,"backend_info":{"deploy_task":null,"lmdeploy":null,"lmdeploy_turbomind":null,"ollama":null,"sglang":null,"vllm":null},"model_id":"deepseek-ai/DeepSeek-V4-Pro-0813"},"BaseModel":[],"BaseModelRelation":"","CardReady":0,"CardUnreadyReason":"","CertificationCreateBy":"","CertificationCreatedTime":-62135596800,"ChineseName":"","CoverHeight":0,"CoverImages":[],"CoverWidth":0,"CreatedBy":"msr2000","CreatedTime":1786590691,"DashSdkParameter":"","Datasets":{},"DemoAvailable":0,"DemoUnavailableReason":"","Description":"","Domain":[],"Downloads":13854,"ExampleCodeAvailable":0,"ExampleCodeUnavailableReason":"","ForbiddenVisibilityUpdate":false,"Frameworks":[],"FromSite":"maas","Id":1549705,"Integrating":0,"IntegrationFailureLog":"","IntegrationFailureReason":"","IsAccessible":1,"IsCertification":4,"IsHot":0,"IsNewModel":false,"IsOnline":1,"IsOrgClaimed":false,"IsPreTrain":0,"IsPublished":1,"IsTop":22,"Language":[],"LastUpdatedTime":1786709211,"Libraries":["safetensors"],"License":"mit","LicenseLink":"","LicenseName":"","Meta":"","Metrics":[],"ModelDetail":{},"ModelInfos":{"safetensor":{"chat_template":"","files":[{"name":"model.safetensors.index.json","sha256":"2de2ac1e43134f8b03bf6156067715b7c3c73b1a507329e606023c601a56d30a","size":11651606},{"name":"model-00001-of-00066.safetensors","sha256":"74ff60e304294ef4482341d941dafcd0143e49fd3d4569f283b1e9020301c947","size":1853358176},{"name":"model-00002-of-00066.safetensors","sha256":"d7be184a5582a5a5a7b430c92572996ed8e43f2fe340f96b63a8dcd74ca3e52a","size":13874726024},{"name":"model-00003-of-00066.safetensors","sha256":"fc9291c02445cdb028315258f3bd9a65e336ebcfc45b74a5e0c78907b9ad7b47","size":13874726024},{"name":"model-00004-of-00066.safetensors","sha256":"6f2c6511e5cc9d611be87963ab95519ab38a565abba48c813dccac2208bc655b","size":13910006752},{"name":"model-00005-of-00066.safetensors","sha256":"453aeaf23b4c74f3b0429dc57c970620ff191c34957042aef63cc77511b2420e","size":13868522072},{"name":"model-00006-of-00066.safetensors","sha256":"9a1ea3ba51ace10663273f06d4913d72b003eeb657562f7ecec9cff4932f4026","size":13903802792},{"name":"model-00007-of-00066.safetensors","sha256":"1ac789c43cbfb74bf42ea06689cdc5bf1d609c74388f2a5bfbc700bae42255ce","size":13868522072},{"name":"model-00008-of-00066.safetensors","sha256":"b2e31dda0b244aca5ea1afb3e88541800dfeb3db6f135c1dc4fe9f75a3cde5a1","size":13903802792},{"name":"model-00009-of-00066.safetensors","sha256":"b2efb301a7e2eb7d5e186a336b30e55fe1df3d55f00490de8786fe05ded528ed","size":13868522072},{"name":"model-00010-of-00066.safetensors","sha256":"9f0d7228d9f90fb7f22b0dc357f736bdcb3918dad0133eb4377635f74ecdd6c6","size":13903802792},{"name":"model-00011-of-00066.safetensors","sha256":"9ff42cf9b6411918c85c4a99def2349c925024225abd900771d770fcbaf60dd7","size":13868522072},{"name":"model-00012-of-00066.safetensors","sha256":"c50346bb61a3999c4bbc1e16c683ea6ae01d7bafe1ccccc534ede8b472e1bbe1","size":13903805136},{"name":"model-00013-of-00066.safetensors","sha256":"e4fd1c5c65e0afd377687baeb5e9dce2774ef32198ad636ed69a82d073164942","size":13868524408},{"name":"model-00014-of-00066.safetensors","sha256":"a72fd0426270fd0fe15340363b212421dee09564f51b76a9f19d43778ee3aadc","size":13903805136},{"name":"model-00015-of-00066.safetensors","sha256":"ca601d33d249d8f4adcf30f66dd9cc2f38ff67f6ccfdce5661d8f7efe71fd994","size":13868524408},{"name":"model-00016-of-00066.safetensors","sha256":"f3ce6de8fbb5a4f59cd48eff77dacdabf39aff57cc43205c83565cfd7b3f113d","size":13903805136},{"name":"model-00017-of-00066.safetensors","sha256":"4af598f3672ab3dc55d063cfdc70227e879a8b593e3df53c5a60eacfaa06fd3b","size":13868524408},{"name":"model-00018-of-00066.safetensors","sha256":"0313cffc575c291b3359d971d9f0af6f8edb3a9ed5cf7f397550c034bb1be442","size":13903805136},{"name":"model-00019-of-00066.safetensors","sha256":"5ea603dbdab66ac815cff59e034b32f478754937c0425190a24e8d87c2895925","size":13868524408},{"name":"model-00020-of-00066.safetensors","sha256":"c3bb54f871d845254e24da6ad8816bde744e7f22d0ce2802a14cb59c35287453","size":13903805136},{"name":"model-00021-of-00066.safetensors","sha256":"516167a84b4b00313b7629139b3239af823caf622fc9ddd4c754a52aa74f15a4","size":13868524408},{"name":"model-00022-of-00066.safetensors","sha256":"df3975926bf3b11a637b24c346ab55ac28386d83498b41614a2c3070484093ad","size":13903805136},{"name":"model-00023-of-00066.safetensors","sha256":"e444e6d515480491b1fe64894d6185de170fb7987ce17e625f604d9e41ed639c","size":13868524408},{"name":"model-00024-of-00066.safetensors","sha256":"8690577cde635753a2a26f083aaa51af5dadee69d65d881bd1825aa46546d0e0","size":13903805136},{"name":"model-00025-of-00066.safetensors","sha256":"170edd2db317919af964fd08a719e381eb381d8bf62015d9a490e484d586cfb3","size":13868524408},{"name":"model-00026-of-00066.safetensors","sha256":"b3dcaa3372a42fc5a38e83a41d994647e4c35c8f259753c61b832cd4d82a94a8","size":13903805136},{"name":"model-00027-of-00066.safetensors","sha256":"50d385e1e247b309cc75914305e92f433fa0f6dc6ece895233bf9b3e713e3311","size":13868524408},{"name":"model-00028-of-00066.safetensors","sha256":"0449120425ee09db79420cb62e8a8f1aaad3ffeb623382f93355aadc0dd0f47f","size":13903805136},{"name":"model-00029-of-00066.safetensors","sha256":"37e8b8bcb4392adee55bc480059f10f842017fa9d1b179dd62ecdcdcacdb5027","size":13868524408},{"name":"model-00030-of-00066.safetensors","sha256":"f9bc11eef0b48e10d639b97f7d4df5cd521f79eb4765a53d6e9809f8e2dd3bdc","size":13903805136},{"name":"model-00031-of-00066.safetensors","sha256":"f115720429d749d20ab6f01c7af2b168728b3eabd703d399de1d304855cd13b1","size":13868524408},{"name":"model-00032-of-00066.safetensors","sha256":"7ac9402f531e2bf93ef9465a0e44a516f39ae58defdfb6ed667a608c40c40b62","size":13903805136},{"name":"model-00033-of-00066.safetensors","sha256":"dcb6e9370ec5bd283af59601447cbe8b9cae5297f9a4d746ebb7a89eb1e8b4ca","size":13868524408},{"name":"model-00034-of-00066.safetensors","sha256":"607f907a970aebb2fb5020955058f8bfd6bbfbf48334d597ad3e228fe43f66f4","size":13903805136},{"name":"model-00035-of-00066.safetensors","sha256":"ca4454ca96c52f4601cc375c7c41eb60921c54d99bc3fb2e1dc904c565b37d03","size":13868524408},{"name":"model-00036-of-00066.safetensors","sha256":"4ac44a65a92d0fda841f162e5c02343a079fdcdc48ef4f4afb5c30d6f984e910","size":13903805136},{"name":"model-00037-of-00066.safetensors","sha256":"6aad5ecd60cdbe6c8dca6bafa2aa776d748abc0b079c7f7c1984caf66747ef4b","size":13868524408},{"name":"model-00038-of-00066.safetensors","sha256":"b8e9376eeba09924844494a471b560b5ea53cf12bb78a1fbd17abd54760834b6","size":13903805136},{"name":"model-00039-of-00066.safetensors","sha256":"5182b6d508d4a5ba0ddfaecf6b9e35b69a54c369fed3e9f83521581fcbdb0d2a","size":13868524408},{"name":"model-00040-of-00066.safetensors","sha256":"dc91a11234ee0673db36daa759109ea5f42d1f54df256a7e48df2afab2fef017","size":13903805136},{"name":"model-00041-of-00066.safetensors","sha256":"1b446abc23a035807e6b55a195503daabb02e752fa424fbfe8f0530a944ce17d","size":13868524408},{"name":"model-00042-of-00066.safetensors","sha256":"5ec38fcfe3901cb3bc5b809d336c09f213d2e52cc5b80fde484becad16a117b1","size":13903805136},{"name":"model-00043-of-00066.safetensors","sha256":"a9279341f553af43e9ea63b06a0c61e2f6edd5ee224c3f228df2d3f5c62b5c01","size":13868524408},{"name":"model-00044-of-00066.safetensors","sha256":"ef67de8c818bc60d2d5b4aa652ee01afbea5fb2188f659bba6fc86af45ba00ba","size":13903805136},{"name":"model-00045-of-00066.safetensors","sha256":"5830f22254b598bf9a0f336bacd233791421d02e7d110db00c1872d5d9afa8be","size":13868524408},{"name":"model-00046-of-00066.safetensors","sha256":"22ae4fcc55b976724da9bd072096de540760f1eec3cff785e87621fd2d7060a4","size":13903805136},{"name":"model-00047-of-00066.safetensors","sha256":"30890437fc59315e6fa08fa8f045df3225fde77b15f586e0da5020d43f9fd4e9","size":13868524408},{"name":"model-00048-of-00066.safetensors","sha256":"877e6060d9c190230583ec56ce923a0b7f6c696f020fe3a9ab95fda0914e99b2","size":13903805136},{"name":"model-00049-of-00066.safetensors","sha256":"0527cff3c52ce82191e437b1ca8b858e1d3bbec6ed5ef52aac013cd2e6a85bee","size":13868524408},{"name":"model-00050-of-00066.safetensors","sha256":"52a94fd51d93b5e35e50ff431bce848292211b8528c6afeed4a6f0d34e23cce8","size":13903805136},{"name":"model-00051-of-00066.safetensors","sha256":"50044649fa7dd1c896c59ddbf633ca4557da50117bee8b0785956bdec3a72c85","size":13868524408},{"name":"model-00052-of-00066.safetensors","sha256":"086f263f3f493892fae50c2df53c53709125bd9a9cb040b52fc6a2b9dc975cd6","size":13903805136},{"name":"model-00053-of-00066.safetensors","sha256":"5e0264fd0c71e6174b023dc7d8180a491d3c5eac712ced8b213a73a83d003c1f","size":13868524408},{"name":"model-00054-of-00066.safetensors","sha256":"3f3adcbb18eae86cdc3195596a7236de204540fe508a1a3e5130deb5bfcb9362","size":13903805136},{"name":"model-00055-of-00066.safetensors","sha256":"5d4ab723dfabfa1a81f313ba8f3d53b46c32c49430ccfc0bbcced153adf098c1","size":13868524408},{"name":"model-00056-of-00066.safetensors","sha256":"409be8499d635bcbcd8663b58f0c2ec3c85b95753c0254b76af38f3688cfacb3","size":13903805136},{"name":"model-00057-of-00066.safetensors","sha256":"75146b06c0eb8879747a12d620fd44cc455051103c7b0a1a43fbcb0e61014d42","size":13868524408},{"name":"model-00058-of-00066.safetensors","sha256":"c3bbbde96d32b9c0ded912bce5015febb6ead1dc07d5be775a7a47e1920a3e28","size":13903805136},{"name":"model-00059-of-00066.safetensors","sha256":"2f5b62cd3111a031abc51cad6bc37b1b1e65131aa8e3540b05d5a4d0f288461a","size":13868524408},{"name":"model-00060-of-00066.safetensors","sha256":"0e4ac232d19396cf880db67d45c56a8164c17f2c2236ee4b53737047f2e38ead","size":13903805136},{"name":"model-00061-of-00066.safetensors","sha256":"dc3ef841f6278ce45a4c21b62fe91f257fee1cd0dec99e19e98d75f45f266c94","size":13868524408},{"name":"model-00062-of-00066.safetensors","sha256":"c8d8ecc7bc03fcd84752f0f2e16de3be28202e79f3632c4753295257ab02bd6d","size":13903805136},{"name":"model-00063-of-00066.safetensors","sha256":"56193a52a6fcc87629c7ca2f1d110140aa1e9a0cf49be5d21580f580a8e9cfc3","size":1853831588},{"name":"model-00064-of-00066.safetensors","sha256":"3869820fbd71ae92aa33de8fcf82b39b4535cf16a707ea640d5dacf5a5389103","size":14007736096},{"name":"model-00065-of-00066.safetensors","sha256":"09268dadf4bbe5e8c8d5b79ea645eb82b76e72c1e4ac9a63fa1bad07fd7f3ce7","size":13853571360},{"name":"model-00066-of-00066.safetensors","sha256":"40d4bf1620bd8397381cc3e75face996e3aa3cb5c928459ae31e79c1bdb30b63","size":14118826460}],"model_size":1650497936906,"tensor_type":["BF16","F8_E4M3","I64","F8_E8M0","I8","F32"]}},"ModelRevisions":null,"ModelSource":"USER_UPLOAD","ModelTools":"","ModelType":["deepseek_v4"],"MuseInfo":null,"NEXA":{"Catalogues":null,"ModelCover":"","ScientificField":"","Source":"","SubScientificField":null},"Name":"DeepSeek-V4-Pro-0813","NewVersion":"","NickName":"","OfficialTags":null,"OpenAiSwingDeployInfo":{"Order":0,"Recommend":null,"lmdeploy":{"eas":{"Script":"","requirements":""},"ens":{"Script":"","requirements":""},"fc":{"Script":"","requirements":""},"image_tag":""},"ollama":{"eas":{"Script":"","requirements":""},"ens":{"Script":"","requirements":""},"fc":{"Script":"","requirements":""},"image_tag":""},"pipeline":{"eas":{"Script":"","requirements":""},"ens":{"Script":"","requirements":""},"fc":{"Script":"","requirements":""},"image_tag":""},"vllm":{"eas":{"Script":"","requirements":""},"ens":{"Script":"","requirements":""},"fc":{"Script":"","requirements":""},"image_tag":""}},"Organization":{"ApplyFailureReason":"","ApplyReason":"","Avatar":"https://resouces.modelscope.cn/avatar/6c8d6d52-b760-4538-9b32-35dd5ebecc68.jpg","CreateCompetition":false,"CreatedBy":"Cherrytest","Description":"[\"root\",{},[\"p\",{},[\"span\",{\"data-type\":\"text\"},[\"span\",{\"bold\":true,\"data-type\":\"leaf\"},\"深度求索（DeepSeek）成立于 2023 年，一家致力于将通用人工智能（AGI）变为现实的中国公司。\"]]],[\"p\",{},[\"span\",{\"data-type\":\"text\"},[\"span\",{\"bold\":true,\"data-type\":\"leaf\"},\"怀抱好奇，解构 AGI 之谜；践行长期主义，回答时代之问。\"]]]]","DisplayUrl":"","Email":"","EmailDomain":"","FollowerCnt":0,"FromSite":"","FullName":"DeepSeek","GithubAddress":" https://www.deepseek.com/","GmtCreated":"2023-11-02T14:39:45Z","GmtModified":"2026-11-09T08:57:51Z","Id":405,"InitAdminMembers":"","IsApply":false,"IsCertification":"","MemberCnt":0,"Mobile":"","Name":"deepseek-ai","Path":"","Roles":null,"SocialLinks":null,"StarCnt":0,"Status":0,"SubscribeVo":null,"Type":2},"PaiModelGalleryUrl":{"deploy":"https://account.aliyun.com/login/login.htm?oauth_callback=https%3A//pai.console.aliyun.com/regionId%3Dcn-hangzhou%23/quick-start/models/DeepSeek-V4-Pro-0813/intro%3FviewType%3DDeploy%26from%3DModelScope\u0026lang=zh"},"PaiSdkParameter":null,"Path":"deepseek-ai","ProtectedMode":2,"ReadMeContent":"# DeepSeek-V4-Pro-0813\n\n\u003c!-- markdownlint-disable first-line-h1 --\u003e\n\u003c!-- markdownlint-disable html --\u003e\n\u003c!-- markdownlint-disable no-duplicate-header --\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/deepseek-ai/DeepSeek-V2/blob/main/figures/logo.svg?raw=true\" width=\"60%\" alt=\"DeepSeek-V4\" /\u003e\n\u003c/div\u003e\n\u003chr\u003e\n\u003cdiv align=\"center\" style=\"line-height: 1;\"\u003e\n  \u003ca href=\"https://www.deepseek.com/\" target=\"_blank\" style=\"margin: 2px;\"\u003e\n    \u003cimg alt=\"Homepage\" src=\"https://github.com/deepseek-ai/DeepSeek-V2/blob/main/figures/badge.svg?raw=true\" style=\"display: inline-block; vertical-align: middle;\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://chat.deepseek.com/\" target=\"_blank\" style=\"margin: 2px;\"\u003e\n    \u003cimg alt=\"Chat\" src=\"https://img.shields.io/badge/🤖%20Chat-DeepSeek%20V4-536af5?color=536af5\u0026logoColor=white\" style=\"display: inline-block; vertical-align: middle;\"/\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\u003cdiv align=\"center\" style=\"line-height: 1;\"\u003e\n  \u003ca href=\"https://huggingface.co/deepseek-ai\" target=\"_blank\" style=\"margin: 2px;\"\u003e\n    \u003cimg alt=\"Hugging Face\" src=\"https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-DeepSeek%20AI-ffc107?color=ffc107\u0026logoColor=white\" style=\"display: inline-block; vertical-align: middle;\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://twitter.com/deepseek_ai\" target=\"_blank\" style=\"margin: 2px;\"\u003e\n    \u003cimg alt=\"Twitter Follow\" src=\"https://img.shields.io/badge/Twitter-deepseek_ai-white?logo=x\u0026logoColor=white\" style=\"display: inline-block; vertical-align: middle;\"/\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\u003cdiv align=\"center\" style=\"line-height: 1;\"\u003e\n  \u003ca href=\"LICENSE\" style=\"margin: 2px;\"\u003e\n    \u003cimg alt=\"License\" src=\"https://img.shields.io/badge/License-MIT-f5de53?\u0026color=f5de53\" style=\"display: inline-block; vertical-align: middle;\"/\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://arxiv.org/abs/2606.19348\"\u003e\u003cb\u003eTechnical Report\u003c/b\u003e👁️\u003c/a\u003e\n\u003c/p\u003e\n\n## Introduction\n\n**DeepSeek-V4-Pro-0813** is the official release of **DeepSeek-V4-Pro**, superseding the preview version, with greatly enhanced agentic capabilities and performance improvements that are especially pronounced in production environments. It is built on the DeepSeek-V4-Pro (Preview) model structure, with a DSpark speculative decoding module attached.\n\nDeepSeek-V4-Pro-0813 outperforms DeepSeek-V4-Pro (Preview) on the benchmarks listed below, and is broadly competitive with the strongest proprietary models available.\n\n\u003cdiv align=\"center\"\u003e\n\n| Benchmark | DeepSeek-V4-Pro-0813 | DeepSeek-V4-Flash-0731 | DeepSeek-V4-Pro (Preview) | DeepSeek-V4-Flash (Preview) | GLM-5.2 | Kimi K3 | Opus-4.8 | Fable-5 (w/ fallback) |\n| :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |\n| HLE (wo / w tools) | 42.7 / 60.0 | 37.8 / 51.5 | 37.7 / 48.2 | 34.8 / 45.1 | 40.5 / 54.7 | 43.5 / 56.0 | 49.8 / 57.9 | 53.3 / 63.0 |\n| Terminal Bench 2.1 | 87.9 | 82.7 | 72.1 | 61.8 | 81.0 | 88.3 | 85.0 | 88.0 |\n| NL2Repo | 61.5 | 54.2 | 38.5 | 39.4 | 48.9 | - | 69.7 | - |\n| Cybergym | 83.3 | 76.7 | 52.7 | 38.7 | - | 80.0 | 78.3 | 83.1 |\n| DeepSWE | 62.7 | 54.4 | 12.8 | 7.3 | 46.2 | 67.5 | 58.0 | 70.0 |\n| Toolathlon-Verified | 74.1 | 70.3 | 55.9 | 49.7 | 59.9 | 76.5 | 76.2 | 77.9 |\n| Agents' Last Exam | 25.7 | 25.2 | 16.5 | 15.8 | 23.8 | 27.6 | 25.7 | - |\n| AutomationBench (Public) | 31.8 | 25.1 | 12.8 | 10.8 | 12.9 | 30.8 | 27.2 | 29.1 |\n| DSBench-FullStack † | 71.1 | 68.7 | 41.8 | 37.0 | 61.8 | 73.7 | 71.6 | 77.2 |\n| DSBench-Hard † | 67.2 | 59.6 | 31.1 | 25.8 | 54.5 | 63.0 | 71.7 | 68.3 |\n\n\u003c/div\u003e\n\nNotes:\n\n1. For the code-agent tasks among the public benchmarks above, DeepSeek-V4-Pro-0813 is evaluated with the minimal mode of DeepSeek Harness as the agent framework, using the `max` reasoning effort level with `temperature = 1.0, top_p = 0.95`.\n2. † DSBench-FullStack is an internal full-stack development test set; DSBench-Hard is an internal test set of difficult coding-agent problems.\n\n## Chat Template\n\nThis release does not include a Jinja-format chat template. Instead, we provide a dedicated `encoding` folder with Python scripts and test cases demonstrating how to encode messages in OpenAI-compatible format into input strings for the model, and how to parse the model's text output. Please refer to the [`encoding`](encoding/README.md) folder for full documentation.\n\nThe `reasoning_effort` parameter now supports three levels — `low`, `high`, and `max` — which control how much deliberation the model spends before answering.\n\nA brief example:\n\n```python\nfrom encoding_dsv4 import encode_messages, parse_message_from_completion_text\n\nmessages = [\n    {\"role\": \"user\", \"content\": \"hello\"},\n    {\"role\": \"assistant\", \"content\": \"Hello! I am DeepSeek.\", \"reasoning_content\": \"thinking...\"},\n    {\"role\": \"user\", \"content\": \"1+1=?\"}\n]\n\n# messages -\u003e string\nprompt = encode_messages(messages, thinking_mode=\"thinking\", reasoning_effort=\"max\")\n\n# string -\u003e tokens\nimport transformers\ntokenizer = transformers.AutoTokenizer.from_pretrained(\"deepseek-ai/DeepSeek-V4-Pro-0813\")\ntokens = tokenizer.encode(prompt)\n```\n\n## How to Run with vLLM\n\nDSpark speculative decoding is enabled with a single flag — add --speculative-config with method: dspark to your vLLM launch command:\n\n`--speculative-config '{\"method\":\"dspark\",\"num_speculative_tokens\":7,\"draft_sample_method\":\"greedy\"}'`\n\nFor example, the command below serves the model with vLLM on a single 4×GB300 node. \nSee the [vLLM recipe](https://recipes.vllm.ai/deepseek-ai/DeepSeek-V4-Pro) for detailed instructions and other hardware configurations.\n\n```bash\nvllm serve deepseek-ai/DeepSeek-V4-Pro-0813 \\\n  --trust-remote-code --kv-cache-dtype fp8 --block-size 256 \\\n  --data-parallel-size 4 --enable-expert-parallel \\\n  --moe-backend deep_gemm_mega_moe \\\n  --attention-config '{\"use_fp4_indexer_cache\": true}' \\\n  --speculative-config '{\"method\":\"dspark\",\"num_speculative_tokens\":7,\"draft_sample_method\":\"greedy\"}'\n```\n\n## How to Run with SGLang\n\nEnable DSpark with `--speculative-algorithm DSPARK` and do not set a separate `--speculative-draft-model-path` as the target and draft weights therefore come from the same checkpoint.\nSee the [SGLang cookbook](https://docs.sglang.io/cookbook/autoregressive/DeepSeek/DeepSeek-V4#hw=gb300\u0026variant=flash-official\u0026quant=fp4\u0026strategy=low-latency\u0026nodes=single) for detailed instructions, benchmarks and other hardwares configurations.\n\n```bash\nsglang serve \\\n  --trust-remote-code \\\n  --model-path deepseek-ai/DeepSeek-V4-Pro-0813 \\\n  --tp 4 \\\n  --moe-runner-backend flashinfer_mxfp4 \\\n  --speculative-algorithm DSPARK \\\n  --mem-fraction-static 0.90 \\\n  --chunked-prefill-size 4096 \\\n  --swa-full-tokens-ratio 0.1 \\\n```\n\n## How to Run Locally\n\nPlease refer to the [inference](inference/README.md) folder for detailed instructions on running DeepSeek-V4 locally, including model weight conversion and interactive chat demos.\n\nFor local deployment, we recommend setting the sampling parameters to `temperature = 1.0`, with `top_p = 0.95` for agentic scenarios and `top_p = 1.0` otherwise. For the `high` and `max` reasoning effort levels, we recommend a maximum output length of **384K** tokens.\n\n## License\n\nThis repository and the model weights are licensed under the [MIT License](LICENSE).\n\n## Citation\n\n```\n@misc{deepseekai2026deepseekv4,\n      title={DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligence},\n      author={DeepSeek-AI},\n      year={2026},\n}\n```\n\n## Contact\n\nIf you have any questions, please raise an issue or contact us at [service@deepseek.com](service@deepseek.com).\n\n","ReadMeTips":null,"RelatedArxivId":["2606.19348"],"RelatedPaper":[299510],"Revision":"master","Stars":507,"StorageSize":892762498444,"Studios":[],"SubVisionFoundation":"","SupportApiInference":false,"SupportDashDeployment":0,"SupportDashInference":0,"SupportDashTraining":0,"SupportDeployment":0,"SupportExperience":1,"SupportFinetuning":0,"SupportFlexTrain":0,"SupportInference":"txt2txt","SupportPaiModelGallery":["deploy"],"SupportPaiSdk":0,"SupportPivotEval":false,"SwingDeployInfo":null,"Tags":[],"Tasks":[{"ChineseName":"文本生成","Description":"","DomainName":"nlp","Id":22,"IsExhibition":true,"IsHot":0,"IsLeaf":true,"IsLoginRequired":true,"IsRetrieval":true,"Level":1,"Name":"text-generation","ParentId":-1,"ParentTask":null,"Sorting":0,"SupportWidgets":false,"TypicalModel":"","WidgetConfig":"{\"task\": \"text-generation\", \"inputs\": [{\"type\": \"text\", \"validator\": {\"max_words\": \"1000\"}, \"displayType\": \"OnlyTextArea\"}], \"output\": {\"displayType\": \"ReadonlyText\", \"transformOutputs\": [{\"outputKey\": \"text\"}], \"displayOutputMapping\": \"text\"}, \"examples\": []}","WidgetValidator":""}],"Tools":[],"TriggerWords":null,"Visibility":5,"VisionFoundation":"","_":null,"widgets":[{"enable":true,"enabled":false,"examples":[{"inputs":[{"data":"你好","name":"text"}],"name":"","parameters":null,"title":""}],"inferencespec":null,"inputs":null,"parameters":null,"task":"text-generation","template":{"general":false,"thinking":true}}]},"Message":"success","RequestId":"3f5517c1-38b9-48b6-b9bc-884d85449537","Success":true}