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

liao1111
/
CompanionGuard

PEFT
Safetensors
safety
ai-companion
guardrail
Model card Files Files and versions
xet
Community

Instructions to use liao1111/CompanionGuard with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • PEFT

    How to use liao1111/CompanionGuard with PEFT:

    from peft import PeftModel
    from transformers import AutoModelForCausalLM
    
    base_model = AutoModelForCausalLM.from_pretrained("/mnt/shared-storage-gpfs2/gpfs2-shared-public/huggingface/zskj-hub/models-meta-llama-Llama-Guard-3-8B")
    model = PeftModel.from_pretrained(base_model, "liao1111/CompanionGuard")
  • Notebooks
  • Google Colab
  • Kaggle
CompanionGuard
168 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 8 commits
liao1111's picture
liao1111
Upload README.md with huggingface_hub
f5259f1 verified about 12 hours ago
  • .gitattributes
    1.58 kB
    Upload CompanionSafe_paper.pdf with huggingface_hub 1 day ago
  • README.md
    1.8 kB
    Upload README.md with huggingface_hub about 12 hours ago
  • adapter_config.json
    1.13 kB
    Add files using upload-large-folder tool 1 day ago
  • adapter_model.safetensors
    168 MB
    xet
    Add files using upload-large-folder tool 1 day ago
  • additional_config.json
    67 Bytes
    Add files using upload-large-folder tool 1 day ago