Hugging Face's logo Hugging Face
    • Models
    • Datasets
    • Pricing
      • Website
        • Metrics
        • Languages
        • Organizations
      • Community
        • Forum
        • Blog
        • GitHub
      • Documentation
        • Model Hub doc
        • Inference API doc
        • Transformers doc
        • Tokenizers doc
        • Datasets doc
    • We're hiring!

    • Log In
    • Sign Up
    • Account
      • Log In
      • Sign Up
    • Website
      • Models
      • Datasets
      • Metrics
      • Languages
      • Organizations
      • Pricing
    • Community
      • Forum
      • Blog
    • Documentation
      • Model Hub doc
      • Inference API doc
      • Transformers doc
      • Tokenizers doc
      • Datasets doc

    Manuel Romero's picture mrm8488
    /
    gpt2-finetuned-reddit-tifu

    Text Generation
    PyTorch gpt2 lm-head causal-lm
    Model card Files and versions

    How to serve this model with the Accelerated Inference API

    Try the Inference API for free, and get an organization plan to use it in your apps.
    import json
    import requests
    
    API_URL = "https://api-inference.huggingface.co/models/mrm8488/gpt2-finetuned-reddit-tifu"
    headers = {"Authorization": f"Bearer {API_TOKEN}"}
    
    def query(payload):
    	data = json.dumps(payload)
    	response = requests.request("POST", API_URL, headers=headers, data=data)
    	return json.loads(response.content.decode("utf-8"))
    data = query("Can you please let us know more details about your ")

    Quick Links

    • Inference API Documentation
    • How to get started

    How to use from the 🤗/transformers library

    from transformers import AutoTokenizer, AutoModelWithLMHead
      
    tokenizer = AutoTokenizer.from_pretrained("mrm8488/gpt2-finetuned-reddit-tifu")
    
    model = AutoModelWithLMHead.from_pretrained("mrm8488/gpt2-finetuned-reddit-tifu")

    Or just clone the model repo

    git lfs install
    git clone https://huggingface.co/mrm8488/gpt2-finetuned-reddit-tifu
    # if you want to clone without large files – just their pointers
    # prepend your git clone with the following env var:
    GIT_LFS_SKIP_SMUDGE=1
      • main
      gpt2-finetuned-reddit-tifu
      History: 8 commits
      system
      Update pytorch_model.bin 1990eed last year
      • .gitattributes 345.0B initial commit last year
      • config.json 666.0B Update config.json last year
      • merges.txt 445.6KB Update merges.txt last year
      • pytorch_model.bin 486.8MB Update pytorch_model.bin last year
      • special_tokens_map.json 357.0B Update special_tokens_map.json last year
      • tokenizer_config.json 26.0B Update tokenizer_config.json last year
      • training_args.bin 1.5KB Update training_args.bin last year
      • vocab.json 877.6KB Update vocab.json last year