code2seq
by Meta · Feb 21, 2019
code2seq is an open-weight chat llm from Meta, released Feb 21, 2019. It has 37M parameters.
- Provider
- Meta
- Released
- Feb 21, 2019
- Type
- Chat LLM
- Parameters
- 37M
- Context window
- —
- Max output
- —
- Input
- text
- Output
- text
- Weights
- Open weights
- License
- Open (permissive)
- Knowledge cutoff
- —
- Status
- Historical
- Training compute
- 1.2e+19 FLOP
- Training data
- 46M tokens/words
About code2seq
The ability to generate natural language sequences from source code snippets has a variety of applications such as code summarization, documentation, and retrieval. Sequence-to-sequence (seq2seq) models, adopted from neural machine translation (NMT), have achieved state-of-the-art performance on these tasks by treating source code as a sequence of tokens. We present CODE2SEQ: an alternative approach that leverages the syntactic structure of programming languages to better encode source code.
How to run code2seq
code2seq is an open-weight model. Run it locally with Ollama, LM Studio or llama.cpp (quantized GGUF builds), or serve it on GPUs with vLLM, SGLang or Hugging Face TGI. At 37M parameters it needs roughly 1 GB of memory at 4-bit quantization.
code2seq vs alternatives
- code2seq vs AWD-LSTM + MoS + Partial Shuffled
- code2seq vs AWD-LSTM-DRILL + dynamic evaluation† (WT2)
- code2seq vs AWD-LSTM-DRILL + dynamic evaluation† (PTB)
- code2seq vs DistilBERT
- code2seq vs ALBERT
- code2seq vs DensePhrases
| Model | Provider | Released | Params | Context | Input $/1M | Output $/1M | ECI |
|---|---|---|---|---|---|---|---|
| AWD-LSTM + MoS + Partial Shuffledopen | University of Texas at Austin | Jun 2019 | 35M | — | — | — | — |
| AWD-LSTM-DRILL + dynamic evaluation† (WT2)open | IDIAP | May 2019 | 34M | — | — | — | — |
| AWD-LSTM-DRILL + dynamic evaluation† (PTB)open | IDIAP | May 2019 | 24M | — | — | — | — |
| DistilBERTopen | Hugging Face | Oct 2019 | 66M | — | — | — | — |
| ALBERTopen | Google DeepMind | Sep 2019 | 18M | — | — | — | — |
| DensePhrasesopen | Korea University | Dec 2020 | — | — | — | — | — |
| Hopfield Networks (2020)open | Johannes Kepler University Linz | Jul 2020 | — | — | — | — | — |
| (ensemble): AWD-LSTM-DOC (fin) × 5 (PTB)open | NTT Communication Science Laboratories | Aug 2018 | — | — | — | — | — |
More models from Meta
All Meta models →| Model | Released | Params | Context | Input $/1M | Output $/1M |
|---|---|---|---|---|---|
| Muse Spark 1.3 Contributor | Sep 2026 | — | 1M | $0.1 | $0.2 |
| Llama-3.3-70B-Instructopen | Dec 2024 | 71B | 128K | $0.71 | $0.71 |
| Muse Spark Openopen | Oct 2026 | 816B | 1M | $1.25 | $4.25 |
| Muse Spark 1.2 | Aug 2026 | — | 1M | $0.1 | $0.2 |
| Muse Wonder | Oct 2026 | — | 1M | $4 | $20 |
| Muse Spark 1.1 | Apr 2026 | — | 1M | $1.25 | $4.25 |
| Llama 4 Maverickopen | Apr 2025 | 402B | 512K | $0.35 | $1 |
| Llama 4 Scoutopen | Apr 2025 | 109B | 320K | $0.1 | $0.3 |
Frequently asked questions
Who made code2seq?
code2seq was developed by Meta (Israel,United States of America,France). It was released on Feb 21, 2019.
Is code2seq open source?
Yes. code2seq's weights are publicly available, so you can download and run it yourself.
How many parameters does code2seq have?
code2seq has 37M parameters.
Sources: epoch · paper. Last updated 2026-11-22.