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
Overview
From Lego-X/ProgramGen-27B- 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.
| Version | File size | File | SHA-256 |
|---|---|---|---|
| IQ2_XXS | 8.79 GB | Lego-X_ProgramGen-27B-IQ2_XXS.gguf | |
| IQ2_XS | 9.01 GB | Lego-X_ProgramGen-27B-IQ2_XS.gguf | |
| IQ2_S | 9.61 GB | Lego-X_ProgramGen-27B-IQ2_S.gguf | |
| IQ2_M | 10.44 GB | Lego-X_ProgramGen-27B-IQ2_M.gguf | |
| Q2_K | 10.74 GB | Lego-X_ProgramGen-27B-Q2_K.gguf | |
| IQ3_XXS | 12.25 GB | Lego-X_ProgramGen-27B-IQ3_XXS.gguf | |
| Q3_K_S | 12.66 GB | Lego-X_ProgramGen-27B-Q3_K_S.gguf | |
| IQ3_XS | 12.72 GB | Lego-X_ProgramGen-27B-IQ3_XS.gguf |
Show all 25 versionsHide the other versions
| Version | File size | File | SHA-256 |
|---|---|---|---|
| Q3_K_M | 13.33 GB | Lego-X_ProgramGen-27B-Q3_K_M.gguf | |
| Q3_K_L | 14.02 GB | Lego-X_ProgramGen-27B-Q3_K_L.gguf | |
| IQ3_M | 14.67 GB | Lego-X_ProgramGen-27B-IQ3_M.gguf | |
| IQ4_XS | 15.42 GB | Lego-X_ProgramGen-27B-IQ4_XS.gguf | |
| Q4_0 | 16.27 GB | Lego-X_ProgramGen-27B-Q4_0.gguf | |
| Q4_K_S | 16.29 GB | Lego-X_ProgramGen-27B-Q4_K_S.gguf | |
| IQ4_NL | 17.38 GB | Lego-X_ProgramGen-27B-IQ4_NL.gguf | |
| Q4_K_M | 17.38 GB | Lego-X_ProgramGen-27B-Q4_K_M.gguf | |
| Q4_1 | 17.75 GB | Lego-X_ProgramGen-27B-Q4_1.gguf | |
| Q4_K_L | 18.80 GB | Lego-X_ProgramGen-27B-Q4_K_L.gguf | |
| Q5_K_S | 19.49 GB | Lego-X_ProgramGen-27B-Q5_K_S.gguf | |
| Q5_K_M | 20.85 GB | Lego-X_ProgramGen-27B-Q5_K_M.gguf | |
| Q6_K_S | 22.78 GB | Lego-X_ProgramGen-27B-Q6_K_S.gguf | |
| Q6_K | 23.78 GB | Lego-X_ProgramGen-27B-Q6_K.gguf | |
| Q6_K_L | 24.89 GB | Lego-X_ProgramGen-27B-Q6_K_L.gguf | |
| Q8_0 | 29.05 GB | Lego-X_ProgramGen-27B-Q8_0.gguf | |
| BF16 | 54.66 GB | Lego-X_ProgramGen-27B-bf16-00001-of-00002.gguf+1 parts | Per part |
Vision add-on (needed to read images): mmproj-Lego-X_ProgramGen-27B-f16.gguf, 927.6 MB
Architecture
From config.json in Lego-X/ProgramGen-27B- 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)
Recommended settings
From generation_config.json in Lego-X/ProgramGen-27BThe sampling settings the model's makers ship as its defaults.
- Temperature
- 1
- Top P
- 0.95
- Top K
- 20
Papers and data
From Lego-X/ProgramGen-27BPapers the model's Hugging Face page links to (the model's own report and papers it cites).
Datasets listed in the model card
Model card
From README.md in Lego-X/ProgramGen-27BScalable 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.
Tip
Tasks and trajectories: Lego-X/ProgramGen. Paper: ProgramGen: Scalable Environment Construction for Long-Horizon Coding Agents.
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.