deepseek-ai/DeepSeek-R1-0528 · Hugging Face


‘ + message[‘content’]}}{%- endif %}{%- if message[‘role’] == ‘assistant’ and ‘tool_calls’ in message %}{%- set ns.is_tool = false -%}{%- for tool in message[‘tool_calls’] %}{%- if not ns.is_first %}{%- if message[‘content’] is none %}{{‘<|Assistant|><|tool▁calls▁begin|><|tool▁call▁begin|>’ + tool[‘type’] + ‘<|tool▁sep|>’ + tool[‘function’][‘name’] + ‘\\n’ + ‘“`json’ + ‘\\n’ + tool[‘function’][‘arguments’] + ‘\\n’ + ‘“`’ + ‘<|tool▁call▁end|>’}}{%- else %}{{‘<|Assistant|>’ + message[‘content’] + ‘<|tool▁calls▁begin|><|tool▁call▁begin|>’ + tool[‘type’] + ‘<|tool▁sep|>’ + tool[‘function’][‘name’] + ‘\\n’ + ‘“`json’ + ‘\\n’ + tool[‘function’][‘arguments’] + ‘\\n’ + ‘“`’ + ‘<|tool▁call▁end|>’}}{%- endif %}{%- set ns.is_first = true -%}{%- else %}{{‘\\n’ + ‘<|tool▁call▁begin|>’ + tool[‘type’] + ‘<|tool▁sep|>’ + tool[‘function’][‘name’] + ‘\\n’ + ‘“`json’ + ‘\\n’ + tool[‘function’][‘arguments’] + ‘\\n’ + ‘“`’ + ‘<|tool▁call▁end|>’}}{%- endif %}{%- endfor %}{{‘<|tool▁calls▁end|><|end▁of▁sentence|>’}}{%- endif %}{%- if message[‘role’] == ‘assistant’ and ‘tool_calls’ not in message %}{%- if ns.is_tool %}{{‘<|tool▁outputs▁end|>’ + message[‘content’] + ‘<|end▁of▁sentence|>’}}{%- set ns.is_tool = false -%}{%- else %}{% set content = message[‘content’] %}{% if ” in content %}{% set content = content.split(”)[-1] %}{% endif %}{{‘<|Assistant|>’ + content + ‘<|end▁of▁sentence|>’}}{%- endif %}{%- endif %}{%- if message[‘role’] == ‘tool’ %}{%- set ns.is_tool = true -%}{%- if ns.is_output_first %}{{‘<|tool▁outputs▁begin|><|tool▁output▁begin|>’ + message[‘content’] + ‘<|tool▁output▁end|>’}}{%- set ns.is_output_first = false %}{%- else %}{{‘<|tool▁output▁begin|>’ + message[‘content’] + ‘<|tool▁output▁end|>’}}{%- endif %}{%- endif %}{%- endfor -%}{% if ns.is_tool %}{{‘<|tool▁outputs▁end|>’}}{% endif %}{% if add_generation_prompt and not ns.is_tool %}{{‘<|Assistant|>’}}{% endif %}”}},”createdAt”:”2025-05-28T09:46:42.000Z”,”discussionsDisabled”:false,”downloads”:0,”downloadsAllTime”:0,”id”:”deepseek-ai/DeepSeek-R1-0528″,”isLikedByUser”:false,”availableInferenceProviders”:[],”inference”:””,”lastModified”:”2025-05-28T18:01:18.000Z”,”likes”:194,”librariesOther”:[],”trackDownloads”:true,”private”:false,”repoType”:”model”,”gated”:false,”pwcLink”:{“error”:”Unknown error, can’t generate link to Papers With Code.”},”tags”:[“safetensors”,”deepseek_v3″,”custom_code”,”fp8″,”region:us”],”tag_objs”:[{“id”:”safetensors”,”label”:”Safetensors”,”type”:”library”},{“id”:”deepseek_v3″,”label”:”deepseek_v3″,”type”:”other”},{“id”:”custom_code”,”label”:”custom_code”,”type”:”other”},{“id”:”fp8″,”label”:”fp8″,”type”:”other”},{“type”:”region”,”label”:”🇺🇸 Region: US”,”id”:”region:us”}],”safetensors”:{“parameters”:{“BF16″:3918786560,”F8_E4M3″:680571043840,”F32″:41555600},”total”:684531386000,”sharded”:true},”hasBlockedOids”:false,”region”:”us”,”isQuantized”:false,”xetEnabled”:false},”canWrite”:false,”shouldUpdateUrl”:true,”inferenceContextData”:{“billableEntities”:[],”entityName2Providers”:{}},”linkToInferenceDiscussion”:{“url”:”/spaces/huggingface/InferenceSupport/discussions/2216″,”numReactions”:4}}”>



Source link