Fine-Tuned GPT-2 on GDPR & EU AI Act π
This model is a fine-tuned version of GPT-2 on a legal dataset, specifically GDPR (General Data Protection Regulation) and EU AI Act.
π Model Details
- Base Model: GPT-2
- Fine-tuned on: GDPR and EU AI Act text corpus
- Purpose: Generates legal text related to GDPR and AI regulations
- Max Tokens: 512
π Dataset
The model has been trained on official GDPR and EU AI Act documents, extracted from legal PDFs.
π How to Use
To generate text using this model, use the following Python snippet:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "sssdddwd/Fine-Tuned-GPT2-legal"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
# Example legal text generation
input_text = "According to GDPR, personal data processing should be"
inputs = tokenizer(input_text, return_tensors="pt")
output = model.generate(**inputs, max_length=100)
# Print output
print(tokenizer.decode(output[0], skip_special_tokens=True))
- Downloads last month
- -
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support