{"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-Flash-0731"},"BaseModel":[""],"BaseModelRelation":"quantized","CardReady":0,"CardUnreadyReason":"","CertificationCreateBy":"","CertificationCreatedTime":-62135596800,"ChineseName":"","CoverHeight":0,"CoverImages":[],"CoverWidth":0,"CreatedBy":"msr2000","CreatedTime":1785491246,"DashSdkParameter":"","Datasets":{},"DemoAvailable":0,"DemoUnavailableReason":"","Description":"","Domain":[],"Downloads":153733,"ExampleCodeAvailable":0,"ExampleCodeUnavailableReason":"","ForbiddenVisibilityUpdate":false,"Frameworks":[""],"FromSite":"maas","Id":1539154,"Integrating":0,"IntegrationFailureLog":"","IntegrationFailureReason":"","IsAccessible":1,"IsCertification":4,"IsHot":0,"IsNewModel":false,"IsOnline":1,"IsOrgClaimed":false,"IsPreTrain":0,"IsPublished":1,"IsTop":0,"Language":[],"LastUpdatedTime":1785499675,"Libraries":["safetensors",""],"License":"mit","LicenseLink":"","LicenseName":"","Meta":"","Metrics":[],"ModelDetail":{},"ModelInfos":{"safetensor":{"chat_template":"","files":[{"name":"model.safetensors.index.json","sha256":"98efab455cf08dfbbbaaba6f570e1bf10bf927d2b4c3c453a59c2f6f0e3be92b","size":5602871},{"name":"model-00001-of-00048.safetensors","sha256":"f3668ba4cccf1ca6a7eb84e888fb92c1cdc7204d472ba9db771e6fd3abf6b874","size":1059061856},{"name":"model-00002-of-00048.safetensors","sha256":"77b26c939a0e25b3113c8d6bb04e1901a748bd4a7d2589e3bfdaabdf1e9bba14","size":3566321192},{"name":"model-00003-of-00048.safetensors","sha256":"412abf4c906faadc221ef0cb50f90fe20bde8454a08ad4dc2364b6b79e7fda5c","size":3566321192},{"name":"model-00004-of-00048.safetensors","sha256":"9610f56bc587fb0ff9a8b68a60299482ee8c433fe5b5587e4257aca98add4a2e","size":3596229272},{"name":"model-00005-of-00048.safetensors","sha256":"f87a5ac7b8becc31f9c3169afd3a6f33fb82b4af9e21022e3755a10bc28f0180","size":3568768976},{"name":"model-00006-of-00048.safetensors","sha256":"4a4f3764e3fc772b9fba67f0a44ef68e18f178b6f00faa80b75db549e51894cd","size":3590024776},{"name":"model-00007-of-00048.safetensors","sha256":"df81bb80e27a689e01fa579eebd6499f86e0b6105f7fea18961aa5eebbbee9bc","size":3568768976},{"name":"model-00008-of-00048.safetensors","sha256":"224968d2b27f8669365ec08657a768dfec40da0585f85f302a31495931f6a526","size":3590024776},{"name":"model-00009-of-00048.safetensors","sha256":"04d69ef1071fff8721c62968c200a5583122b59b015e9ef9b2978bfed271b2b7","size":3568768976},{"name":"model-00010-of-00048.safetensors","sha256":"627145f4ebeb1cc3f5bdd03416b8cb7370b3c96974853cbeb8e5516ad5713e49","size":3590024776},{"name":"model-00011-of-00048.safetensors","sha256":"e4b8e601dcbebe902e0102e7b098b670a121cb8b9564dd719fc41d782c8416e0","size":3568768976},{"name":"model-00012-of-00048.safetensors","sha256":"64ed4e5f6126ba029c462c9d5fca0fc907c5f855b4ba01194d79560f6db16e42","size":3590026352},{"name":"model-00013-of-00048.safetensors","sha256":"8dfe199d07c07ddd141c2c0136a2237f1161250a1a03ebe8deaabac93440da1d","size":3568770544},{"name":"model-00014-of-00048.safetensors","sha256":"45db2f540f825f92453c50335e49aede58cca56bc578d1787c12a0fbca6593e5","size":3590026352},{"name":"model-00015-of-00048.safetensors","sha256":"5810381a0f05b7381c002d299ed6ac19e42eba8070dd17e2703546944d84f292","size":3568770544},{"name":"model-00016-of-00048.safetensors","sha256":"e0530b7024771b0ce2df9b40bcc2232578f3300178487ec216863b0b2835617b","size":3590026352},{"name":"model-00017-of-00048.safetensors","sha256":"ed11130247118b185ade893c0109bad896dd394cb1e066ce4fce044176261d94","size":3568770544},{"name":"model-00018-of-00048.safetensors","sha256":"e393fea96da2a3414ef089354fc32e1c8891954de40958c84d2c2ecf80365b25","size":3590026352},{"name":"model-00019-of-00048.safetensors","sha256":"a74ca4d3e8e82ce20c458bb8b1900110b753793ad4c58d08f38995f719c616f7","size":3568770544},{"name":"model-00020-of-00048.safetensors","sha256":"9f556769926e60309e8defe45ab59fc8b26ae460d30c190cd746a3d78c11e2c2","size":3590026352},{"name":"model-00021-of-00048.safetensors","sha256":"1671cce7f90d781f796b5ca6bf32dd1aeb740abcb2735e41ffd28f62485ce005","size":3568770544},{"name":"model-00022-of-00048.safetensors","sha256":"decd67a4bd97a75fa36861d2ad3067afeefa6a04a20da997fe6c19f171e70132","size":3590026352},{"name":"model-00023-of-00048.safetensors","sha256":"c61a3e179cdbee19bfb8cbc4e111928ce2f1e1f0f4729d7c0cd5634354a4689d","size":3568770544},{"name":"model-00024-of-00048.safetensors","sha256":"fc27aeb4233534f6f7781dcfe57127a3908ae10fc025c5d86dc0682057f8b2fe","size":3590026352},{"name":"model-00025-of-00048.safetensors","sha256":"a66b6b8d5821b68f5b511e4f91e12025cd07d0fa6d0b71e722d825a2d6d878ca","size":3568770544},{"name":"model-00026-of-00048.safetensors","sha256":"657b89314fbaf6eee4acce24b3baf7e5fd2c5986a96ad85b08d90539cde869fe","size":3590026352},{"name":"model-00027-of-00048.safetensors","sha256":"fb01f21a0da0446b0bdf25a127ab19a6b06006acd8735f06a9ebfe34423fd7f5","size":3568770544},{"name":"model-00028-of-00048.safetensors","sha256":"b2fd5cbbb639f16e673bc484e5cca16b52a58bf2ab4bd62592e0c5408712ad7c","size":3590026352},{"name":"model-00029-of-00048.safetensors","sha256":"9ec2fdf900275daeac0980490c5c731cc7868b151ce1de5698f48418de4fa5f0","size":3568770544},{"name":"model-00030-of-00048.safetensors","sha256":"9ed3c317bf967d32133ad3a068ee4c56aae9784bc8b7da694482437f37dc1782","size":3590026352},{"name":"model-00031-of-00048.safetensors","sha256":"d5078c3fca3e6370043606ead7856e0b8fe67a9aab52c415769f29934c4d7f5d","size":3568770544},{"name":"model-00032-of-00048.safetensors","sha256":"163653848f002718d3deaa6ce48885483fc1f2e12e50e44a47477c73ccd91393","size":3590026352},{"name":"model-00033-of-00048.safetensors","sha256":"f2cffd43f2a5f491f4691f8694e6bc08239158e143ae7063dc04f0eb0259214a","size":3568770544},{"name":"model-00034-of-00048.safetensors","sha256":"0f94945121474cfdb6a9ab175914d3811ffbf08e6cc54082e14e473c755d18d8","size":3590026352},{"name":"model-00035-of-00048.safetensors","sha256":"9cb6a316989f7c7385e3ec2bd42ffe766ee126c70ef3466742849982ee1b0f0f","size":3568770544},{"name":"model-00036-of-00048.safetensors","sha256":"7e6761421fe944c2143eb897b983085891b421c148c6c17fb5cd8eaa9bdaa497","size":3590026352},{"name":"model-00037-of-00048.safetensors","sha256":"a59d662f1143596d56c452a1230b717ce43edf678207398c573a2503b0f72c91","size":3568770544},{"name":"model-00038-of-00048.safetensors","sha256":"137fa617a74ba8e73fd76bb1010c7a85d791aaa150006cb66faa04a83e9e730f","size":3590026352},{"name":"model-00039-of-00048.safetensors","sha256":"a29af1aa519d7ce726235ea2c2b38146d756290cda7a82d90c4d4438155b53e4","size":3568770544},{"name":"model-00040-of-00048.safetensors","sha256":"8bc93d8a7d1987dc86b14e22b1d8f42ec31da92c56edd9f312daf43f33a6a206","size":3590026352},{"name":"model-00041-of-00048.safetensors","sha256":"fd312e7fdd6cb5796df356a7f0314f124851dc149991e9fb02c5bed45cc4ba05","size":3568770544},{"name":"model-00042-of-00048.safetensors","sha256":"4d19bf368083c9a183cb0849f316ec17b62f859ca824c0586e779657efb6e6a6","size":3590026352},{"name":"model-00043-of-00048.safetensors","sha256":"b7103842ceb70848f9804f55c193d6a57f43174a587cba42b61b5c1bc4e1303d","size":3568770544},{"name":"model-00044-of-00048.safetensors","sha256":"422d3889fa20c238b7f97464c14df0bcf3328f189c294f41a3a334421dc560c7","size":3590026352},{"name":"model-00045-of-00048.safetensors","sha256":"a5be6aed7b84fc87ec42b5d24ba0b0d67f253a3906fcd99c13f4f7be5958fc00","size":1059332516},{"name":"model-00046-of-00048.safetensors","sha256":"5db924ca907e0d93acd975bd5079c3662717f9ac709f23d079bd8f816d29d9dd","size":3610455184},{"name":"model-00047-of-00048.safetensors","sha256":"62816173f9f6e136b20b48e3b6f16613ac9ea02b5603f636928b253244a548bd","size":3560111960},{"name":"model-00048-of-00048.safetensors","sha256":"cc43742bd24ae6bcdea343a91442f6f66aed2cfebcc6b235470204851ce2f8a9","size":3692775244}],"model_size":304180418494,"tensor_type":["F8_E8M0","BF16","F8_E4M3","I64","F32","I8"]}},"ModelRevisions":null,"ModelSource":"USER_UPLOAD","ModelTools":"","ModelType":["deepseek_v4"],"MuseInfo":null,"NEXA":{"Catalogues":null,"ModelCover":"","ScientificField":"","Source":"","SubScientificField":null},"Name":"DeepSeek-V4-Flash-0731","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":null,"PaiSdkParameter":null,"Path":"deepseek-ai","ProtectedMode":2,"ReadMeContent":"# DeepSeek-V4-Flash-0731\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-Flash-0731** is the official release of **DeepSeek-V4-Flash**, superseding the preview version, with substantially enhanced agentic capabilities. It has the same model structure as [DeepSeek-V4-Flash-DSpark](https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash-DSpark), i.e. it comes with a speculative decoding module attached.\n\nDeepSeek-V4-Flash-0731 outperforms DeepSeek-V4-Pro (Preview) on benchmarks listed below despite its far smaller activated parameter count, and is broadly competitive with the strongest proprietary models available.\n\n\u003cdiv align=\"center\"\u003e\n\n| Benchmark | DeepSeek-V4-Flash-0731 | DeepSeek-V4-Flash (Preview) | DeepSeek-V4-Pro (Preview) | GLM-5.2 | Opus-4.8 |\n| :--- | :---: | :---: | :---: | :---: | :---: |\n| Terminal Bench 2.1 | 82.7 | 61.8 | 72.1 | 81.0 | 85.0 |\n| NL2Repo | 54.2 | 39.4 | 38.5 | 48.9 | 69.7 |\n| Cybergym | 76.7 | 38.7 | 52.7 | - | 83.1 |\n| DeepSWE | 54.4 | 7.3 | 12.8 | 46.2 | 58.0 |\n| Toolathlon-Verified | 70.3 | 49.7 | 55.9 | 59.9 | 76.2 |\n| Agents' Last Exam | 25.2 | 15.8 | 16.5 | 23.8 | 25.7 |\n| AutomationBench Public | 25.1 | 10.8 | 12.8 | 12.9 | 27.2 |\n| DSBench-FullStack † | 68.7 | 37.0 | 41.8 | 61.8 | 71.6 |\n| DSBench-Hard † | 59.6 | 25.8 | 31.1 | 54.5 | 71.7 |\n\n\u003c/div\u003e\n\nNotes:\n\n1. For the Code Agent tasks among the public benchmarks above, DeepSeek-V4-Flash-0731 is evaluated with the minimal mode of DeepSeek Harness (to be released) 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-Flash-0731\")\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-Flash?hardware=b300\u0026features=tool_calling,reasoning) for detailed instructions and other hardware configurations.\n\n```bash\nvllm serve deepseek-ai/DeepSeek-V4-Flash-0731 \\\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 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":670,"StorageSize":0,"Studios":[],"SubVisionFoundation":"","SupportApiInference":false,"SupportDashDeployment":0,"SupportDashInference":0,"SupportDashTraining":0,"SupportDeployment":0,"SupportExperience":1,"SupportFinetuning":0,"SupportFlexTrain":0,"SupportInference":"txt2txt","SupportPaiModelGallery":null,"SupportPaiSdk":0,"SupportPivotEval":true,"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":"2487a400-7549-46af-bb6c-236b45cf4723","Success":true}