Skip to content

Lego-X

ProgramGen-27B

A 27B model by Lego-X that uses tools such as web search, can think before answering and reads images.

Tools Thinking Vision
Downloads
3,990 downloads last month
Likes
0 likes
Uploaded
Uploaded 5 Dec 2026

Get it in Zero1LLM

Then open Explore in the app and search for:

Parameters
27,781,427,952 (27.8B)
Context length
524,288 tokens
Architecture
qwen35
Task
text-generation
Licence
apache-2.0
Released
30 Nov 2026
Last updated
3 Dec 2026

This is bartowski's upload of Lego-X/ProgramGen-27B, which is based on Qwen/Qwen3.8-27B.

Languages listed in the model card

  • English

Tools

Uses tools, so web search and the browser work best with it.

Thinking

Can think step by step before it answers.

Vision

Reads images: photos, screenshots, scanned pages.

Each version is the same model stored at a different precision: smaller files use less memory and lose a little quality.

VersionFile sizeFileSHA-256
IQ2_XXS8.79 GBLego-X_ProgramGen-27B-IQ2_XXS.gguf
IQ2_XS9.01 GBLego-X_ProgramGen-27B-IQ2_XS.gguf
IQ2_S9.61 GBLego-X_ProgramGen-27B-IQ2_S.gguf
IQ2_M10.44 GBLego-X_ProgramGen-27B-IQ2_M.gguf
Q2_K10.74 GBLego-X_ProgramGen-27B-Q2_K.gguf
IQ3_XXS12.25 GBLego-X_ProgramGen-27B-IQ3_XXS.gguf
Q3_K_S12.66 GBLego-X_ProgramGen-27B-Q3_K_S.gguf
IQ3_XS12.72 GBLego-X_ProgramGen-27B-IQ3_XS.gguf
Show all 25 versions
VersionFile sizeFileSHA-256
Q3_K_M13.33 GBLego-X_ProgramGen-27B-Q3_K_M.gguf
Q3_K_L14.02 GBLego-X_ProgramGen-27B-Q3_K_L.gguf
IQ3_M14.67 GBLego-X_ProgramGen-27B-IQ3_M.gguf
IQ4_XS15.42 GBLego-X_ProgramGen-27B-IQ4_XS.gguf
Q4_016.27 GBLego-X_ProgramGen-27B-Q4_0.gguf
Q4_K_S16.29 GBLego-X_ProgramGen-27B-Q4_K_S.gguf
IQ4_NL17.38 GBLego-X_ProgramGen-27B-IQ4_NL.gguf
Q4_K_M17.38 GBLego-X_ProgramGen-27B-Q4_K_M.gguf
Q4_117.75 GBLego-X_ProgramGen-27B-Q4_1.gguf
Q4_K_L18.80 GBLego-X_ProgramGen-27B-Q4_K_L.gguf
Q5_K_S19.49 GBLego-X_ProgramGen-27B-Q5_K_S.gguf
Q5_K_M20.85 GBLego-X_ProgramGen-27B-Q5_K_M.gguf
Q6_K_S22.78 GBLego-X_ProgramGen-27B-Q6_K_S.gguf
Q6_K23.78 GBLego-X_ProgramGen-27B-Q6_K.gguf
Q6_K_L24.89 GBLego-X_ProgramGen-27B-Q6_K_L.gguf
Q8_029.05 GBLego-X_ProgramGen-27B-Q8_0.gguf
BF1654.66 GBLego-X_ProgramGen-27B-bf16-00001-of-00002.gguf+1 partsPer part

Vision add-on (needed to read images): mmproj-Lego-X_ProgramGen-27B-f16.gguf, 927.6 MB

Model class
Qwen3_5ForConditionalGeneration
Model type
qwen3_5_text
Layers
64
Hidden size
5120
Attention heads
24
Key/value heads
4
Vocabulary
248,320
Context length
524,288 tokens
Weights
bfloat16
Vision encoder
Included (vision_config)

The sampling settings the model's makers ship as its defaults.

Temperature
1
Top P
0.95
Top K
20

Papers the model's Hugging Face page links to (the model's own report and papers it cites).

Datasets listed in the model card

Scalable Environment Construction for Long-Horizon Coding Agents

Paper · Code · Documentation · Dataset

Note

Qwen3.8-27B fine-tuned on 2,585 ProgramGen trajectories, in which an agent rebuilds a real open-source project from scratch. Weights and configuration are in the Hugging Face Transformers format.

Results

The supervision is program reconstruction only; the gains on the software-repair benchmarks (DeepSWE, SWE-bench Pro, SWE-bench Multilingual) and on Terminal-Bench 2.1 come without any repair or terminal-task data. The paper gives the protocol and the comparison with other models.

Usage

The model keeps the architecture, tokenizer and tool-calling format of Qwen3.8-27B, so it is served the same way. We evaluated it with SGLang:

sglang serve --model-path Lego-X/ProgramGen-27B \
    --context-length 524288 \
    --tool-call-parser qwen3_coder --reasoning-parser qwen3 \
    --tensor-parallel-size 2

Settings used in our evaluations:

Important

Use the chat template shipped in this repository. It is the template the model was trained with and differs from the one of the base model: it does not add a reasoning-effort instruction to the system prompt.

Fine-tuning used text only. The vision encoder of the base model is kept unchanged and was not evaluated.

Licence

Apache-2.0, the licence of the base model.

Citation

@misc{xiong2026programgen,
      title={ProgramGen: Scalable Environment Construction for Long-Horizon Coding Agents},
      author={Conghao Xiong and Chaofan Tao and Jierun Chen and Yuxin Jiang and Ruoyu Wang and Sidi Yang and Xiao-Hui Li and Lifeng Shang and Hao Chen and Joseph J. Y. Sung and Haoli Bai and Irwin King},
      year={2026},
      eprint={2612.03336},
      archivePrefix={arXiv},
      primaryClass={cs.SE},
      url={https://arxiv.org/abs/2612.03336},
}

On Hugging Face

Everything on this page comes from these pages and is refreshed every few hours; Hugging Face always has the latest.