Instructions to use narcolepticchicken/legal-pii-redactor-v3-contractbackbone-smoke with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use narcolepticchicken/legal-pii-redactor-v3-contractbackbone-smoke with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="narcolepticchicken/legal-pii-redactor-v3-contractbackbone-smoke")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("narcolepticchicken/legal-pii-redactor-v3-contractbackbone-smoke") model = AutoModelForTokenClassification.from_pretrained("narcolepticchicken/legal-pii-redactor-v3-contractbackbone-smoke", device_map="auto") - Notebooks
- Google Colab
- Kaggle
legal-pii-redactor-v3-contractbackbone-smoke
This model is a fine-tuned version of distilroberta-base on the None dataset. It achieves the following results on the evaluation set:
- Loss: 3.2323
- Precision: 0.1496
- Recall: 0.9156
- F1: 0.2572
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 3e-05
- train_batch_size: 8
- eval_batch_size: 8
- seed: 42
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- num_epochs: 0.15
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 |
|---|---|---|---|---|---|---|
| 3.3950 | 0.15 | 3 | 3.2323 | 0.1496 | 0.9156 | 0.2572 |
Framework versions
- Transformers 5.9.0
- Pytorch 2.7.1+cu126
- Datasets 4.8.5
- Tokenizers 0.22.2
Generated by ML Intern
This model repository was generated by ML Intern, an agent for machine learning research and development on the Hugging Face Hub.
- Try ML Intern: https://smolagents-ml-intern.hf.space
- Source code: https://github.com/huggingface/ml-intern
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = 'narcolepticchicken/legal-pii-redactor-v3-contractbackbone-smoke'
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
For non-causal architectures, replace AutoModelForCausalLM with the appropriate AutoModel class.
- Downloads last month
- 10
Model tree for narcolepticchicken/legal-pii-redactor-v3-contractbackbone-smoke
Base model
distilbert/distilroberta-base