Skip to content
llmmodels
Chat LLMOpen weightsHistorical

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

Alternatives to code2seq
ModelProviderReleasedParamsContextInput $/1MOutput $/1MECI
AWD-LSTM + MoS + Partial ShuffledopenUniversity of Texas at AustinJun 201935M————
AWD-LSTM-DRILL + dynamic evaluation† (WT2)openIDIAPMay 201934M————
AWD-LSTM-DRILL + dynamic evaluation† (PTB)openIDIAPMay 201924M————
DistilBERTopenHugging FaceOct 201966M————
ALBERTopenGoogle DeepMindSep 201918M————
DensePhrasesopenKorea UniversityDec 2020—————
Hopfield Networks (2020)openJohannes Kepler University LinzJul 2020—————
(ensemble): AWD-LSTM-DOC (fin) × 5 (PTB)openNTT Communication Science LaboratoriesAug 2018—————

More models from Meta

All Meta models →
ModelReleasedParamsContextInput $/1MOutput $/1M
Muse Spark 1.3 ContributorSep 2026—1M$0.1$0.2
Llama-3.3-70B-InstructopenDec 202471B128K$0.71$0.71
Muse Spark OpenopenOct 2026816B1M$1.25$4.25
Muse Spark 1.2Aug 2026—1M$0.1$0.2
Muse WonderOct 2026—1M$4$20
Muse Spark 1.1Apr 2026—1M$1.25$4.25
Llama 4 MaverickopenApr 2025402B512K$0.35$1
Llama 4 ScoutopenApr 2025109B320K$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.