Dream/Qwen2.5 uses biases on Q, K, V projections. Without them,
attention is fundamentally incorrect producing garbage output.
Changes:
- diffuse_layer: add optional bq, bk, bv bias tensor pointers
- diffuse-model: load bias tensors from GGUF (nullptr if absent)
- diffuse-graph: apply ggml_add after QKV projection in all 3 graph builders
- convert-dream.py: include QKV bias tensors instead of skipping them
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Benchmark shows 2.7-3x throughput improvement per token (sub-linear
time scaling), with entropy_exit reaching 4.82 tok/s at n=256.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Replace benchmark JSONs with rigorous 6.5h results (288 configs, 3 reps each)
- Update README and RESULTS.md with verified numbers
- Remove research/fase4.2/ (internal notes)
- Sanitize server paths in run-benchmark.sh and JSON files
- Add real_prompts.txt used in benchmarks
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Change license from MIT to AGPL-3.0 with commercial licensing option
- Expand README with full benchmarks, API docs, and entropy_exit documentation
- Fix build instructions (DIFFUSE_BUILD_TOOLS, not BUILD_BENCH)
- Remove TODO comment from main-cli.cpp
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Supports: steps/threads/schedulers sweep, JSON+markdown output,
warmup runs, actual step counting for entropy_exit.
Add run-benchmark.sh wrapper for F16/Q8_0/Q4_K_M comparison.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Increase base buffer from 256MB to 512MB for graph node overhead
- Better per-layer intermediate estimation (16× instead of 4×)
- Add generate.py: tokenize→diffuse-cli→detokenize pipeline
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add ggml_cast for norm weights (F16→F32) to fix ggml_mul type mismatch
- Switch RoPE from NORMAL to NEOX style (non-interleaved, matching LLaDA/OLMo)
- Use PyTorch framework in converter for BF16 safetensors support
- Add validation tools: validate-gguf.py, compare-logits.py, dump-logits
- Result: 100% argmax match vs PyTorch, cos_sim >0.993
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>