Instructions to use renardedas/lexsi-tiny-aya-pseudonymizer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use renardedas/lexsi-tiny-aya-pseudonymizer with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("CohereLabs/tiny-aya-global") model = PeftModel.from_pretrained(base_model, "renardedas/lexsi-tiny-aya-pseudonymizer") - Notebooks
- Google Colab
- Kaggle
Tiny Aya contextual pseudonymizer adapter
Private hackathon prototype. Fine-tuned with two 225-step QLoRA passes on synthetic English text; refinement was accepted. Final profile: global_125. The final adapter retains the global_125 edit after refinement, affecting 252 LoRA B tensors.
Base revision: af89d219b53ed9b13b8a4645f9c8028973510324.
Adapter tensor SHA-256: 4bd0e3cb01744be757ddb830b14da4d75b234f654497abc4134ec62c0ad1a2a9.
Use the accompanying core.py policy, chat template and exact-span renderer. This is an entity extraction adapter; its JSON output is not itself a redacted document. The accompanying source applies typed placeholders and rejects invalid spans. Consistency is limited to exact repeated strings within a request.
Fresh synthetic evaluation (120 records)
| Metric | Selected adapter |
|---|---|
| Valid output schema | 100.00% |
| Identifier character recall | 100.00% |
| Indirect identifier character recall | 100.00% |
| Non-identifying text preserved | 95.78% |
| Exact entity precision | 84.58% |
| Exact entity recall | 94.58% |
| All annotated identifiers covered | 100.00% |
| Negative records unchanged | 54.17% |
Synthetic performance does not establish anonymity. Review all drafts for missed direct and indirect identifiers. See Final_Results.md, Dataset_Card.md and the detailed result reports for metric definitions, diagnostic failures and data limitations. No real user documents were used to train this adapter.
The gated base is separate; obtain it through an account authorized by Cohere. The base's CC-BY-NC 4.0 license and applicable model terms continue to apply. This adapter is a research prototype.
- Downloads last month
- 16