gpt-j-6b

EleutherAI (United States) · Language (text)

📄 2K context🔓 Open weights (downloadable)⚖️ apache-2.0

Which way is for me?

🌐 Online, right now

  1. Or try the free demo: EleutherAI/magma

🧑‍💻 For developers

vLLM

vllm serve EleutherAI/gpt-j-6b

Transformers (Python)

from transformers import pipeline
pipe = pipeline("text-generation", model="EleutherAI/gpt-j-6b")
Words used here
GGUF
The file format LM Studio, Ollama and llama.cpp use to run a model.
Quantization (Q4, Q8)
Shrinking a model by storing numbers less precisely: Q4 smallest and slightly weaker, Q8 almost full, FP16 full.
VRAM
The graphics card's memory (or shared memory on a Mac); the model has to fit in it.
Context
The most text the model can see at once in a conversation (questions, answers and files).
Tokens per second
How fast the answer is written; 20 is about reading speed, 5 is slow.

From the Hugging Face model card

GPT-J 6B is a transformer model trained using Ben Wang's Mesh Transformer JAX. "GPT-J" refers to the class of model, while "6B" represents the number of trainable parameters.

Intended use

GPT-J learns an inner representation of the English language that can be used to extract features useful for downstream tasks. The model is best at what it was pretrained for however, which is generating text from a prompt.

Limitations

GPT-J learns an inner representation of the English language that can be used to extract features useful for downstream tasks. The model is best at what it was pretrained for however, which is generating text from a prompt.

Benchmarks (from the model card)

ModelPublicTraining FLOPsLAMBADA PPL ↓LAMBADA Acc ↑Winogrande ↑Hellaswag ↑
Random Chance✓0~a lot~0%50%25%
GPT-3 Ada‡✗-----9.9551.6%52.9%43.4%
GPT-2 1.5B✓-----10.6351.21%59.4%50.9%
GPT-Neo 1.3B‡✓3.0e217.5057.2%55.0%48.9%
Megatron-2.5B*✗2.4e21-----61.7%----------
GPT-Neo 2.7B‡✓6.8e215.6362.2%56.5%55.8%
GPT-3 1.3B*‡✗2.4e215.4463.6%58.7%54.7%
GPT-3 Babbage‡✗-----5.5862.4%59.0%54.5%

Source: Hugging Face · EleutherAI/gpt-j-6b · License: apache-2.0

Hardware and running it

Cloud Only through the maker's API or cloud services; it cannot run on your own hardware.

Links come from the vendor's official site and the model card the vendor published · Updated: