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
Download additional_config.json from liao1111/CompanionGuard: direct link, hf CLI and curl.
- Browser
- Download file 67 Bytes
-
https://huggingface.co/liao1111/CompanionGuard/resolve/main/additional_config.json
- Command line
-
hf download hf://liao1111/CompanionGuard/additional_config.json
-
curl -L -o additional_config.json https://huggingface.co/liao1111/CompanionGuard/resolve/main/additional_config.json
67 Bytes
| {"lora_dtype": null, "lorap_lr_ratio": null, "lorap_emb_lr": 1e-06} |