You need to agree to share your contact information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

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
-
Safetensors
Model size
0.1B params
Tensor type
F32
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support