← Back to index
gpt2
Hosted inference API
Text Generation
This model can be loaded on the Inference API on-demand.
{
  "modelId": "gpt2",
  "sha": "6c0e6080953db56375760c0471a8c5f2929baf11",
  "lastModified": "2021-05-19T16:25:59.000Z",
  "private": false,
  "pipeline_tag": "text-generation",
  "tags": [
    "pytorch",
    "tf",
    "jax",
    "tflite",
    "rust",
    "gpt2",
    "lm-head",
    "causal-lm",
    "en",
    "transformers",
    "exbert",
    "license:mit",
    "text-generation"
  ],
  "siblings": [
    {
      "rfilename": ".gitattributes"
    },
    {
      "rfilename": "64-8bits.tflite"
    },
    {
      "rfilename": "64-fp16.tflite"
    },
    {
      "rfilename": "64.tflite"
    },
    {
      "rfilename": "README.md"
    },
    {
      "rfilename": "config.json"
    },
    {
      "rfilename": "flax_model.msgpack"
    },
    {
      "rfilename": "merges.txt"
    },
    {
      "rfilename": "pytorch_model.bin"
    },
    {
      "rfilename": "rust_model.ot"
    },
    {
      "rfilename": "tf_model.h5"
    },
    {
      "rfilename": "tokenizer.json"
    },
    {
      "rfilename": "vocab.json"
    }
  ],
  "config": {
    "architectures": [
      "GPT2LMHeadModel"
    ],
    "model_type": "gpt2",
    "task_specific_params": {
      "text-generation": {
        "do_sample": true,
        "max_length": 50
      }
    }
  },
  "widgetData": [
    {
      "text": "My name is Julien and I like to"
    },
    {
      "text": "My name is Thomas and my main"
    },
    {
      "text": "My name is Mariama, my favorite"
    },
    {
      "text": "My name is Clara and I am"
    },
    {
      "text": "Once upon a time,"
    }
  ]
}