Ross ROSS = Recommend OSS · open-source software intelligence for agents

facebookresearch/coconut

Training Large Language Model to Reason in a Continuous Latent Space observed · 2026-08-28

github.com/facebookresearch/coconut · Python · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

61/100

  • Activity 90
  • Release rhythm 35
  • Longevity 42

Flags: no_releases

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 595
  • days_rel: n/a
  • days_push: 62
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1689 stars · 187 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

Official PyTorch implementation of Coconut, a method for training large language models to reason in a continuous latent space instead of explicit token-level chain-of-thought. It provides training and evaluation pipelines built on Hugging Face models with configurable YAML experiment settings.

Use cases

  • train an LLM to reason in continuous latent space
  • reproduce the Coconut paper experiments
  • run latent chain-of-thought reasoning on GSM8K
  • compare CoT vs no-CoT vs latent reasoning training
  • fine-tune Hugging Face models with continuous thought steps

When to choose

  • you want to experiment with latent-space reasoning for LLMs
  • you need the official reference implementation of the Coconut paper
  • you are doing research on alternatives to token-based chain-of-thought

When to avoid

  • you need a production-ready inference library
  • you want plug-and-play reasoning without training models
  • you lack GPU resources for LLM fine-tuning

Facets

library · maturity active

llm-training machine-learning rag large-language-models machine-learning deep-learning artificial-intelligence python latent-reasoning chain-of-thought research-code huggingface reasoning linux gpu

1 source

Member repositories

RepositoryRoleHealth v2
facebookresearch/coconutmain61

For agents

markdown · JSON · MCP: product_card(name="facebookresearch/coconut")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem