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
Adapter at adapters/pipeline/brink; card with licence and usage
Browse files
README.md
CHANGED
|
@@ -1,15 +1,34 @@
|
|
| 1 |
---
|
| 2 |
-
license:
|
| 3 |
-
|
|
|
|
|
|
|
| 4 |
---
|
| 5 |
|
| 6 |
# Brink artifacts
|
| 7 |
|
| 8 |
-
Fingerprints and
|
| 9 |
fine-tuning (Lexsi AI Safety & Alignment Hackathon 2026). Code: https://github.com/andrew1234-arch/brink
|
| 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
- `fingerprints/`: per-model (and per-language) refusal directions, monitored layer, refusal / compliance
|
| 12 |
first tokens and baseline statistics (`.pt` + `.json`).
|
| 13 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
Model replies to harmful prompts and deliberately drifted adapters are not published.
|
|
|
|
| 1 |
---
|
| 2 |
+
license: cc-by-nc-4.0
|
| 3 |
+
base_model: CohereLabs/tiny-aya-global
|
| 4 |
+
library_name: peft
|
| 5 |
+
tags: [ai-safety, alignment, fine-tuning, interpretability, aya, lora]
|
| 6 |
---
|
| 7 |
|
| 8 |
# Brink artifacts
|
| 9 |
|
| 10 |
+
Fingerprints and Brink-protected adapters from **Brink**, which detects and prevents LLM safety collapse during
|
| 11 |
fine-tuning (Lexsi AI Safety & Alignment Hackathon 2026). Code: https://github.com/andrew1234-arch/brink
|
| 12 |
|
| 13 |
+
**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`).
|
| 14 |
+
|
| 15 |
+
- `adapters/<experiment>/<condition>/`: LoRA adapters for `CohereLabs/tiny-aya-global` from Brink-protected runs
|
| 16 |
+
only. `adapters/pipeline/brink/` is the Hindi assistant fine-tuned on contaminated data with Brink on (data
|
| 17 |
+
gate, monitor, rollback and erosion guard).
|
| 18 |
- `fingerprints/`: per-model (and per-language) refusal directions, monitored layer, refusal / compliance
|
| 19 |
first tokens and baseline statistics (`.pt` + `.json`).
|
| 20 |
+
- Results, reports and logs: https://huggingface.co/datasets/cmgdevl/brink-results
|
| 21 |
+
|
| 22 |
+
```python
|
| 23 |
+
from peft import PeftModel
|
| 24 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 25 |
+
|
| 26 |
+
tok = AutoTokenizer.from_pretrained("CohereLabs/tiny-aya-global")
|
| 27 |
+
base = AutoModelForCausalLM.from_pretrained("CohereLabs/tiny-aya-global", dtype="auto", device_map="auto")
|
| 28 |
+
model = PeftModel.from_pretrained(base, "cmgdevl/brink-artifacts", subfolder="adapters/pipeline/brink")
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
**Licence:** the adapters and fingerprints are derived from `CohereLabs/tiny-aya-global` and follow its licence,
|
| 32 |
+
CC-BY-NC 4.0 (non-commercial). Brink's code is MIT.
|
| 33 |
|
| 34 |
Model replies to harmful prompts and deliberately drifted adapters are not published.
|
adapters/{_work/pipeline/adapters → pipeline}/brink/README.md
RENAMED
|
File without changes
|
adapters/{_work/pipeline/adapters → pipeline}/brink/adapter_config.json
RENAMED
|
File without changes
|
adapters/{_work/pipeline/adapters → pipeline}/brink/adapter_model.safetensors
RENAMED
|
File without changes
|