{"_id":"6696d9e4d1bd59e81dbbc41a","id":"google/shieldgemma-2b","private":false,"pipeline_tag":"text-generation","library_name":"transformers","tags":["transformers","safetensors","gemma2","text-generation","conversational","arxiv:2407.21772","arxiv:2310.17389","arxiv:2306.05685","license:gemma","text-generation-inference","endpoints_compatible","region:us"],"downloads":3204,"likes":130,"modelId":"google/shieldgemma-2b","author":"google","sha":"d1dffc9c8c9237a90aab09c61383791e718ef9e8","lastModified":"2024-08-28T17:32:37.000Z","gated":"manual","disabled":false,"widgetData":[{"text":"Hi, what can you help me with?"},{"text":"What is 84 * 3 / 2?"},{"text":"Tell me an interesting fact about the universe!"},{"text":"Explain quantum computing in simple terms."}],"model-index":null,"config":{"architectures":["Gemma2ForCausalLM"],"model_type":"gemma2","tokenizer_config":{"bos_token":"<bos>","chat_template":"{%- if not guideline and messages[0].role == \"system\" %}\n    {%- set guideline = messages[0].content %}\n    {%- set messages = messages[1:] %}\n{%- endif %}\n\n{{- bos_token }}\n{%- if messages[-1].role == 'user' %}\n    {{- \"You are a policy expert trying to help determine whether a user prompt is in violation of the defined safety policies.\\n\\n\" }}\n    {{- \"<start_of_turn>\\n\" }}\n    {{- \"Human Question: \" + messages[-1].content }}\n    {{- \"\\n<end_of_turn>\\n\\n\" }}\n    {{- \"Our safety principle is defined in the below:\\n\\n\" }}\n    {{- \"* \" + guideline + \"\\n\" }}\n    {{- \"\\n===\\n\\n\" }}\n    {{- \"Does the human question violate the above principle? Your answer must start with 'Yes' or 'No'. And then walk through step by step to be sure we answer correctly.\\n\\n\" }}\n{%- else %}\n    {{- \"You are a policy expert trying to help determine whether an AI response to a prompt is in violation of the defined safety policies.\\n\\n\" }}\n    {{- \"<start_of_turn>\\n\" }}\n    {{- \"Human Question: \" + messages[-2].content }}\n    {{- \"\\n<end_of_turn>\\n\" }}\n    {{- \"<start_of_turn>\\n\" }}\n    {{- \"Chatbot Response: \" + messages[-1].content }}\n    {{- \"\\n<end_of_turn>\\n\\n\" }}\n    {{- \"Our safety principle is defined in the below:\\n\\n\" }}\n    {{- \"* \" + guideline + \"\\n\" }}\n    {{- \"\\n===\\n\\n\" }}\n    {{- \"Does the Chatbot Response violate the above principle? Your answer must  start with 'Yes' or 'No'. And then walk through step by step to be sure we answer correctly.\\n\\n\" }}\n{%- endif %}\n\n","eos_token":"<eos>","pad_token":"<pad>","unk_token":"<unk>","use_default_system_prompt":false}},"cardData":{"license":"gemma","library_name":"transformers","pipeline_tag":"text-generation","extra_gated_heading":"Access Gemma on Hugging Face","extra_gated_prompt":"To access Gemma on Hugging Face, you’re required to review and agree to Google’s usage license. To do this, please ensure you’re logged in to Hugging Face and click below. Requests are processed immediately.","extra_gated_button_content":"Acknowledge license"},"transformersInfo":{"auto_model":"AutoModelForCausalLM","pipeline_tag":"text-generation","processor":"AutoTokenizer"},"siblings":[{"rfilename":".gitattributes"},{"rfilename":"README.md"},{"rfilename":"config.json"},{"rfilename":"generation_config.json"},{"rfilename":"model-00001-of-00002.safetensors"},{"rfilename":"model-00002-of-00002.safetensors"},{"rfilename":"model.safetensors.index.json"},{"rfilename":"special_tokens_map.json"},{"rfilename":"tokenizer.json"},{"rfilename":"tokenizer.model"},{"rfilename":"tokenizer_config.json"}],"spaces":["seawolf2357/LLM_Quantization","KBaba7/Quant","gen6scp/sana-zero","FallnAI/Quantize-HF-Models","openfree/LLM_Quantization","bhaskartripathi/LLM_Quantization","ruslanmv/convert_to_gguf","totolook/Quant","K00B404/LLM_Quantization","jay2219/GemmaGuard","Oss11/Quantize-HF-Models","Xlnk/Quantize-HF-Models","exploitz3r0bbd/Quantize-HF-Models","coium/google-shieldgemma-2b","Swarmeta-AI/Twig-V0-Alpha-Demo-CPU","zhuhai111/sana-cpu","DaniCode/chatbot","K00B404/convert_to_gguf","flyand/test","StarrySkyWorld/ShieldGemma-2B-Gradio","GTOMA83/Quantize-HF-Models","Guilherme34/convert_to_gguf","Mr66/promptinject-env","rectified-snugness/glorified-spellcheck","GTO83/LLM_Quantization"],"createdAt":"2024-07-16T20:36:52.000Z","safetensors":{"parameters":{"BF16":2614341888},"total":2614341888},"usedStorage":5303866596}