How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="AISystems/Pak-DistilGPT2-Legal")
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("AISystems/Pak-DistilGPT2-Legal")
model = AutoModelForCausalLM.from_pretrained("AISystems/Pak-DistilGPT2-Legal")
Quick Links

Distil GPT

This is a small version of Generative Pre-trained Transformer 2 (GPT-2), pretrained on 10 GB of Pakistan's Legal Corpus to generate Legal text developed by AI Systems using Causal Language Modelling.

Reference:

This model was orginally taken from "distilGPT2" developed by HuggingFace (https://huggingface.co/distilgpt2)

Downloads last month
2
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support