mirror of
https://github.com/iafiscal1212/diffuse-cpp.git
synced 2026-12-04 00:28:08 +00:00
- Project structure with CMake build system, GGML submodule - Core library: model loader (GGUF), transformer forward pass, diffusion sampler - CLI tools: diffuse-cli (generation) and diffuse-bench (benchmarks) - Converter: convert-llada.py (SafeTensors → GGUF with tensor name mapping) - Tests: unit tests, converter roundtrip test, end-to-end forward pass test - Bidirectional attention (no causal mask, no KV cache) - SwiGLU FFN, RoPE, RMSNorm — full LLaDA-8B Llama backbone - Verified: compiles clean, forward pass produces valid logits on tiny model Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
10 lines
256 B
C++
10 lines
256 B
C++
#pragma once
|
|
|
|
#include "diffuse-common.h"
|
|
|
|
// Load model weights from GGUF file
|
|
diffuse_model * diffuse_model_load_impl(const std::string & path, int n_threads);
|
|
|
|
// Free model and all associated memory
|
|
void diffuse_model_free_impl(diffuse_model * model);
|