Instructions to use cmgdevl/brink-artifacts with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use cmgdevl/brink-artifacts with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
|
Download README.md from cmgdevl/brink-artifacts: direct link, hf CLI and curl.
- Browser
- Download file 1.74 kB
-
https://huggingface.co/cmgdevl/brink-artifacts/resolve/main/README.md
- Command line
-
hf download hf://cmgdevl/brink-artifacts/README.md
-
curl -L -o README.md https://huggingface.co/cmgdevl/brink-artifacts/resolve/main/README.md
1.74 kB
| license: cc-by-nc-4.0 | |
| base_model: CohereLabs/tiny-aya-global | |
| library_name: peft | |
| tags: [ai-safety, alignment, fine-tuning, interpretability, aya, lora] | |
| # Brink artifacts | |
| Fingerprints and Brink-protected adapters from **Brink**, which detects and prevents LLM safety collapse during | |
| fine-tuning (Lexsi AI Safety & Alignment Hackathon 2026). Code: https://github.com/andrew1234-arch/brink | |
| **Headline:** fine-tuning Tiny Aya as a Hindi assistant on data with 10 % harmful samples raised English attack success from 16% to 42%; with Brink it ended at 6% (`pipeline/summary.json`). | |
| - `adapters/<experiment>/<condition>/`: LoRA adapters for `CohereLabs/tiny-aya-global` from Brink-protected runs | |
| only. `adapters/pipeline/brink/` is the Hindi assistant fine-tuned on contaminated data with Brink on (data | |
| gate, monitor, rollback and erosion guard). | |
| - `fingerprints/`: per-model (and per-language) refusal directions, monitored layer, refusal / compliance | |
| first tokens and baseline statistics (`.pt` + `.json`). | |
| - Results, reports and logs: https://huggingface.co/datasets/cmgdevl/brink-results | |
| ```python | |
| from peft import PeftModel | |
| from transformers import AutoModelForCausalLM, AutoTokenizer | |
| tok = AutoTokenizer.from_pretrained("CohereLabs/tiny-aya-global") | |
| base = AutoModelForCausalLM.from_pretrained("CohereLabs/tiny-aya-global", dtype="auto", device_map="auto") | |
| model = PeftModel.from_pretrained(base, "cmgdevl/brink-artifacts", subfolder="adapters/pipeline/brink") | |
| ``` | |
| **Licence:** the adapters and fingerprints are derived from `CohereLabs/tiny-aya-global` and follow its licence, | |
| CC-BY-NC 4.0 (non-commercial). Brink's code is MIT. | |
| Model replies to harmful prompts and deliberately drifted adapters are not published. | |