gpt_bigcode
GPTBigCode, an optimized GPT2-style language model for code with Multi-Query Attention.
Language · 324 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Language
- Parameters
- 111.4M
- Operations
- 324
- Framework
- PyTorch
- Recurrent
- No
- Source
- transformers 5.18.0
- License
- Apache-2.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m5231
- Graph hash
- e5581f9bfcf5ef9ef42c7857d720834a833be031b503e41374904e335c41a0f8
- Skeleton hash
- 623947c7125a59aa6ac4e21c46e2ebbf36f1310d46b725a699b80838270eaae0
- Architecture hash
- a3b4b4b838815f00f166b430ba9c663a65dd2b250609eff47c79757de2418aa7
- Diagram SHA-256
- e18a7d4ef08f5e0ae042e232ce080979bf25652df8b58722b0501617722cc987
- TorchLens version
- 2.35.3
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
How this diagram was made
transformers.AutoModelForCausalLM.from_config()
What it is
GPTBigCode is a language model architecture for code: an optimized GPT2 model with support for Multi-Query Attention. It was proposed by BigCode in the paper SantaCoder: don't reach for the stars! Apart from Multi-Query Attention, the listed differences from GPT2 include Linear layers in place of Conv1D, which the library notes give a good speedup but make checkpoints incompatible. The key and value caches are also merged into one.
The paper trained 1.1B parameter models on the Java, JavaScript, and Python subsets of The Stack and evaluated them on the MultiPL-E text-to-code benchmark. It reports that its best model outperformed InCoder-6.7B and CodeGen-Multi-2.7B on the Java, JavaScript, and Python portions of MultiPL-E despite being a substantially smaller model. It also found that selecting files from repositories with 5+ GitHub stars deteriorates performance significantly.
Key idea. GPTBigCode is an optimized GPT2 model with support for Multi-Query Attention.
- gptbigcode
- gpt_bigcode
- gpt bigcode
- santacoder
- bigcode
- code generation
- code language model
- multi-query attention
AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.