How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="macadeliccc/gemma-2b-openai-content-moderation")
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("macadeliccc/gemma-2b-openai-content-moderation")
model = AutoModelForCausalLM.from_pretrained("macadeliccc/gemma-2b-openai-content-moderation", device_map="auto")
Quick Links

This lora is trained on openai content moderation data as well as Nvidias Aegis dataset.

Prompt Template:

<|im_start|>system
{system}<|im_end|>
<|im_start|>user
{user}<|im_end|>
<|im_start|>assistant
Downloads last month
18
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for macadeliccc/gemma-2b-openai-content-moderation

Base model

google/gemma-2b
Quantized
(36)
this model

Collection including macadeliccc/gemma-2b-openai-content-moderation