Official Codebase of 3DCodeVerse
Python
Simplify repository layout into a directory overview
gaoypenge70e36096bbd
diff --git a/README.md b/README.mdindex 5fc09b05..b651f84e 100644--- a/README.md+++ b/README.md@@ -79,78 +79,15 @@ on 805 fixed tasks:| Qwen3.8-27B | 51.9 | 74.8 | 65.5 | 80.0 | 57.0 | 72.5 || + SFT + DPO | **92.9** | **93.2** | **98.5** | **90.0** | **71.5** | **92.5** |-## Repository layout--```- harness/ toolkits/ finetune/- coding agents write 3D ───▶ curate + verify + package ─────▶ train & evaluate open models- code: plan→DAG→gate→render corpus → LLaMA-Factory sets LoRA / SFT / DPO;- →judge→refine, every run (real compilers & renderers scored by eval/llm/ (3DCodeBench- recorded for the flywheel check every sample) + per-dialect executors)- ▲ │- └──────────── better generators / judges ◀───────────────────┘-```--### [`harness/`](harness/) — the 3DCodeVerse Harness--Python dist `3dcodeverse` (import `codeverse3d`, CLI `3dcodeverse` / `3dcode`). Models write-**raw** 3D code, never an SDK, across four tracks (`static_object` · `articulated_object` ·-`scene` · `graphics`) and seven languages: Blender `bpy`, CadQuery, Three.js, URDF, scene-Three.js, GLSL and OpenGL. The harness owns everything around the code:--- typed plans and deterministic gates (connectivity, contract, joint sweeps, frame metrics);-- a spatial toolbox served to the coding agent over MCP, and labelled multi-view renders;-- a rubric VLM judge with binary defect checklists and caps computed in code;-- an optional text-to-image texture pass;-- a git-versioned record of every round.--The coding agent is always a vendor's CLI: Antigravity (`agy`, for Gemini models), `claude-code`-or `codex`. Single-shot generation on any Gemini / Anthropic / OpenAI chat model is also supported.--```bash-bash harness/setup.sh # python deps + node runtime + doctor (Linux, python 3.13, node 20.6+)-3dcode make "a mid-century wooden dining chair" --track static_object --language blender-3dcode gallery serve # browse every run in the browser-```--Start at [`harness/README.md`](harness/README.md). Design and operation are documented in-`harness/docs/` (ARCHITECTURE, INSTALL, RUNBOOK, DECISIONS, COST).--### [`eval/`](eval/) — evaluating the harness, and evaluating a bare LLM--Two evaluations, both kept apart from what they evaluate:--- [`eval/bench/`](eval/bench/) measures **the harness**. Prompt batteries run through it and- through one-shot and bare-agent arms under one fixed judge; it also holds paired A/B rigs,- offline re-judging and reports.-- [`eval/llm/`](eval/llm/) measures **a bare LLM / VLM** on text → 3D code and image → 3D code- (3DCodeBench and held-out dialect sets). Every answer is executed and scored against references.--Protocols and recorded comparisons are in `eval/docs/`. Nothing under `harness/` imports from-`eval/`.--### [`toolkits/`](toolkits/) — raw 3D projects → trainable data--Everything that operates on data rather than models:--- the installable `3dcode-data` contributor CLI (validate / dedupe / execute / render / push), with- per-dialect modules for Blender-Python, CadQuery, build123d, FreeCAD and OpenSCAD;-- per-source curation pipelines, including the DeepCAD → CadQuery and Articraft → CadQuery + URDF- conversions;-- the LLaMA-Factory dataset builders.--Every sample is checked with the real compilers and headless renderers, because *compiling is not-drawing*. The corpus is published as-[`ilabai/3dcodeverse`](https://huggingface.co/datasets/ilabai/3dcodeverse). See-[`toolkits/README.md`](toolkits/README.md).--### [`finetune/`](finetune/) — training open models on 3DCodeVerse--Reproducible recipes on **unpatched LLaMA-Factory**: LoRA and ZeRO-3 full-parameter SFT, plus-execution- and geometry-feedback DPO. Training sets ship as-[`ilabai/3dcodeverse-llamafactory`](https://huggingface.co/datasets/ilabai/3dcodeverse-llamafactory).-Results and conclusions are in [`finetune/docs/REPORT.md`](finetune/docs/REPORT.md), and the full-experiment log is [`finetune/llm_finetune_exps.md`](finetune/llm_finetune_exps.md).+## Repository Structure++| Directory | Description | Documentation |+| :-- | :-- | :-- |+| [`harness/`](harness/) | Agent-based 3D content generation, execution, rendering, and verification. | [Harness guide](harness/README.md) |+| [`toolkits/`](toolkits/) | Dataset curation, format conversion, validation, and training-data preparation. | [Data toolkit guide](toolkits/README.md) |+| [`finetune/`](finetune/) | Supervised fine-tuning and preference optimization for open models. | [Training guide](finetune/README.md) |+| [`eval/`](eval/) | Benchmarks and evaluation pipelines for the harness and standalone models. | [Evaluation guide](eval/README.md) |+| [`assets/`](assets/) | Figures, videos, and other media used in this README. | — |## Citation