gpt-j-6b
EleutherAI (United States) · Language (text)
Which way is for me?
🌐 Online, right now
- Or try the free demo: EleutherAI/magma
🧑💻 For developers
vLLM
vllm serve EleutherAI/gpt-j-6bTransformers (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)
| Model | Public | Training FLOPs | LAMBADA PPL ↓ | LAMBADA Acc ↑ | Winogrande ↑ | Hellaswag ↑ |
|---|---|---|---|---|---|---|
| Random Chance | ✓ | 0 | ~a lot | ~0% | 50% | 25% |
| GPT-3 Ada‡ | ✗ | ----- | 9.95 | 51.6% | 52.9% | 43.4% |
| GPT-2 1.5B | ✓ | ----- | 10.63 | 51.21% | 59.4% | 50.9% |
| GPT-Neo 1.3B‡ | ✓ | 3.0e21 | 7.50 | 57.2% | 55.0% | 48.9% |
| Megatron-2.5B* | ✗ | 2.4e21 | ----- | 61.7% | ----- | ----- |
| GPT-Neo 2.7B‡ | ✓ | 6.8e21 | 5.63 | 62.2% | 56.5% | 55.8% |
| GPT-3 1.3B*‡ | ✗ | 2.4e21 | 5.44 | 63.6% | 58.7% | 54.7% |
| GPT-3 Babbage‡ | ✗ | ----- | 5.58 | 62.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: