feat: add Dream-7B model support (Qwen2.5 backbone, GQA)

- New converter: tools/convert-dream.py (Qwen2.5 tensor mapping)
- Multi-model loader: reads diffuse.model_type from GGUF metadata
- GQA support verified (28 query heads, 4 KV heads)
- New remasking strategies: maskgit_plus, topk_margin (from Dream paper)
- Updated CLI, benchmark, and generate.py with new remasking options
- README: supported models table, Dream conversion example
- Zero breaking changes for existing LLaDA GGUF files

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
iafiscal1212andClaude Opus 4.6 committed 2026-03-22 13:03:30 +01:00
1 parent 9b76ba9bc3
commit 3f6aa5597a
9 files changed
+376 -18

No files matched your search

+3 -1
View File
@@ -113,8 +113,10 @@ int main(int argc, char ** argv) {
sched_config schedulers[] = {
{"low_confidence", diffuse_remasking::LOW_CONFIDENCE},
{"entropy_exit", diffuse_remasking::ENTROPY_EXIT},
{"maskgit_plus", diffuse_remasking::MASKGIT_PLUS},
{"topk_margin", diffuse_remasking::TOPK_MARGIN},
};
int n_schedulers = 2;
int n_schedulers = 4;
// Load model
int max_threads = *std::max_element(threads_list.begin(), threads_list.end());