Home/LLM Frameworks/LongWriter
LongWriter logo

LongWriter

THUDM/LongWriter

LongWriter enables generation of texts longer than 10,000 words using long-context LLMs

GraphCanon updated Sep 20, 2026 · GitHub synced Sep 20, 2026

26views this month

1.9k stars182 forksLast push Jun 24, 2025 Python Apache-2.0

Decision brief

LongWriter specializes in exceeding the text generation limit to over 10,000 words using long-context LLMs for Python-based development.

Good fit when

  • For projects requiring texts longer than 10,000 words with fine-tuned llm models
  • When working on tasks that demand high-context retention across very large text outputs

Avoid when

  • Avoid for short-form content generation where LLM context is less relevant
  • Not ideal when the requirement is to maintain conciseness in output texts

Observed Jul 16, 2026 · Source: enrich:decision_facts

Verify the decision

Maintenance and security

Full trust report
Maintenance
Dormant (452d since push)
As of Sep 19, 2026
Provenance
Not a fork · Organization account
As of Sep 19, 2026
Security (OSV)
No lockfile
As of Jul 11, 2026

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

pip install LongWriter
PyPI

Similar tools

Same-category neighbours. No typed graph edges are catalogued for this tool yet.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

[ICLR 2025] LongWriter: Unleashing 10,000+ Word Generation from Long Context LLMs, implemented in Python with focus on fine-tuning and llm functionalities

Capability facts

Languages
python

Source: github.language · Sep 19, 2026

Categories

Compatibility

Sourced claims from the README excerpt - not unsourced marketing copy.

Python runtimePython

Source: README excerpt (regex_v1, Sep 19, 2026)

```python from transformers import AutoTokenizer, AutoModelForCausalLM
Source link

Tags

README

⚙️ LongWriter Deployment Environmental Setup : We recommend using to successfully deploy our models. We open source two models: LongWriter glm4 9b and LongWriter llama3.1 8b, trained based on GLM 4 9B and Meta Llama 3.1 8B, respectively. These two models point to the "LongWriter...

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.