{"_id":"664dc170474f2283fa5c8659","id":"mistralai/Mistral-7B-Instruct-v0.3","private":false,"library_name":"vllm","tags":["vllm","safetensors","mistral","mistral-common","base_model:mistralai/Mistral-7B-v0.3","base_model:finetune:mistralai/Mistral-7B-v0.3","license:apache-2.0","deploy:sagemaker","region:us"],"downloads":2062564,"likes":3773,"modelId":"mistralai/Mistral-7B-Instruct-v0.3","author":"mistralai","sha":"c170c708c41dac9275d15a8fff4eca08d52bab71","lastModified":"2025-12-03T12:13:48.000Z","gated":false,"disabled":false,"model-index":null,"config":{"architectures":["MistralForCausalLM"],"model_type":"mistral","tokenizer_config":{"bos_token":"<s>","chat_template":"{%- if messages[0][\"role\"] == \"system\" %}\n    {%- set system_message = messages[0][\"content\"] %}\n    {%- set loop_messages = messages[1:] %}\n{%- else %}\n    {%- set loop_messages = messages %}\n{%- endif %}\n{%- if not tools is defined %}\n    {%- set tools = none %}\n{%- endif %}\n{%- set user_messages = loop_messages | selectattr(\"role\", \"equalto\", \"user\") | list %}\n\n{#- This block checks for alternating user/assistant messages, skipping tool calling messages #}\n{%- set ns = namespace() %}\n{%- set ns.index = 0 %}\n{%- for message in loop_messages %}\n    {%- if not (message.role == \"tool\" or message.role == \"tool_results\" or (message.tool_calls is defined and message.tool_calls is not none)) %}\n        {%- if (message[\"role\"] == \"user\") != (ns.index % 2 == 0) %}\n            {{- raise_exception(\"After the optional system message, conversation roles must alternate user/assistant/user/assistant/...\") }}\n        {%- endif %}\n        {%- set ns.index = ns.index + 1 %}\n    {%- endif %}\n{%- endfor %}\n\n{{- bos_token }}\n{%- for message in loop_messages %}\n    {%- if message[\"role\"] == \"user\" %}\n        {%- if tools is not none and (message == user_messages[-1]) %}\n            {{- \"[AVAILABLE_TOOLS] [\" }}\n            {%- for tool in tools %}\n                {%- set tool = tool.function %}\n                {{- '{\"type\": \"function\", \"function\": {' }}\n                {%- for key, val in tool.items() if key != \"return\" %}\n                    {%- if val is string %}\n                        {{- '\"' + key + '\": \"' + val + '\"' }}\n                    {%- else %}\n                        {{- '\"' + key + '\": ' + val|tojson }}\n                    {%- endif %}\n                    {%- if not loop.last %}\n                        {{- \", \" }}\n                    {%- endif %}\n                {%- endfor %}\n                {{- \"}}\" }}\n                {%- if not loop.last %}\n                    {{- \", \" }}\n                {%- else %}\n                    {{- \"]\" }}\n                {%- endif %}\n            {%- endfor %}\n            {{- \"[/AVAILABLE_TOOLS]\" }}\n            {%- endif %}\n        {%- if loop.last and system_message is defined %}\n            {{- \"[INST] \" + system_message + \"\\n\\n\" + message[\"content\"] + \"[/INST]\" }}\n        {%- else %}\n            {{- \"[INST] \" + message[\"content\"] + \"[/INST]\" }}\n        {%- endif %}\n    {%- elif message.tool_calls is defined and message.tool_calls is not none %}\n        {{- \"[TOOL_CALLS] [\" }}\n        {%- for tool_call in message.tool_calls %}\n            {%- set out = tool_call.function|tojson %}\n            {{- out[:-1] }}\n            {%- if not tool_call.id is defined or tool_call.id|length != 9 %}\n                {{- raise_exception(\"Tool call IDs should be alphanumeric strings with length 9!\") }}\n            {%- endif %}\n            {{- ', \"id\": \"' + tool_call.id + '\"}' }}\n            {%- if not loop.last %}\n                {{- \", \" }}\n            {%- else %}\n                {{- \"]\" + eos_token }}\n            {%- endif %}\n        {%- endfor %}\n    {%- elif message[\"role\"] == \"assistant\" %}\n        {{- \" \" + message[\"content\"]|trim + eos_token}}\n    {%- elif message[\"role\"] == \"tool_results\" or message[\"role\"] == \"tool\" %}\n        {%- if message.content is defined and message.content.content is defined %}\n            {%- set content = message.content.content %}\n        {%- else %}\n            {%- set content = message.content %}\n        {%- endif %}\n        {{- '[TOOL_RESULTS] {\"content\": ' + content|string + \", \" }}\n        {%- if not message.tool_call_id is defined or message.tool_call_id|length != 9 %}\n            {{- raise_exception(\"Tool call IDs should be alphanumeric strings with length 9!\") }}\n        {%- endif %}\n        {{- '\"call_id\": \"' + message.tool_call_id + '\"}[/TOOL_RESULTS]' }}\n    {%- else %}\n        {{- raise_exception(\"Only user and assistant roles are supported, with the exception of an initial optional system message!\") }}\n    {%- endif %}\n{%- endfor %}\n","eos_token":"</s>","pad_token":null,"unk_token":"<unk>","use_default_system_prompt":false}},"cardData":{"library_name":"vllm","license":"apache-2.0","base_model":"mistralai/Mistral-7B-v0.3","inference":false,"extra_gated_description":"If you want to learn more about how we process your personal data, please read our <a href=\"https://mistral.ai/terms/\">Privacy Policy</a>.","tags":["vllm","mistral-common"]},"siblings":[{"rfilename":".gitattributes"},{"rfilename":"README.md"},{"rfilename":"config.json"},{"rfilename":"consolidated.safetensors"},{"rfilename":"generation_config.json"},{"rfilename":"model-00001-of-00003.safetensors"},{"rfilename":"model-00002-of-00003.safetensors"},{"rfilename":"model-00003-of-00003.safetensors"},{"rfilename":"model.safetensors.index.json"},{"rfilename":"params.json"},{"rfilename":"special_tokens_map.json"},{"rfilename":"tokenizer.json"},{"rfilename":"tokenizer.model"},{"rfilename":"tokenizer.model.v3"},{"rfilename":"tokenizer_config.json"}],"spaces":["tardellirs/model-pulse","embedl/hfviewer","pliny-the-prompter/obliteratus","hysts/mistral-7b","bhaskartripathi/LLM_Quantization","emanforhelp/model-pulse","seawolf2357/LLM_Quantization","gokaygokay/FLUX-Prompt-Generator","reach-vb/2024-ai-timeline","cvachet/pdf-chatbot","eduagarcia/open_pt_llm_leaderboard","yousef4/mistral-7b-v0.3-chat","gokaygokay/SD3.5-with-Captioner","KingNish/OpenCHAT-Mini","flowers-team/StickToYourRoleLeaderboard","logikon/open_cot_leaderboard","KBaba7/Quant","JournalistsonHF/huggingface-on-sheets","ysharma/Chat_with_Mistral_V0.3","gokaygokay/SD3.5-Prompt-Generator","poscye/ddg-web-search-chat","multimodalart/khala","NiansuhAI/HFLLMs","vilarin/Translation-Agent-WebUI","KingNish/OpenCHAT-mini2","CZLC/BenCzechMark","FINAL-Bench/worldmodel-bench","poscye/google-go","AiActivity/AI-Assistant","Skier8402/mistral-super-fast","ehristoforu/mistral-7b-v0.3-chat","bartar/tokenizers","FallnAI/Quantize-HF-Models","KwabsHug/GameConfigIdea","openfree/LLM_Quantization","VinayHajare/MistralTalk","eduagarcia/multilingual-tokenizer-leaderboard","Ateeqq/Mistral-7B-Instruct-v0.3","Shreyas094/SearchGPT","phyloforfun/VoucherVision","Justinrune/LLaMA-Factory","ruslanmv/convert_to_gguf","Agents-MCP-Hackathon/KarmaCheck","NiansuhAI/Main","MCP-1st-Birthday/DeepBoner","cot-leaderboard/open-cot-dashboard","Clone04/mistral-7b-v0.3-chatbpt","Agents-MCP-Hackathon/TDAgent","Adityahars/Sanskrit-env","Lumpen1/llama-cpp-agent","Deddy/Smart_Idea_Generator","responsible-prompting/demo-multiturn","Aabbhishekk/ChatPdf","poscye/mistral","kaleidoskop-hug/StreamlitChat_Test","Agents-MCP-Hackathon/xhmcp","Agents-MCP-Hackathon/comic_generator","HathoraResearch/LLM-KV-cache-calculator","infinitymatter/synthdatagen","TheStageAI/ANNA-LLM","Mihir1107/TheSnitch","awacke1/ChatStreamlitMultiplayer","John6666/llm-multi-demo","Jyothikamalesh/Vendor-contract-extractor","totolook/Quant","K00B404/LLM_Quantization","mwmathis/ClinicalTrialMatcher_HF","Sweathabala/personal-budget-env","Akjava/mistral-7b-v0.3-matcha-tts-en","saikub/chatB","NithyasriVllB/Chat_flash_sel_model","cstr/PDF-Summarizer","Chetan3110/Newsify-AI","fhudi/textgames","Alexbbqq/mistral-7b-v0.3-chat","weoweke23/mistralai-Mistral-7B-Instruct-v0.3","Theartplug/Theartplugchatbot","EthicalMindSet/AI_Argument_Analyzer","keeperballon/multi-llm","Chinar-Q-AI/Image2Story","MCP-1st-Birthday/NACC-VM","strangertoolshf/huggingface-tree","ArtelTaleb/hello-3d-world","AbdullahKhanSherwani/BlackBox","Italianhype/Blum","exnrt/mistral-7b-v0.3-chatbpt","rajeshk10/HealthMate-AI","vilarin/podcast","killerz3/PodGen","dwb2023/model_explorer2","Ahil1991/AI_Space_Public","aliceblue11/logo_o1-preview","nbroad/HF-API-monitor","m96tkmok/llama3.2_RAG_PDF_Chatbot","phamngoctukts/assistant","Aarvee320/Short-Story-Generator","pratikshahp/agent-persona","UltraRonin/LR2Bench_old","rajapandi2618/fake-product-detection","AthuKawaleLogituit/mistral_7B"],"createdAt":"2024-05-22T09:57:04.000Z","safetensors":{"parameters":{"BF16":7248023552},"total":7248023552},"usedStorage":28992746844}