Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

mood-bench
/
gemma-2-27b-guard

PEFT
Safetensors
Transformers
lora
Model card Files Files and versions
xet
Community

Instructions to use mood-bench/gemma-2-27b-guard with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • PEFT

    How to use mood-bench/gemma-2-27b-guard with PEFT:

    from peft import PeftModel
    from transformers import AutoModelForSequenceClassification
    
    base_model = AutoModelForSequenceClassification.from_pretrained("google/gemma-2-27b")
    model = PeftModel.from_pretrained(base_model, "mood-bench/gemma-2-27b-guard")
  • Transformers

    How to use mood-bench/gemma-2-27b-guard with Transformers:

    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("mood-bench/gemma-2-27b-guard", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
gemma-2-27b-guard
215 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
pragsri8's picture
pragsri8
Migrate from shizwick/google_gemma-2-27b_guard-retrained
8fad000 verified 3 months ago
  • .gitattributes
    1.57 kB
    Migrate from shizwick/google_gemma-2-27b_guard-retrained 3 months ago
  • README.md
    5.16 kB
    Migrate from shizwick/google_gemma-2-27b_guard-retrained 3 months ago
  • adapter_config.json
    895 Bytes
    Migrate from shizwick/google_gemma-2-27b_guard-retrained 3 months ago
  • adapter_model.safetensors
    181 MB
    xet
    Migrate from shizwick/google_gemma-2-27b_guard-retrained 3 months ago
  • special_tokens_map.json
    522 Bytes
    Migrate from shizwick/google_gemma-2-27b_guard-retrained 3 months ago
  • tokenizer.json
    34.4 MB
    xet
    Migrate from shizwick/google_gemma-2-27b_guard-retrained 3 months ago
  • tokenizer_config.json
    46.4 kB
    Migrate from shizwick/google_gemma-2-27b_guard-retrained 3 months ago