* installing *source* package ‘sd2R’ ...
** this is package ‘sd2R’ version ‘0.1.7’
** package ‘sd2R’ successfully unpacked and MD5 sums checked
** using staged installation
* Downloading vocab.hpp...
* vocab.hpp: downloaded successfully
* Downloading vocab_mistral.hpp...
* vocab_mistral.hpp: downloaded successfully
* Downloading vocab_qwen.hpp...
* vocab_qwen.hpp: downloaded successfully
* Downloading vocab_umt5.hpp...
* vocab_umt5.hpp: downloaded successfully
* ggmlR lib: /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/lib
* ggmlR include: /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include
* OpenMP: not available
* Vulkan: disabled (ggmlR has Vulkan but libvulkan not found for linking)
* Wrote src/Makevars
* Patching sd/ sources for R compatibility...
sed: -e: No such file or directory
  patched: cache_dit.hpp
sed: -e: No such file or directory
  patched: ordered_map.hpp
sed: -e: No such file or directory
  patched: tokenize_util.h
sed: -e: No such file or directory
  patched: ltxv.hpp
sed: -e: No such file or directory
  patched: rng_philox.hpp
sed: -e: No such file or directory
  patched: tokenize_util.cpp
sed: -e: No such file or directory
  patched: denoiser.hpp
sed: -e: No such file or directory
  patched: z_image.hpp
sed: -e: No such file or directory
  patched: version.cpp
sed: -e: No such file or directory
  patched: diffusion_model.hpp
sed: -e: No such file or directory
  patched: vae.hpp
sed: -e: No such file or directory
  patched: tae.hpp
sed: -e: No such file or directory
  patched: control.hpp
sed: -e: No such file or directory
  patched: lora.hpp
sed: -e: No such file or directory
  patched: esrgan.hpp
sed: -e: No such file or directory
  patched: clip.hpp
sed: -e: No such file or directory
  patched: unet.hpp
sed: -e: No such file or directory
  patched: rng.hpp
sed: -e: No such file or directory
  patched: stable-diffusion.h
sed: -e: No such file or directory
  patched: preprocessing.hpp
sed: -e: No such file or directory
  patched: upscaler.cpp
sed: -e: No such file or directory
  patched: name_conversion.cpp
sed: -e: No such file or directory
  patched: gguf_reader.hpp
sed: -e: No such file or directory
  patched: qwen_image.hpp
sed: -e: No such file or directory
  patched: vocab_qwen.hpp
sed: -e: No such file or directory
  patched: util.h
sed: -e: No such file or directory
  patched: mmdit.hpp
sed: -e: No such file or directory
  patched: model.h
sed: -e: No such file or directory
  patched: easycache.hpp
sed: -e: No such file or directory
  patched: conditioner.hpp
sed: -e: No such file or directory
  patched: name_conversion.h
sed: -e: No such file or directory
  patched: rope.hpp
sed: -e: No such file or directory
  patched: wan.hpp
sed: -e: No such file or directory
  patched: vocab_mistral.hpp
sed: -e: No such file or directory
  patched: common.hpp
sed: -e: No such file or directory
  patched: rng_mt19937.hpp
sed: -e: No such file or directory
  patched: latent-preview.h
sed: -e: No such file or directory
  patched: ucache.hpp
sed: -e: No such file or directory
  patched: flux.hpp
sed: -e: No such file or directory
  patched: vocab.hpp
sed: -e: No such file or directory
  patched: stable-diffusion.cpp
sed: -e: No such file or directory
  patched: vocab_umt5.hpp
sed: -e: No such file or directory
  patched: pmid.hpp
sed: 1: "src/sd/util.cpp": unterminated substitute pattern
sed: 1: "src/sd/util.cpp": unterminated substitute pattern
sed: 1: "src/sd/util.cpp": unterminated substitute pattern
sed: 1: "src/sd/ggml_extend.hpp": unterminated substitute pattern
sed: 1: "src/sd/ggml_extend.hpp": unterminated substitute pattern
sed: 1: "src/sd/model.h": unterminated substitute pattern
  patched: thirdparty/json.hpp.inc (literal operator spacing)
  patched: util.h (VA_OPT)
* Done.
** libs
using C++ compiler: ‘Apple clang version 14.0.3 (clang-1403.0.22.14.1)’
using C++17
Warning in system2("xcrun", "--show-sdk-version", TRUE, TRUE) :
  running command ''xcrun' --show-sdk-version 2>&1' had status 1
using SDK: ‘NA’
clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -Isd -Isd/thirdparty -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_MAX_NAME=128 -DGGML_R_PACKAGE   -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include' -I/opt/R/x86_64/include    -fPIC  -falign-functions=64 -Wall -g -O2   -c RcppExports.cpp -o RcppExports.o
clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -Isd -Isd/thirdparty -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_MAX_NAME=128 -DGGML_R_PACKAGE   -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include' -I/opt/R/x86_64/include    -fPIC  -falign-functions=64 -Wall -g -O2   -c sd2R_interface.cpp -o sd2R_interface.o
clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -Isd -Isd/thirdparty -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_MAX_NAME=128 -DGGML_R_PACKAGE   -include /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/r_ggml_compat.h -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include' -I/opt/R/x86_64/include    -fPIC  -falign-functions=64 -Wall -g -O2   -c sd/stable-diffusion.cpp -o sd/stable-diffusion.o
clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -Isd -Isd/thirdparty -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_MAX_NAME=128 -DGGML_R_PACKAGE   -include /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/r_ggml_compat.h -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include' -I/opt/R/x86_64/include    -fPIC  -falign-functions=64 -Wall -g -O2   -c sd/model.cpp -o sd/model.o
clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -Isd -Isd/thirdparty -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_MAX_NAME=128 -DGGML_R_PACKAGE   -include /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/r_ggml_compat.h -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include' -I/opt/R/x86_64/include    -fPIC  -falign-functions=64 -Wall -g -O2   -c sd/name_conversion.cpp -o sd/name_conversion.o
clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -Isd -Isd/thirdparty -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_MAX_NAME=128 -DGGML_R_PACKAGE   -include /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/r_ggml_compat.h -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include' -I/opt/R/x86_64/include    -fPIC  -falign-functions=64 -Wall -g -O2   -c sd/tokenize_util.cpp -o sd/tokenize_util.o
In file included from sd/name_conversion.cpp:4:
In file included from sd/name_conversion.h:6:
In file included from sd/model.h:14:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/ggml-backend.h:3:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/ggml.h:204:13: warning: 'GGML_ATTRIBUTE_FORMAT' macro redefined [-Wmacro-redefined]
#    define GGML_ATTRIBUTE_FORMAT(...) __attribute__((format(printf, __VA_ARGS__)))
            ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/r_ggml_compat.h:53:9: note: previous definition is here
#define GGML_ATTRIBUTE_FORMAT(...)
        ^
In file included from sd/name_conversion.cpp:4:
In file included from sd/name_conversion.h:6:
In file included from sd/model.h:14:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/ggml-backend.h:3:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/ggml.h:350:19: warning: 'format' attribute argument not supported: r_ggml_printf [-Wignored-attributes]
    GGML_NORETURN GGML_ATTRIBUTE_FORMAT(3, 4)
                  ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/ggml.h:204:55: note: expanded from macro 'GGML_ATTRIBUTE_FORMAT'
#    define GGML_ATTRIBUTE_FORMAT(...) __attribute__((format(printf, __VA_ARGS__)))
                                                      ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/ggml.h:848:5: warning: 'format' attribute argument not supported: r_ggml_printf [-Wignored-attributes]
    GGML_ATTRIBUTE_FORMAT(2, 3)
    ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/ggml.h:204:55: note: expanded from macro 'GGML_ATTRIBUTE_FORMAT'
#    define GGML_ATTRIBUTE_FORMAT(...) __attribute__((format(printf, __VA_ARGS__)))
                                                      ^
In file included from sd/model.cpp:18:
In file included from sd/gguf_reader.hpp:9:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/ggml.h:204:13: warning: 'GGML_ATTRIBUTE_FORMAT' macro redefined [-Wmacro-redefined]
#    define GGML_ATTRIBUTE_FORMAT(...) __attribute__((format(printf, __VA_ARGS__)))
            ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/r_ggml_compat.h:53:9: note: previous definition is here
#define GGML_ATTRIBUTE_FORMAT(...)
        ^
In file included from sd/model.cpp:18:
In file included from sd/gguf_reader.hpp:9:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/ggml.h:350:19: warning: 'format' attribute argument not supported: r_ggml_printf [-Wignored-attributes]
    GGML_NORETURN GGML_ATTRIBUTE_FORMAT(3, 4)
                  ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/ggml.h:204:55: note: expanded from macro 'GGML_ATTRIBUTE_FORMAT'
#    define GGML_ATTRIBUTE_FORMAT(...) __attribute__((format(printf, __VA_ARGS__)))
                                                      ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/ggml.h:848:5: warning: 'format' attribute argument not supported: r_ggml_printf [-Wignored-attributes]
    GGML_ATTRIBUTE_FORMAT(2, 3)
    ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/ggml.h:204:55: note: expanded from macro 'GGML_ATTRIBUTE_FORMAT'
#    define GGML_ATTRIBUTE_FORMAT(...) __attribute__((format(printf, __VA_ARGS__)))
                                                      ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:27:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/ggml-alloc.h:3:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/ggml.h:204:13: warning: 'GGML_ATTRIBUTE_FORMAT' macro redefined [-Wmacro-redefined]
#    define GGML_ATTRIBUTE_FORMAT(...) __attribute__((format(printf, __VA_ARGS__)))
            ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/r_ggml_compat.h:53:9: note: previous definition is here
#define GGML_ATTRIBUTE_FORMAT(...)
        ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:27:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/ggml-alloc.h:3:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/ggml.h:350:19: warning: 'format' attribute argument not supported: r_ggml_printf [-Wignored-attributes]
    GGML_NORETURN GGML_ATTRIBUTE_FORMAT(3, 4)
                  ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/ggml.h:204:55: note: expanded from macro 'GGML_ATTRIBUTE_FORMAT'
#    define GGML_ATTRIBUTE_FORMAT(...) __attribute__((format(printf, __VA_ARGS__)))
                                                      ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/ggml.h:848:5: warning: 'format' attribute argument not supported: r_ggml_printf [-Wignored-attributes]
    GGML_ATTRIBUTE_FORMAT(2, 3)
    ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/ggml.h:204:55: note: expanded from macro 'GGML_ATTRIBUTE_FORMAT'
#    define GGML_ATTRIBUTE_FORMAT(...) __attribute__((format(printf, __VA_ARGS__)))
                                                      ^
clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -Isd -Isd/thirdparty -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_MAX_NAME=128 -DGGML_R_PACKAGE   -include /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/r_ggml_compat.h -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include' -I/opt/R/x86_64/include    -fPIC  -falign-functions=64 -Wall -g -O2   -c sd/upscaler.cpp -o sd/upscaler.o
In file included from sd/stable-diffusion.cpp:1:
sd/ggml_extend.hpp:294:13: warning: unused variable 'n0' [-Wunused-variable]
    int64_t n0 = tensor->ne[0];
            ^
sd/ggml_extend.hpp:295:13: warning: unused variable 'n1' [-Wunused-variable]
    int64_t n1 = tensor->ne[1];
            ^
sd/ggml_extend.hpp:296:13: warning: unused variable 'n2' [-Wunused-variable]
    int64_t n2 = tensor->ne[2];
            ^
sd/ggml_extend.hpp:297:13: warning: unused variable 'n3' [-Wunused-variable]
    int64_t n3 = tensor->ne[3];
            ^
sd/ggml_extend.hpp:339:13: warning: variable 'nelements' set but not used [-Wunused-but-set-variable]
    int32_t nelements = 1;
            ^
sd/ggml_extend.hpp:348:18: warning: unused variable 'bpe' [-Wunused-variable]
    const size_t bpe    = ggml_type_size(ggml_type(ttype));
                 ^
sd/ggml_extend.hpp:1154:13: warning: unused variable 'OC' [-Wunused-variable]
    int64_t OC = w->ne[3] / IC;
            ^
sd/ggml_extend.hpp:1155:13: warning: unused variable 'N' [-Wunused-variable]
    int64_t N  = x->ne[3] / IC;
            ^
In file included from sd/stable-diffusion.cpp:10:
sd/cache_dit.hpp:76:13: warning: unused variable 'order' [-Wunused-variable]
        int order = n_derivatives + 1;
            ^
In file included from sd/stable-diffusion.cpp:11:
In file included from sd/conditioner.hpp:4:
sd/clip.hpp:949:16: warning: unused variable 'N' [-Wunused-variable]
        size_t N       = input_ids->ne[1];
               ^
sd/clip.hpp:950:16: warning: unused variable 'n_token' [-Wunused-variable]
        size_t n_token = input_ids->ne[0];
               ^
In file included from sd/stable-diffusion.cpp:11:
In file included from sd/conditioner.hpp:5:
sd/llm.hpp:678:21: warning: unused variable 'n_token' [-Wunused-variable]
            int64_t n_token = x->ne[1];
                    ^
sd/llm.hpp:679:21: warning: unused variable 'N' [-Wunused-variable]
            int64_t N       = x->ne[2];
                    ^
sd/llm.hpp:1261:21: warning: unused variable 'llm_grid_h' [-Wunused-variable]
            int64_t llm_grid_h = grid_h / params.vision.spatial_merge_size;
                    ^
sd/llm.hpp:1262:21: warning: unused variable 'llm_grid_w' [-Wunused-variable]
            int64_t llm_grid_w = grid_w / params.vision.spatial_merge_size;
                    ^
sd/llm.hpp:1299:17: warning: unused variable 'grid_t' [-Wunused-variable]
            int grid_t                 = 1;
                ^
sd/llm.hpp:1355:17: warning: unused variable 'seq_window_size' [-Wunused-variable]
            int seq_window_size = (vit_merger_window_size * params.vision.spatial_merge_size) * (vit_merger_window_size * params.vision.spatial_merge_size);
                ^
sd/llm.hpp:1547:37: warning: unused variable 'weights' [-Wunused-variable]
                std::vector<float>& weights = std::get<1>(tokens_and_weights);
                                    ^
sd/llm.hpp:1595:37: warning: unused variable 'weights' [-Wunused-variable]
                std::vector<float>& weights = std::get<1>(tokens_and_weights);
                                    ^
sd/llm.hpp:1626:37: warning: unused variable 'weights' [-Wunused-variable]
                std::vector<float>& weights = std::get<1>(tokens_and_weights);
                                    ^
sd/llm.hpp:1657:37: warning: unused variable 'weights' [-Wunused-variable]
                std::vector<float>& weights = std::get<1>(tokens_and_weights);
                                    ^
In file included from sd/upscaler.cpp:1:
In file included from sd/esrgan.hpp:4:
In file included from sd/ggml_extend.hpp:27:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/ggml-alloc.h:3:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/ggml.h:204:13: warning: 'GGML_ATTRIBUTE_FORMAT' macro redefined [-Wmacro-redefined]
#    define GGML_ATTRIBUTE_FORMAT(...) __attribute__((format(printf, __VA_ARGS__)))
            ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/r_ggml_compat.h:53:9: note: previous definition is here
#define GGML_ATTRIBUTE_FORMAT(...)
        ^
In file included from sd/upscaler.cpp:1:
In file included from sd/esrgan.hpp:4:
In file included from sd/ggml_extend.hpp:27:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/ggml-alloc.h:3:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/ggml.h:350:19: warning: 'format' attribute argument not supported: r_ggml_printf [-Wignored-attributes]
    GGML_NORETURN GGML_ATTRIBUTE_FORMAT(3, 4)
                  ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/ggml.h:204:55: note: expanded from macro 'GGML_ATTRIBUTE_FORMAT'
#    define GGML_ATTRIBUTE_FORMAT(...) __attribute__((format(printf, __VA_ARGS__)))
                                                      ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/ggml.h:848:5: warning: 'format' attribute argument not supported: r_ggml_printf [-Wignored-attributes]
    GGML_ATTRIBUTE_FORMAT(2, 3)
    ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/ggml.h:204:55: note: expanded from macro 'GGML_ATTRIBUTE_FORMAT'
#    define GGML_ATTRIBUTE_FORMAT(...) __attribute__((format(printf, __VA_ARGS__)))
                                                      ^
In file included from sd/stable-diffusion.cpp:11:
In file included from sd/conditioner.hpp:6:
sd/t5.hpp:789:16: warning: unused variable 'N' [-Wunused-variable]
        size_t N       = input_ids->ne[1];
               ^
sd/t5.hpp:790:16: warning: unused variable 'n_token' [-Wunused-variable]
        size_t n_token = input_ids->ne[0];
               ^
sd/t5.hpp:980:33: warning: unused variable 'weights' [-Wunused-variable]
            std::vector<float>& weights = std::get<1>(tokens_and_weights);
                                ^
In file included from sd/stable-diffusion.cpp:11:
sd/conditioner.hpp:1470:14: warning: unused variable 'on_new_token_cb' [-Wunused-variable]
        auto on_new_token_cb = [&](std::string& str, std::vector<int32_t>& bpe_tokens) -> bool {
             ^
sd/conditioner.hpp:1526:29: warning: unused variable 'pooled' [-Wunused-variable]
        struct ggml_tensor* pooled              = nullptr;
                            ^
In file included from sd/stable-diffusion.cpp:12:
In file included from sd/control.hpp:4:
sd/common.hpp:311:17: warning: unused variable 'n' [-Wunused-variable]
        int64_t n         = x->ne[2];
                ^
sd/common.hpp:312:17: warning: unused variable 'n_token' [-Wunused-variable]
        int64_t n_token   = x->ne[1];
                ^
sd/common.hpp:313:17: warning: unused variable 'n_context' [-Wunused-variable]
        int64_t n_context = context->ne[1];
                ^
sd/common.hpp:314:17: warning: unused variable 'inner_dim' [-Wunused-variable]
        int64_t inner_dim = d_head * n_head;
                ^
sd/common.hpp:558:25: warning: 'VideoResBlock::forward' hides overloaded virtual function [-Woverloaded-virtual]
    struct ggml_tensor* forward(GGMLRunnerContext* ctx,
                        ^
sd/common.hpp:124:33: note: hidden overloaded virtual function 'ResBlock::forward' declared here: different number of parameters (3 vs 4)
    virtual struct ggml_tensor* forward(GGMLRunnerContext* ctx, struct ggml_tensor* x, struct ggml_tensor* emb = nullptr) {
                                ^
In file included from sd/upscaler.cpp:1:
In file included from sd/esrgan.hpp:4:
sd/ggml_extend.hpp:294:13: warning: unused variable 'n0' [-Wunused-variable]
    int64_t n0 = tensor->ne[0];
            ^
sd/ggml_extend.hpp:295:13: warning: unused variable 'n1' [-Wunused-variable]
    int64_t n1 = tensor->ne[1];
            ^
sd/ggml_extend.hpp:296:13: warning: unused variable 'n2' [-Wunused-variable]
    int64_t n2 = tensor->ne[2];
            ^
sd/ggml_extend.hpp:297:13: warning: unused variable 'n3' [-Wunused-variable]
    int64_t n3 = tensor->ne[3];
            ^
sd/ggml_extend.hpp:339:13: warning: variable 'nelements' set but not used [-Wunused-but-set-variable]
    int32_t nelements = 1;
            ^
sd/ggml_extend.hpp:348:18: warning: unused variable 'bpe' [-Wunused-variable]
    const size_t bpe    = ggml_type_size(ggml_type(ttype));
                 ^
In file included from sd/stable-diffusion.cpp:12:
sd/control.hpp:269:17: warning: unused variable 'mult' [-Wunused-variable]
            int mult = channel_mult[i];
                ^
sd/ggml_extend.hpp:1154:13: warning: unused variable 'OC' [-Wunused-variable]
    int64_t OC = w->ne[3] / IC;
            ^
sd/ggml_extend.hpp:1155:13: warning: unused variable 'N' [-Wunused-variable]
    int64_t N  = x->ne[3] / IC;
            ^
In file included from sd/stable-diffusion.cpp:13:
sd/denoiser.hpp:849:28: warning: unused variable 'vec_d2' [-Wunused-variable]
                    float* vec_d2 = (float*)d->data;
                           ^
sd/denoiser.hpp:1206:31: warning: unused variable 'h_n_2' [-Wunused-variable]
                        float h_n_2        = (i > 1) ? (sigmas[i - 1] - sigmas[i - 2]) : h_n_1;
                              ^
sd/denoiser.hpp:1217:31: warning: unused variable 'h_n_3' [-Wunused-variable]
                        float h_n_3        = (i > 2) ? (sigmas[i - 2] - sigmas[i - 3]) : h_n_2;
                              ^
sd/denoiser.hpp:1241:33: warning: unused variable 'd' [-Wunused-variable]
            struct ggml_tensor* d     = ggml_dup_tensor(work_ctx, x);
                                ^
In file included from sd/stable-diffusion.cpp:14:
In file included from sd/diffusion_model.hpp:4:
sd/flux.hpp:298:23: warning: unused variable 'double_blocks_count' [-Wunused-variable]
            const int double_blocks_count = 19;
                      ^
sd/flux.hpp:933:25: warning: unused variable 'mod_index_length' [-Wunused-variable]
                int64_t mod_index_length = 344;
                        ^
In file included from sd/stable-diffusion.cpp:14:
In file included from sd/diffusion_model.hpp:5:
sd/mmdit.hpp:681:17: warning: unused variable 'default_out_channels' [-Wunused-variable]
        int64_t default_out_channels = in_channels;
                ^
sd/mmdit.hpp:947:19: warning: unused variable 'model_data_type' [-Wunused-variable]
        ggml_type model_data_type          = GGML_TYPE_F16;
                  ^
In file included from sd/stable-diffusion.cpp:14:
In file included from sd/diffusion_model.hpp:6:
sd/qwen_image.hpp:512:21: warning: unused variable 'C' [-Wunused-variable]
            int64_t C = x->ne[2];
                    ^
sd/qwen_image.hpp:513:21: warning: unused variable 'N' [-Wunused-variable]
            int64_t N = x->ne[3];
                    ^
In file included from sd/stable-diffusion.cpp:14:
In file included from sd/diffusion_model.hpp:7:
sd/unet.hpp:64:25: warning: 'SpatialVideoTransformer::forward' hides overloaded virtual function [-Woverloaded-virtual]
    struct ggml_tensor* forward(GGMLRunnerContext* ctx,
                        ^
sd/common.hpp:459:33: note: hidden overloaded virtual function 'SpatialTransformer::forward' declared here: different number of parameters (3 vs 4)
    virtual struct ggml_tensor* forward(GGMLRunnerContext* ctx,
                                ^
In file included from sd/stable-diffusion.cpp:14:
In file included from sd/diffusion_model.hpp:7:
sd/unet.hpp:44:17: warning: unused variable 'time_mix_inner_dim' [-Wunused-variable]
        int64_t time_mix_inner_dim = time_mix_d_head * n_time_mix_heads;  // equal to inner_dim
                ^
sd/unet.hpp:496:17: warning: unused variable 'mult' [-Wunused-variable]
            int mult = channel_mult[i];
                ^
In file included from sd/stable-diffusion.cpp:14:
In file included from sd/diffusion_model.hpp:8:
sd/wan.hpp:1264:23: warning: unused variable 'model_data_type' [-Wunused-variable]
            ggml_type model_data_type         = GGML_TYPE_F16;
                      ^
sd/wan.hpp:1359:37: warning: 'WAN::WanCrossAttention::forward' hides overloaded virtual function [-Woverloaded-virtual]
        virtual struct ggml_tensor* forward(GGMLRunnerContext* ctx,
                                    ^
sd/wan.hpp:1318:37: note: hidden overloaded virtual function 'WAN::WanSelfAttention::forward' declared here: type mismatch at 4th parameter ('struct ggml_tensor *' vs 'int64_t' (aka 'long long'))
        virtual struct ggml_tensor* forward(GGMLRunnerContext* ctx,
                                    ^
sd/wan.hpp:1380:21: warning: unused variable 'N' [-Wunused-variable]
            int64_t N       = x->ne[2];
                    ^
sd/wan.hpp:1381:21: warning: unused variable 'n_token' [-Wunused-variable]
            int64_t n_token = x->ne[1];
                    ^
sd/wan.hpp:1441:21: warning: unused variable 'n_token' [-Wunused-variable]
            int64_t n_token         = x->ne[1];
                    ^
sd/wan.hpp:1609:47: warning: 'WAN::VaceWanAttentionBlock::forward' hides overloaded virtual function [-Woverloaded-virtual]
        std::pair<ggml_tensor*, ggml_tensor*> forward(GGMLRunnerContext* ctx,
                                              ^
sd/wan.hpp:1534:37: note: hidden overloaded virtual function 'WAN::WanAttentionBlock::forward' declared here: different number of parameters (6 vs 7)
        virtual struct ggml_tensor* forward(GGMLRunnerContext* ctx,
                                    ^
sd/wan.hpp:1982:21: warning: unused variable 'C' [-Wunused-variable]
            int64_t C = x->ne[3];
                    ^
In file included from sd/stable-diffusion.cpp:14:
In file included from sd/diffusion_model.hpp:9:
sd/z_image.hpp:50:21: warning: unused variable 'n_token' [-Wunused-variable]
            int64_t n_token = x->ne[1];
                    ^
sd/z_image.hpp:51:21: warning: unused variable 'N' [-Wunused-variable]
            int64_t N       = x->ne[2];
                    ^
sd/z_image.hpp:495:21: warning: unused variable 'C' [-Wunused-variable]
            int64_t C = x->ne[2];
                    ^
sd/z_image.hpp:496:21: warning: unused variable 'N' [-Wunused-variable]
            int64_t N = x->ne[3];
                    ^
In file included from sd/stable-diffusion.cpp:23:
sd/latent-preview.h:167:12: warning: unused variable 'buffer_head' [-Wunused-variable]
    size_t buffer_head = 0;
           ^
sd/stable-diffusion.cpp:597:22: warning: unused variable 'is_chroma' [-Wunused-variable]
                bool is_chroma   = false;
                     ^
clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -Isd -Isd/thirdparty -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_MAX_NAME=128 -DGGML_R_PACKAGE   -include /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/r_ggml_compat.h -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include' -I/opt/R/x86_64/include    -fPIC  -falign-functions=64 -Wall -g -O2   -c sd/util.cpp -o sd/util.o
sd/stable-diffusion.cpp:2376:71: warning: lambda capture 'ts' is not used [-Wunused-lambda-capture]
                effective_denoise = [&, grid, gauss_mask, tile_input, ts, latent_w, latent_h, C, N, buf_size,
                                                                    ~~^~
In file included from sd/upscaler.cpp:1:
In file included from sd/esrgan.hpp:4:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'Linear' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<Linear>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<Linear>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<Linear>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/ggml_extend.hpp:2649:36: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<Linear>' requested here
            blocks[in_proj_name] = std::shared_ptr<GGMLBlock>(new Linear(embed_dim, embed_dim * 3, qkv_proj_bias));
                                   ^
In file included from sd/upscaler.cpp:1:
In file included from sd/esrgan.hpp:4:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'Conv2d' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<Conv2d>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<Conv2d>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<Conv2d>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/esrgan.hpp:23:27: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<Conv2d>' requested here
        blocks["conv1"] = std::shared_ptr<GGMLBlock>(new Conv2d(num_feat, num_grow_ch, {3, 3}, {1, 1}, {1, 1}));
                          ^
In file included from sd/upscaler.cpp:1:
In file included from sd/esrgan.hpp:4:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'ResidualDenseBlock' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<ResidualDenseBlock>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<ResidualDenseBlock>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<ResidualDenseBlock>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/esrgan.hpp:62:26: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<ResidualDenseBlock>' requested here
        blocks["rdb1"] = std::shared_ptr<GGMLBlock>(new ResidualDenseBlock(num_feat, num_grow_ch));
                         ^
In file included from sd/upscaler.cpp:1:
In file included from sd/esrgan.hpp:4:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'RRDB' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<RRDB>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<RRDB>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<RRDB>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/esrgan.hpp:99:32: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<RRDB>' requested here
            blocks[name]     = std::shared_ptr<GGMLBlock>(new RRDB(num_feat, num_grow_ch));
                               ^
In file included from sd/upscaler.cpp:1:
In file included from sd/esrgan.hpp:4:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'RRDBNet' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<RRDBNet>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<RRDBNet>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
sd/esrgan.hpp:157:5: note: in instantiation of member function 'std::unique_ptr<RRDBNet>::~unique_ptr' requested here
    ESRGAN(ggml_backend_t backend,
    ^
In file included from sd/util.cpp:16:
In file included from sd/preprocessing.hpp:4:
In file included from sd/ggml_extend.hpp:27:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/ggml-alloc.h:3:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/ggml.h:204:13: warning: 'GGML_ATTRIBUTE_FORMAT' macro redefined [-Wmacro-redefined]
#    define GGML_ATTRIBUTE_FORMAT(...) __attribute__((format(printf, __VA_ARGS__)))
            ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/r_ggml_compat.h:53:9: note: previous definition is here
#define GGML_ATTRIBUTE_FORMAT(...)
        ^
In file included from sd/util.cpp:16:
In file included from sd/preprocessing.hpp:4:
In file included from sd/ggml_extend.hpp:27:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/ggml-alloc.h:3:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/ggml.h:350:19: warning: 'format' attribute argument not supported: r_ggml_printf [-Wignored-attributes]
    GGML_NORETURN GGML_ATTRIBUTE_FORMAT(3, 4)
                  ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/ggml.h:204:55: note: expanded from macro 'GGML_ATTRIBUTE_FORMAT'
#    define GGML_ATTRIBUTE_FORMAT(...) __attribute__((format(printf, __VA_ARGS__)))
                                                      ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/ggml.h:848:5: warning: 'format' attribute argument not supported: r_ggml_printf [-Wignored-attributes]
    GGML_ATTRIBUTE_FORMAT(2, 3)
    ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/ggml.h:204:55: note: expanded from macro 'GGML_ATTRIBUTE_FORMAT'
#    define GGML_ATTRIBUTE_FORMAT(...) __attribute__((format(printf, __VA_ARGS__)))
                                                      ^
clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -Isd -Isd/thirdparty -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_MAX_NAME=128 -DGGML_R_PACKAGE   -include /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include/r_ggml_compat.h -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include' -I/opt/R/x86_64/include    -fPIC  -falign-functions=64 -Wall -g -O2   -c sd/version.cpp -o sd/version.o
clang -arch x86_64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -Isd -Isd/thirdparty -DGGML_USE_CPU -D_GNU_SOURCE -DGGML_MAX_NAME=128 -DGGML_R_PACKAGE   -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/include' -I/opt/R/x86_64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c sd/thirdparty/zip.c -o sd/thirdparty/zip.o
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'Linear' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<Linear>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<Linear>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<Linear>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/ggml_extend.hpp:2649:36: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<Linear>' requested here
            blocks[in_proj_name] = std::shared_ptr<GGMLBlock>(new Linear(embed_dim, embed_dim * 3, qkv_proj_bias));
                                   ^
In file included from sd/util.cpp:16:
In file included from sd/preprocessing.hpp:4:
sd/ggml_extend.hpp:294:13: warning: unused variable 'n0' [-Wunused-variable]
    int64_t n0 = tensor->ne[0];
            ^
sd/ggml_extend.hpp:295:13: warning: unused variable 'n1' [-Wunused-variable]
    int64_t n1 = tensor->ne[1];
            ^
sd/ggml_extend.hpp:296:13: warning: unused variable 'n2' [-Wunused-variable]
    int64_t n2 = tensor->ne[2];
            ^
sd/ggml_extend.hpp:297:13: warning: unused variable 'n3' [-Wunused-variable]
    int64_t n3 = tensor->ne[3];
            ^
sd/ggml_extend.hpp:339:13: warning: variable 'nelements' set but not used [-Wunused-but-set-variable]
    int32_t nelements = 1;
            ^
sd/ggml_extend.hpp:348:18: warning: unused variable 'bpe' [-Wunused-variable]
    const size_t bpe    = ggml_type_size(ggml_type(ttype));
                 ^
sd/ggml_extend.hpp:1154:13: warning: unused variable 'OC' [-Wunused-variable]
    int64_t OC = w->ne[3] / IC;
            ^
sd/ggml_extend.hpp:1155:13: warning: unused variable 'N' [-Wunused-variable]
    int64_t N  = x->ne[3] / IC;
            ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'MultiheadAttention' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<MultiheadAttention>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<MultiheadAttention>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<MultiheadAttention>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/clip.hpp:505:31: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<MultiheadAttention>' requested here
        blocks["self_attn"] = std::shared_ptr<GGMLBlock>(new MultiheadAttention(d_model, n_head, true, true, proj_in));
                              ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'LayerNorm' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<LayerNorm>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<LayerNorm>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<LayerNorm>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/clip.hpp:507:33: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<LayerNorm>' requested here
        blocks["layer_norm1"] = std::shared_ptr<GGMLBlock>(new LayerNorm(d_model));
                                ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'CLIPMLP' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<CLIPMLP>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<CLIPMLP>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<CLIPMLP>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/clip.hpp:510:25: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<CLIPMLP>' requested here
        blocks["mlp"] = std::shared_ptr<GGMLBlock>(new CLIPMLP(d_model, intermediate_size));
                        ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'CLIPLayer' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<CLIPLayer>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<CLIPLayer>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<CLIPLayer>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/clip.hpp:539:32: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<CLIPLayer>' requested here
            blocks[name]     = std::shared_ptr<GGMLBlock>(new CLIPLayer(d_model, n_head, intermediate_size, proj_in));
                               ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'CLIPEmbeddings' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<CLIPEmbeddings>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<CLIPEmbeddings>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<CLIPEmbeddings>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/clip.hpp:731:38: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<CLIPEmbeddings>' requested here
        blocks["embeddings"]       = std::shared_ptr<GGMLBlock>(new CLIPEmbeddings(hidden_size, vocab_size, n_token, force_clip_f32));
                                     ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'CLIPEncoder' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<CLIPEncoder>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<CLIPEncoder>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<CLIPEncoder>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/clip.hpp:732:38: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<CLIPEncoder>' requested here
        blocks["encoder"]          = std::shared_ptr<GGMLBlock>(new CLIPEncoder(n_layer, hidden_size, n_head, intermediate_size, proj_in));
                                     ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'CLIPVisionEmbeddings' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<CLIPVisionEmbeddings>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<CLIPVisionEmbeddings>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<CLIPVisionEmbeddings>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/clip.hpp:800:36: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<CLIPVisionEmbeddings>' requested here
        blocks["embeddings"]     = std::shared_ptr<GGMLBlock>(new CLIPVisionEmbeddings(hidden_size, num_channels, patch_size, image_size));
                                   ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'CLIPVisionModel' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<CLIPVisionModel>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<CLIPVisionModel>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<CLIPVisionModel>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/clip.hpp:884:39: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<CLIPVisionModel>' requested here
        blocks["vision_model"]      = std::shared_ptr<GGMLBlock>(new CLIPVisionModel(version, proj_in));
                                      ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'CLIPProjection' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<CLIPProjection>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<CLIPProjection>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<CLIPProjection>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/clip.hpp:885:39: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<CLIPProjection>' requested here
        blocks["visual_projection"] = std::shared_ptr<GGMLBlock>(new CLIPProjection(hidden_size, projection_dim, transpose_proj_w));
                                      ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'Conv2d' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<Conv2d>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<Conv2d>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<Conv2d>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/llm.hpp:561:36: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<Conv2d>' requested here
                blocks["proj.0"] = std::shared_ptr<GGMLBlock>(new Conv2d(in_channels,
                                   ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'Conv3d' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<Conv3d>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<Conv3d>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<Conv3d>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/llm.hpp:577:57: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<Conv3d>' requested here
                blocks["proj"]                        = std::shared_ptr<GGMLBlock>(new Conv3d(in_channels,
                                                        ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'RMSNorm' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<RMSNorm>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<RMSNorm>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<RMSNorm>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/llm.hpp:630:31: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<RMSNorm>' requested here
            blocks["ln_q"]  = std::shared_ptr<GGMLBlock>(new RMSNorm(context_dim, 1e-6f));
                              ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'LLM::VisionAttention' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<LLM::VisionAttention>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<LLM::VisionAttention>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<LLM::VisionAttention>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/llm.hpp:717:31: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<LLM::VisionAttention>' requested here
            blocks["attn"]  = std::shared_ptr<GGMLBlock>(new VisionAttention(llama_cpp_style, hidden_size, num_heads));
                              ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'LLM::MLP' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<LLM::MLP>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<LLM::MLP>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<LLM::MLP>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/llm.hpp:718:31: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<LLM::MLP>' requested here
            blocks["mlp"]   = std::shared_ptr<GGMLBlock>(new MLP(hidden_size, intermediate_size, true));
                              ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'LLM::VisionPatchEmbed' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<LLM::VisionPatchEmbed>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<LLM::VisionPatchEmbed>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<LLM::VisionPatchEmbed>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/llm.hpp:768:37: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<LLM::VisionPatchEmbed>' requested here
            blocks["patch_embed"] = std::shared_ptr<GGMLBlock>(new VisionPatchEmbed(llama_cpp_style,
                                    ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'LLM::VisionBlock' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<LLM::VisionBlock>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<LLM::VisionBlock>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<LLM::VisionBlock>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/llm.hpp:774:57: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<LLM::VisionBlock>' requested here
                blocks["blocks." + std::to_string(i)] = std::shared_ptr<GGMLBlock>(new VisionBlock(llama_cpp_style,
                                                        ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'LLM::PatchMerger' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<LLM::PatchMerger>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<LLM::PatchMerger>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<LLM::PatchMerger>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/llm.hpp:780:32: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<LLM::PatchMerger>' requested here
            blocks["merger"] = std::shared_ptr<GGMLBlock>(new PatchMerger(out_hidden_size, hidden_size, spatial_merge_size));
                               ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'Linear' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<Linear, std::allocator<Linear>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<Linear, std::allocator<Linear>>::__shared_ptr_emplace<const long long &, long long, const bool &>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/llm.hpp:831:37: note: in instantiation of function template specialization 'std::make_shared<Linear, const long long &, long long, const bool &>' requested here
            blocks["q_proj"] = std::make_shared<Linear>(params.hidden_size, num_heads * head_dim, params.qkv_bias);
                                    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'RMSNorm' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<RMSNorm, std::allocator<RMSNorm>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<RMSNorm, std::allocator<RMSNorm>>::__shared_ptr_emplace<int &, const float &>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/llm.hpp:836:41: note: in instantiation of function template specialization 'std::make_shared<RMSNorm, int &, const float &>' requested here
                blocks["q_norm"] = std::make_shared<RMSNorm>(head_dim, params.rms_norm_eps);
                                        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'LLM::Attention' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<LLM::Attention, std::allocator<LLM::Attention>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<LLM::Attention, std::allocator<LLM::Attention>>::__shared_ptr_emplace<const LLM::LLMParams &>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/llm.hpp:897:55: note: in instantiation of function template specialization 'std::make_shared<LLM::Attention, const LLM::LLMParams &>' requested here
            blocks["self_attn"]                = std::make_shared<Attention>(params);
                                                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'LLM::MLP' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<LLM::MLP, std::allocator<LLM::MLP>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<LLM::MLP, std::allocator<LLM::MLP>>::__shared_ptr_emplace<const long long &, const long long &>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/llm.hpp:898:55: note: in instantiation of function template specialization 'std::make_shared<LLM::MLP, const long long &, const long long &>' requested here
            blocks["mlp"]                      = std::make_shared<MLP>(params.hidden_size, params.intermediate_size);
                                                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'Embedding' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<Embedding>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<Embedding>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<Embedding>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/llm.hpp:934:38: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<Embedding>' requested here
            blocks["embed_tokens"] = std::shared_ptr<GGMLBlock>(new Embedding(params.vocab_size, params.hidden_size));
                                     ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'LLM::TransformerBlock' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<LLM::TransformerBlock>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<LLM::TransformerBlock>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<LLM::TransformerBlock>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/llm.hpp:936:57: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<LLM::TransformerBlock>' requested here
                blocks["layers." + std::to_string(i)] = std::shared_ptr<GGMLBlock>(new TransformerBlock(params));
                                                        ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'LLM::TextModel' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<LLM::TextModel>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<LLM::TextModel>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<LLM::TextModel>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/llm.hpp:1025:31: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<LLM::TextModel>' requested here
            blocks["model"] = std::shared_ptr<GGMLBlock>(new TextModel(params));
                              ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'LLM::VisionModel' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<LLM::VisionModel>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<LLM::VisionModel>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<LLM::VisionModel>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/llm.hpp:1027:36: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<LLM::VisionModel>' requested here
                blocks["visual"] = std::shared_ptr<GGMLBlock>(new VisionModel(llama_cpp_style,
                                   ^
In file included from sd/util.cpp:1:
In file included from sd/util.h:5:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'Linear' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<Linear>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<Linear>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<Linear>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/ggml_extend.hpp:2649:36: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<Linear>' requested here
            blocks[in_proj_name] = std::shared_ptr<GGMLBlock>(new Linear(embed_dim, embed_dim * 3, qkv_proj_bias));
                                   ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'T5DenseGatedActDense' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<T5DenseGatedActDense>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<T5DenseGatedActDense>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<T5DenseGatedActDense>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/t5.hpp:532:36: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<T5DenseGatedActDense>' requested here
        blocks["DenseReluDense"] = std::shared_ptr<GGMLBlock>(new T5DenseGatedActDense(model_dim, ff_dim));
                                   ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'T5LayerNorm' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<T5LayerNorm>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<T5LayerNorm>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<T5LayerNorm>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/t5.hpp:533:36: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<T5LayerNorm>' requested here
        blocks["layer_norm"]     = std::shared_ptr<GGMLBlock>(new T5LayerNorm(model_dim));
                                   ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'T5Attention' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<T5Attention>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<T5Attention>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<T5Attention>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/t5.hpp:630:35: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<T5Attention>' requested here
        blocks["SelfAttention"] = std::shared_ptr<GGMLBlock>(new T5Attention(model_dim, inner_dim, num_heads, using_relative_attention_bias));
                                  ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'T5LayerSelfAttention' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<T5LayerSelfAttention>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<T5LayerSelfAttention>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<T5LayerSelfAttention>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/t5.hpp:656:29: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<T5LayerSelfAttention>' requested here
        blocks["layer.0"] = std::shared_ptr<GGMLBlock>(new T5LayerSelfAttention(model_dim, inner_dim, ff_dim, num_heads, using_relative_attention_bias));
                            ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'T5LayerFF' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<T5LayerFF>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<T5LayerFF>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<T5LayerFF>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/t5.hpp:657:29: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<T5LayerFF>' requested here
        blocks["layer.1"] = std::shared_ptr<GGMLBlock>(new T5LayerFF(model_dim, ff_dim));
                            ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'T5Block' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<T5Block>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<T5Block>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<T5Block>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/t5.hpp:689:52: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<T5Block>' requested here
            blocks["block." + std::to_string(i)] = std::shared_ptr<GGMLBlock>(new T5Block(model_dim, inner_dim, ff_dim, num_heads, (!relative_attention || i == 0)));
                                                   ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'T5Stack' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<T5Stack>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<T5Stack>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<T5Stack>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/t5.hpp:732:29: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<T5Stack>' requested here
        blocks["encoder"] = std::shared_ptr<GGMLBlock>(new T5Stack(params.num_layers,
                            ^
3 warnings generated.
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'GroupNorm32' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<GroupNorm32>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<GroupNorm32>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<GroupNorm32>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/common.hpp:105:39: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<GroupNorm32>' requested here
        blocks["in_layers.0"]       = std::shared_ptr<GGMLBlock>(new GroupNorm32(channels));
                                      ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'GELU' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<GELU>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<GELU>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<GELU>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/common.hpp:241:31: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<GELU>' requested here
            blocks["net.0"] = std::shared_ptr<GGMLBlock>(new GELU(dim, inner_dim));
                              ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'GEGLU' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<GEGLU>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<GEGLU>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<GEGLU>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/common.hpp:243:31: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<GEGLU>' requested here
            blocks["net.0"] = std::shared_ptr<GGMLBlock>(new GEGLU(dim, inner_dim));
                              ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'CrossAttention' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<CrossAttention>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<CrossAttention>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<CrossAttention>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/common.hpp:345:27: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<CrossAttention>' requested here
        blocks["attn1"] = std::shared_ptr<GGMLBlock>(new CrossAttention(dim, dim, n_head, d_head));
                          ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'FeedForward' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<FeedForward>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<FeedForward>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<FeedForward>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/common.hpp:347:27: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<FeedForward>' requested here
        blocks["ff"]    = std::shared_ptr<GGMLBlock>(new FeedForward(dim, dim));
                          ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'Conv2d' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<Conv2d, std::allocator<Conv2d>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<Conv2d, std::allocator<Conv2d>>::__shared_ptr_emplace<long long &, long long &, std::pair<int, int>>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/common.hpp:415:43: note: in instantiation of function template specialization 'std::make_shared<Conv2d, long long &, long long &, std::pair<int, int>>' requested here
                blocks["proj_in"]  = std::make_shared<Conv2d>(in_channels, inner_dim, std::pair{1, 1});
                                          ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'BasicTransformerBlock' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<BasicTransformerBlock>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<BasicTransformerBlock>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<BasicTransformerBlock>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/common.hpp:449:32: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<BasicTransformerBlock>' requested here
            blocks[name]     = std::shared_ptr<GGMLBlock>(new BasicTransformerBlock(inner_dim, n_head, d_head, context_dim, false));
                               ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'ResBlock' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<ResBlock>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<ResBlock>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<ResBlock>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/common.hpp:554:32: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<ResBlock>' requested here
        blocks["time_stack"] = std::shared_ptr<GGMLBlock>(new ResBlock(out_channels, emb_channels, out_channels, kernel_size, 3, true));
                               ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'AlphaBlender' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<AlphaBlender>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<AlphaBlender>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<AlphaBlender>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/common.hpp:555:32: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<AlphaBlender>' requested here
        blocks["time_mixer"] = std::shared_ptr<GGMLBlock>(new AlphaBlender());
                               ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'SpatialTransformer' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<SpatialTransformer>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<SpatialTransformer>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<SpatialTransformer>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/control.hpp:128:40: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<SpatialTransformer>' requested here
                    blocks[name]     = std::shared_ptr<GGMLBlock>(get_attention_layer(ch,
                                       ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'DownSampleBlock' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<DownSampleBlock>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<DownSampleBlock>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<DownSampleBlock>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/control.hpp:140:36: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<DownSampleBlock>' requested here
                blocks[name]     = std::shared_ptr<GGMLBlock>(new DownSampleBlock(ch, ch));
                                   ^
16 warnings generated.
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'DiscreteScheduler' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3290:5: note: in instantiation of member function 'std::__shared_ptr_emplace<DiscreteScheduler, std::allocator<DiscreteScheduler>>::__on_zero_shared' requested here
    __shared_ptr_emplace(_Alloc __a)
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of member function 'std::__shared_ptr_emplace<DiscreteScheduler, std::allocator<DiscreteScheduler>>::__shared_ptr_emplace' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/denoiser.hpp:404:34: note: in instantiation of function template specialization 'std::make_shared<DiscreteScheduler>' requested here
                scheduler = std::make_shared<DiscreteScheduler>();
                                 ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'KarrasScheduler' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3290:5: note: in instantiation of member function 'std::__shared_ptr_emplace<KarrasScheduler, std::allocator<KarrasScheduler>>::__on_zero_shared' requested here
    __shared_ptr_emplace(_Alloc __a)
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of member function 'std::__shared_ptr_emplace<KarrasScheduler, std::allocator<KarrasScheduler>>::__shared_ptr_emplace' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/denoiser.hpp:408:34: note: in instantiation of function template specialization 'std::make_shared<KarrasScheduler>' requested here
                scheduler = std::make_shared<KarrasScheduler>();
                                 ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'ExponentialScheduler' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3290:5: note: in instantiation of member function 'std::__shared_ptr_emplace<ExponentialScheduler, std::allocator<ExponentialScheduler>>::__on_zero_shared' requested here
    __shared_ptr_emplace(_Alloc __a)
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of member function 'std::__shared_ptr_emplace<ExponentialScheduler, std::allocator<ExponentialScheduler>>::__shared_ptr_emplace' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/denoiser.hpp:412:34: note: in instantiation of function template specialization 'std::make_shared<ExponentialScheduler>' requested here
                scheduler = std::make_shared<ExponentialScheduler>();
                                 ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'AYSScheduler' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<AYSScheduler, std::allocator<AYSScheduler>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<AYSScheduler, std::allocator<AYSScheduler>>::__shared_ptr_emplace<SDVersion &>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/denoiser.hpp:416:34: note: in instantiation of function template specialization 'std::make_shared<AYSScheduler, SDVersion &>' requested here
                scheduler = std::make_shared<AYSScheduler>(version);
                                 ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'GITSScheduler' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3290:5: note: in instantiation of member function 'std::__shared_ptr_emplace<GITSScheduler, std::allocator<GITSScheduler>>::__on_zero_shared' requested here
    __shared_ptr_emplace(_Alloc __a)
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of member function 'std::__shared_ptr_emplace<GITSScheduler, std::allocator<GITSScheduler>>::__shared_ptr_emplace' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/denoiser.hpp:420:34: note: in instantiation of function template specialization 'std::make_shared<GITSScheduler>' requested here
                scheduler = std::make_shared<GITSScheduler>();
                                 ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'SGMUniformScheduler' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3290:5: note: in instantiation of member function 'std::__shared_ptr_emplace<SGMUniformScheduler, std::allocator<SGMUniformScheduler>>::__on_zero_shared' requested here
    __shared_ptr_emplace(_Alloc __a)
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of member function 'std::__shared_ptr_emplace<SGMUniformScheduler, std::allocator<SGMUniformScheduler>>::__shared_ptr_emplace' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/denoiser.hpp:424:34: note: in instantiation of function template specialization 'std::make_shared<SGMUniformScheduler>' requested here
                scheduler = std::make_shared<SGMUniformScheduler>();
                                 ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'SimpleScheduler' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3290:5: note: in instantiation of member function 'std::__shared_ptr_emplace<SimpleScheduler, std::allocator<SimpleScheduler>>::__on_zero_shared' requested here
    __shared_ptr_emplace(_Alloc __a)
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of member function 'std::__shared_ptr_emplace<SimpleScheduler, std::allocator<SimpleScheduler>>::__shared_ptr_emplace' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/denoiser.hpp:428:34: note: in instantiation of function template specialization 'std::make_shared<SimpleScheduler>' requested here
                scheduler = std::make_shared<SimpleScheduler>();
                                 ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'SmoothStepScheduler' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3290:5: note: in instantiation of member function 'std::__shared_ptr_emplace<SmoothStepScheduler, std::allocator<SmoothStepScheduler>>::__on_zero_shared' requested here
    __shared_ptr_emplace(_Alloc __a)
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of member function 'std::__shared_ptr_emplace<SmoothStepScheduler, std::allocator<SmoothStepScheduler>>::__shared_ptr_emplace' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/denoiser.hpp:432:34: note: in instantiation of function template specialization 'std::make_shared<SmoothStepScheduler>' requested here
                scheduler = std::make_shared<SmoothStepScheduler>();
                                 ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'KLOptimalScheduler' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3290:5: note: in instantiation of member function 'std::__shared_ptr_emplace<KLOptimalScheduler, std::allocator<KLOptimalScheduler>>::__on_zero_shared' requested here
    __shared_ptr_emplace(_Alloc __a)
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of member function 'std::__shared_ptr_emplace<KLOptimalScheduler, std::allocator<KLOptimalScheduler>>::__shared_ptr_emplace' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/denoiser.hpp:436:34: note: in instantiation of function template specialization 'std::make_shared<KLOptimalScheduler>' requested here
                scheduler = std::make_shared<KLOptimalScheduler>();
                                 ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'LCMScheduler' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3290:5: note: in instantiation of member function 'std::__shared_ptr_emplace<LCMScheduler, std::allocator<LCMScheduler>>::__on_zero_shared' requested here
    __shared_ptr_emplace(_Alloc __a)
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of member function 'std::__shared_ptr_emplace<LCMScheduler, std::allocator<LCMScheduler>>::__shared_ptr_emplace' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/denoiser.hpp:440:34: note: in instantiation of function template specialization 'std::make_shared<LCMScheduler>' requested here
                scheduler = std::make_shared<LCMScheduler>();
                                 ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'Flux::RMSNorm' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<Flux::RMSNorm>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<Flux::RMSNorm>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<Flux::RMSNorm>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/flux.hpp:62:36: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<Flux::RMSNorm>' requested here
            blocks["query_norm"] = std::shared_ptr<GGMLBlock>(new RMSNorm(dim));
                                   ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'Flux::QKNorm' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<Flux::QKNorm>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<Flux::QKNorm>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<Flux::QKNorm>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/flux.hpp:97:32: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<Flux::QKNorm>' requested here
            blocks["norm"]   = std::shared_ptr<GGMLBlock>(new QKNorm(head_dim));
                               ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'Flux::Modulation' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<Flux::Modulation>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<Flux::Modulation>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<Flux::Modulation>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/flux.hpp:269:37: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<Flux::Modulation>' requested here
                blocks["img_mod"] = std::shared_ptr<GGMLBlock>(new Modulation(hidden_size, true));
                                    ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'Flux::SelfAttention' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<Flux::SelfAttention>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<Flux::SelfAttention>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<Flux::SelfAttention>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/flux.hpp:272:35: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<Flux::SelfAttention>' requested here
            blocks["img_attn"]  = std::shared_ptr<GGMLBlock>(new SelfAttention(hidden_size, num_heads, qkv_bias, mlp_proj_bias));
                                  ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'Flux::YakMLP' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<Flux::YakMLP>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<Flux::YakMLP>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<Flux::YakMLP>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/flux.hpp:276:37: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<Flux::YakMLP>' requested here
                blocks["img_mlp"] = std::shared_ptr<GGMLBlock>(new YakMLP(hidden_size, mlp_hidden_dim, mlp_proj_bias));
                                    ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'Flux::MLP' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<Flux::MLP>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<Flux::MLP>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<Flux::MLP>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/flux.hpp:278:37: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<Flux::MLP>' requested here
                blocks["img_mlp"] = std::shared_ptr<GGMLBlock>(new MLP(hidden_size, mlp_hidden_dim, use_mlp_silu_act, mlp_proj_bias));
                                    ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'Flux::MLPEmbedder' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<Flux::MLPEmbedder>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<Flux::MLPEmbedder>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<Flux::MLPEmbedder>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/flux.hpp:586:57: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<Flux::MLPEmbedder>' requested here
                blocks["layers." + std::to_string(i)] = std::shared_ptr<GGMLBlock>(new MLPEmbedder(inner_size, inner_size));
                                                        ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'Flux::RMSNorm' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<Flux::RMSNorm, std::allocator<Flux::RMSNorm>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<Flux::RMSNorm, std::allocator<Flux::RMSNorm>>::__shared_ptr_emplace<long long &>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/flux.hpp:638:46: note: in instantiation of function template specialization 'std::make_shared<Flux::RMSNorm, long long &>' requested here
            blocks["norm"]            = std::make_shared<RMSNorm>(hidden_size_x);
                                             ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'Flux::ChromaApproximator' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<Flux::ChromaApproximator, std::allocator<Flux::ChromaApproximator>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<Flux::ChromaApproximator, std::allocator<Flux::ChromaApproximator>>::__shared_ptr_emplace<long long &, long long &>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/flux.hpp:783:59: note: in instantiation of function template specialization 'std::make_shared<Flux::ChromaApproximator, long long &, long long &>' requested here
                blocks["distilled_guidance_layer"] = std::make_shared<ChromaApproximator>(params.in_dim, params.hidden_size);
                                                          ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'Flux::MLPEmbedder' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<Flux::MLPEmbedder, std::allocator<Flux::MLPEmbedder>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<Flux::MLPEmbedder, std::allocator<Flux::MLPEmbedder>>::__shared_ptr_emplace<int, long long &, bool>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/flux.hpp:785:42: note: in instantiation of function template specialization 'std::make_shared<Flux::MLPEmbedder, int, long long &, bool>' requested here
                blocks["time_in"] = std::make_shared<MLPEmbedder>(256, params.hidden_size, !params.disable_bias);
                                         ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'Flux::DoubleStreamBlock' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<Flux::DoubleStreamBlock, std::allocator<Flux::DoubleStreamBlock>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<Flux::DoubleStreamBlock, std::allocator<Flux::DoubleStreamBlock>>::__shared_ptr_emplace<long long &, int &, float &, int &, bool &, bool &, bool &, bool, bool &, bool &>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/flux.hpp:799:69: note: in instantiation of function template specialization 'std::make_shared<Flux::DoubleStreamBlock, long long &, int &, float &, int &, bool &, bool &, bool &, bool, bool &, bool &>' requested here
                blocks["double_blocks." + std::to_string(i)] = std::make_shared<DoubleStreamBlock>(params.hidden_size,
                                                                    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'Flux::SingleStreamBlock' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<Flux::SingleStreamBlock, std::allocator<Flux::SingleStreamBlock>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<Flux::SingleStreamBlock, std::allocator<Flux::SingleStreamBlock>>::__shared_ptr_emplace<long long &, int &, float &, int &, float, bool &, bool &, bool, bool &, bool &>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/flux.hpp:812:69: note: in instantiation of function template specialization 'std::make_shared<Flux::SingleStreamBlock, long long &, int &, float &, int &, float, bool &, bool &, bool, bool &, bool &>' requested here
                blocks["single_blocks." + std::to_string(i)] = std::make_shared<SingleStreamBlock>(params.hidden_size,
                                                                    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'Flux::NerfEmbedder' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<Flux::NerfEmbedder, std::allocator<Flux::NerfEmbedder>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<Flux::NerfEmbedder, std::allocator<Flux::NerfEmbedder>>::__shared_ptr_emplace<long long &, long long &, int &>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/flux.hpp:825:54: note: in instantiation of function template specialization 'std::make_shared<Flux::NerfEmbedder, long long &, long long &, int &>' requested here
                blocks["nerf_image_embedder"] = std::make_shared<NerfEmbedder>(params.in_channels,
                                                     ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'Flux::NerfGLUBlock' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<Flux::NerfGLUBlock, std::allocator<Flux::NerfGLUBlock>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<Flux::NerfGLUBlock, std::allocator<Flux::NerfGLUBlock>>::__shared_ptr_emplace<long long &, long long &, int &>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/flux.hpp:830:71: note: in instantiation of function template specialization 'std::make_shared<Flux::NerfGLUBlock, long long &, long long &, int &>' requested here
                    blocks["nerf_blocks." + std::to_string(i)] = std::make_shared<NerfGLUBlock>(params.hidden_size,
                                                                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'Flux::NerfFinalLayerConv' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<Flux::NerfFinalLayerConv, std::allocator<Flux::NerfFinalLayerConv>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<Flux::NerfFinalLayerConv, std::allocator<Flux::NerfFinalLayerConv>>::__shared_ptr_emplace<long long &, long long &>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/flux.hpp:835:56: note: in instantiation of function template specialization 'std::make_shared<Flux::NerfFinalLayerConv, long long &, long long &>' requested here
                blocks["nerf_final_layer_conv"] = std::make_shared<NerfFinalLayerConv>(params.chroma_radiance_params.nerf_hidden_size,
                                                       ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'Flux::LastLayer' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<Flux::LastLayer, std::allocator<Flux::LastLayer>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<Flux::LastLayer, std::allocator<Flux::LastLayer>>::__shared_ptr_emplace<long long &, int, long long &, bool &, bool>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/flux.hpp:839:46: note: in instantiation of function template specialization 'std::make_shared<Flux::LastLayer, long long &, int, long long &, bool &, bool>' requested here
                blocks["final_layer"] = std::make_shared<LastLayer>(params.hidden_size, 1, params.out_channels, params.is_chroma, !params.disable_bias);
                                             ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'Flux::Modulation' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<Flux::Modulation, std::allocator<Flux::Modulation>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<Flux::Modulation, std::allocator<Flux::Modulation>>::__shared_ptr_emplace<long long &, bool, bool>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/flux.hpp:843:63: note: in instantiation of function template specialization 'std::make_shared<Flux::Modulation, long long &, bool, bool>' requested here
                blocks["double_stream_modulation_img"] = std::make_shared<Modulation>(params.hidden_size, true, !params.disable_bias);
                                                              ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'SelfAttention' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<SelfAttention>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<SelfAttention>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<SelfAttention>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/mmdit.hpp:254:27: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<SelfAttention>' requested here
        blocks["attn"]  = std::shared_ptr<GGMLBlock>(new SelfAttention(hidden_size, num_heads, qk_norm, qkv_bias, pre_only));
                          ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'Mlp' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<Mlp>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<Mlp>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<Mlp>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/mmdit.hpp:263:38: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<Mlp>' requested here
            blocks["mlp"]          = std::shared_ptr<GGMLBlock>(new Mlp(hidden_size, mlp_hidden_dim));
                                     ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'DismantledBlock' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<DismantledBlock>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<DismantledBlock>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<DismantledBlock>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/mmdit.hpp:562:35: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<DismantledBlock>' requested here
        blocks["context_block"] = std::shared_ptr<GGMLBlock>(new DismantledBlock(hidden_size, num_heads, mlp_ratio, qk_norm, qkv_bias, pre_only, false));
                                  ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'PatchEmbed' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<PatchEmbed>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<PatchEmbed>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<PatchEmbed>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/mmdit.hpp:686:32: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<PatchEmbed>' requested here
        blocks["x_embedder"] = std::shared_ptr<GGMLBlock>(new PatchEmbed(input_size, patch_size, in_channels, hidden_size, true));
                               ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'TimestepEmbedder' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<TimestepEmbedder>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<TimestepEmbedder>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<TimestepEmbedder>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/mmdit.hpp:687:32: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<TimestepEmbedder>' requested here
        blocks["t_embedder"] = std::shared_ptr<GGMLBlock>(new TimestepEmbedder(hidden_size));
                               ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'VectorEmbedder' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<VectorEmbedder>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<VectorEmbedder>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<VectorEmbedder>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/mmdit.hpp:690:36: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<VectorEmbedder>' requested here
            blocks["y_embedder"] = std::shared_ptr<GGMLBlock>(new VectorEmbedder(adm_in_channels, hidden_size));
                                   ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'JointBlock' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<JointBlock>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<JointBlock>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<JointBlock>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/mmdit.hpp:696:59: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<JointBlock>' requested here
            blocks["joint_blocks." + std::to_string(i)] = std::shared_ptr<GGMLBlock>(new JointBlock(hidden_size,
                                                          ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'FinalLayer' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<FinalLayer>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<FinalLayer>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<FinalLayer>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/mmdit.hpp:705:33: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<FinalLayer>' requested here
        blocks["final_layer"] = std::shared_ptr<GGMLBlock>(new FinalLayer(hidden_size, patch_size, out_channels));
                                ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'Qwen::TimestepEmbedding' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<Qwen::TimestepEmbedding>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<Qwen::TimestepEmbedding>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<Qwen::TimestepEmbedding>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/qwen_image.hpp:50:43: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<Qwen::TimestepEmbedding>' requested here
            blocks["timestep_embedder"] = std::shared_ptr<GGMLBlock>(new TimestepEmbedding(256, embedding_dim));
                                          ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'Qwen::QwenImageAttention' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<Qwen::QwenImageAttention>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<Qwen::QwenImageAttention>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<Qwen::QwenImageAttention>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/qwen_image.hpp:217:30: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<Qwen::QwenImageAttention>' requested here
            blocks["attn"] = std::shared_ptr<GGMLBlock>(new QwenImageAttention(dim,
                             ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'Qwen::QwenTimestepProjEmbeddings' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<Qwen::QwenTimestepProjEmbeddings>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<Qwen::QwenTimestepProjEmbeddings>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<Qwen::QwenTimestepProjEmbeddings>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/qwen_image.hpp:374:41: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<Qwen::QwenTimestepProjEmbeddings>' requested here
            blocks["time_text_embed"] = std::shared_ptr<GGMLBlock>(new QwenTimestepProjEmbeddings(inner_dim));
                                        ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'Qwen::QwenImageTransformerBlock' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<Qwen::QwenImageTransformerBlock>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<Qwen::QwenImageTransformerBlock>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<Qwen::QwenImageTransformerBlock>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/qwen_image.hpp:381:69: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<Qwen::QwenImageTransformerBlock>' requested here
                auto block                                        = std::shared_ptr<GGMLBlock>(new QwenImageTransformerBlock(inner_dim,
                                                                    ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'Qwen::AdaLayerNormContinuous' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<Qwen::AdaLayerNormContinuous>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<Qwen::AdaLayerNormContinuous>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<Qwen::AdaLayerNormContinuous>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/qwen_image.hpp:389:34: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<Qwen::AdaLayerNormContinuous>' requested here
            blocks["norm_out"] = std::shared_ptr<GGMLBlock>(new AdaLayerNormContinuous(inner_dim, inner_dim, false, 1e-6f));
                                 ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'UpSampleBlock' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<UpSampleBlock>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<UpSampleBlock>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<UpSampleBlock>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/unet.hpp:377:40: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<UpSampleBlock>' requested here
                    blocks[name]     = std::shared_ptr<GGMLBlock>(new UpSampleBlock(ch, ch));
                                       ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'ResnetBlock' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<ResnetBlock>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<ResnetBlock>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<ResnetBlock>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/vae.hpp:304:36: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<ResnetBlock>' requested here
                blocks[name]     = std::shared_ptr<GGMLBlock>(new ResnetBlock(block_in, block_out));
                                   ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'AttnBlock' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<AttnBlock>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<AttnBlock>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<AttnBlock>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/vae.hpp:314:33: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<AttnBlock>' requested here
        blocks["mid.attn_1"]  = std::shared_ptr<GGMLBlock>(new AttnBlock(block_in, use_linear_projection));
                                ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'AE3DConv' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<AE3DConv>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<AE3DConv>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<AE3DConv>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/vae.hpp:380:20: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<AE3DConv>' requested here
            return std::shared_ptr<GGMLBlock>(new AE3DConv(in_channels, out_channels, kernel_size, video_kernel_size, stride, padding));
                   ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'VideoResnetBlock' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<VideoResnetBlock>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<VideoResnetBlock>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<VideoResnetBlock>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/vae.hpp:389:20: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<VideoResnetBlock>' requested here
            return std::shared_ptr<GGMLBlock>(new VideoResnetBlock(in_channels, out_channels, video_kernel_size));
                   ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'Decoder' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<Decoder>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<Decoder>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<Decoder>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/vae.hpp:523:29: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<Decoder>' requested here
        blocks["decoder"] = std::shared_ptr<GGMLBlock>(new Decoder(dd_config.ch,
                            ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'Encoder' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<Encoder>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<Encoder>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<Encoder>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/vae.hpp:536:33: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<Encoder>' requested here
            blocks["encoder"] = std::shared_ptr<GGMLBlock>(new Encoder(dd_config.ch,
                                ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'WAN::CausalConv3d' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<WAN::CausalConv3d>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<WAN::CausalConv3d>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<WAN::CausalConv3d>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/wan.hpp:139:39: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<WAN::CausalConv3d>' requested here
                blocks["time_conv"] = std::shared_ptr<GGMLBlock>(new CausalConv3d(dim, dim * 2, {3, 1, 1}, {1, 1, 1}, {1, 0, 0}));
                                      ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'WAN::RMS_norm' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<WAN::RMS_norm>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<WAN::RMS_norm>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<WAN::RMS_norm>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/wan.hpp:348:36: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<WAN::RMS_norm>' requested here
            blocks["residual.0"] = std::shared_ptr<GGMLBlock>(new RMS_norm(in_dim));
                                   ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'WAN::AvgDown3D' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<WAN::AvgDown3D>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<WAN::AvgDown3D>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<WAN::AvgDown3D>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/wan.hpp:420:38: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<WAN::AvgDown3D>' requested here
            blocks["avg_shortcut"] = std::shared_ptr<GGMLBlock>(new AvgDown3D(in_dim, out_dim, temperal_downsample ? 2 : 1, down_flag ? 2 : 1));
                                     ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'WAN::ResidualBlock' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<WAN::ResidualBlock>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<WAN::ResidualBlock>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<WAN::ResidualBlock>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/wan.hpp:424:62: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<WAN::ResidualBlock>' requested here
                blocks["downsamples." + std::to_string(i)] = std::shared_ptr<GGMLBlock>(new ResidualBlock(in_dim, out_dim));
                                                             ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'WAN::Resample' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<WAN::Resample>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<WAN::Resample>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<WAN::Resample>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/wan.hpp:429:62: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<WAN::Resample>' requested here
                blocks["downsamples." + std::to_string(i)] = std::shared_ptr<GGMLBlock>(new Resample(out_dim, mode, true));
                                                             ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'WAN::DupUp3D' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<WAN::DupUp3D>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<WAN::DupUp3D>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<WAN::DupUp3D>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/wan.hpp:481:42: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<WAN::DupUp3D>' requested here
                blocks["avg_shortcut"] = std::shared_ptr<GGMLBlock>(new DupUp3D(in_dim, out_dim, temperal_upsample ? 2 : 1, up_flag ? 2 : 1));
                                         ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'WAN::Down_ResidualBlock' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<WAN::Down_ResidualBlock>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<WAN::Down_ResidualBlock>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<WAN::Down_ResidualBlock>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/wan.hpp:632:40: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<WAN::Down_ResidualBlock>' requested here
                    auto block       = std::shared_ptr<GGMLBlock>(new Down_ResidualBlock(in_dim,
                                       ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'WAN::AttentionBlock' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<WAN::AttentionBlock>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<WAN::AttentionBlock>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<WAN::AttentionBlock>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/wan.hpp:655:34: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<WAN::AttentionBlock>' requested here
            blocks["middle.1"] = std::shared_ptr<GGMLBlock>(new AttentionBlock(out_dim));
                                 ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'WAN::Up_ResidualBlock' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<WAN::Up_ResidualBlock>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<WAN::Up_ResidualBlock>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<WAN::Up_ResidualBlock>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/wan.hpp:798:38: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<WAN::Up_ResidualBlock>' requested here
                    auto block     = std::shared_ptr<GGMLBlock>(new Up_ResidualBlock(in_dim,
                                     ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'WAN::Encoder3d' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<WAN::Encoder3d>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<WAN::Encoder3d>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<WAN::Encoder3d>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/wan.hpp:963:37: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<WAN::Encoder3d>' requested here
                blocks["encoder"] = std::shared_ptr<GGMLBlock>(new Encoder3d(dim, z_dim * 2, dim_mult, num_res_blocks, temperal_downsample, wan2_2));
                                    ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'WAN::Decoder3d' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<WAN::Decoder3d>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<WAN::Decoder3d>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<WAN::Decoder3d>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/wan.hpp:966:33: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<WAN::Decoder3d>' requested here
            blocks["decoder"] = std::shared_ptr<GGMLBlock>(new Decoder3d(dec_dim, z_dim, dim_mult, num_res_blocks, temperal_upsample, wan2_2));
                                ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'Identity' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<Identity>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<Identity>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<Identity>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/wan.hpp:1313:36: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<Identity>' requested here
                blocks["norm_q"] = std::shared_ptr<GGMLBlock>(new Identity());
                                   ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'WAN::WanSelfAttention' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<WAN::WanSelfAttention>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<WAN::WanSelfAttention>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<WAN::WanSelfAttention>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/wan.hpp:1515:35: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<WAN::WanSelfAttention>' requested here
            blocks["self_attn"] = std::shared_ptr<GGMLBlock>(new WanSelfAttention(dim, num_heads, qk_norm, eps));
                                  ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'WAN::WanT2VCrossAttention' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<WAN::WanT2VCrossAttention>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<WAN::WanT2VCrossAttention>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<WAN::WanT2VCrossAttention>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/wan.hpp:1522:40: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<WAN::WanT2VCrossAttention>' requested here
                blocks["cross_attn"] = std::shared_ptr<GGMLBlock>(new WanT2VCrossAttention(dim, num_heads, qk_norm, eps));
                                       ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'WAN::WanI2VCrossAttention' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<WAN::WanI2VCrossAttention>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<WAN::WanI2VCrossAttention>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<WAN::WanI2VCrossAttention>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/wan.hpp:1524:40: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<WAN::WanI2VCrossAttention>' requested here
                blocks["cross_attn"] = std::shared_ptr<GGMLBlock>(new WanI2VCrossAttention(dim, num_heads, qk_norm, eps));
                                       ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'WAN::WanAttentionBlock' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<WAN::WanAttentionBlock>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<WAN::WanAttentionBlock>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<WAN::WanAttentionBlock>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/wan.hpp:1782:57: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<WAN::WanAttentionBlock>' requested here
                auto block                            = std::shared_ptr<GGMLBlock>(new WanAttentionBlock(params.model_type == "t2v",
                                                        ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'WAN::Head' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<WAN::Head>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<WAN::Head>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<WAN::Head>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/wan.hpp:1793:30: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<WAN::Head>' requested here
            blocks["head"] = std::shared_ptr<GGMLBlock>(new Head(params.dim, params.out_dim, params.patch_size, params.eps));
                             ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'WAN::MLPProj' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<WAN::MLPProj>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<WAN::MLPProj>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<WAN::MLPProj>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/wan.hpp:1797:37: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<WAN::MLPProj>' requested here
                blocks["img_emb"] = std::shared_ptr<GGMLBlock>(new MLPProj(1280, params.dim, params.flf_pos_embed_token_number));
                                    ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'WAN::VaceWanAttentionBlock' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<WAN::VaceWanAttentionBlock>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<WAN::VaceWanAttentionBlock>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<WAN::VaceWanAttentionBlock>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/wan.hpp:1803:66: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<WAN::VaceWanAttentionBlock>' requested here
                    auto block                                 = std::shared_ptr<GGMLBlock>(new VaceWanAttentionBlock(params.model_type == "t2v",
                                                                 ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'ZImage::JointAttention' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<ZImage::JointAttention, std::allocator<ZImage::JointAttention>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<ZImage::JointAttention, std::allocator<ZImage::JointAttention>>::__shared_ptr_emplace<long long &, long long &, long long &, long long &, bool &>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/z_image.hpp:167:46: note: in instantiation of function template specialization 'std::make_shared<ZImage::JointAttention, long long &, long long &, long long &, long long &, bool &>' requested here
            blocks["attention"]       = std::make_shared<JointAttention>(hidden_size, head_dim, num_heads, num_kv_heads, qk_norm);
                                             ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'ZImage::FeedForward' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<ZImage::FeedForward, std::allocator<ZImage::FeedForward>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<ZImage::FeedForward, std::allocator<ZImage::FeedForward>>::__shared_ptr_emplace<long long &, long long &, long long &, float &>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/z_image.hpp:168:46: note: in instantiation of function template specialization 'std::make_shared<ZImage::FeedForward, long long &, long long &, long long &, float &>' requested here
            blocks["feed_forward"]    = std::make_shared<FeedForward>(hidden_size, hidden_size, multiple_of, ffn_dim_multiplier);
                                             ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'LayerNorm' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<LayerNorm, std::allocator<LayerNorm>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<LayerNorm, std::allocator<LayerNorm>>::__shared_ptr_emplace<long long &, float, bool>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/z_image.hpp:239:49: note: in instantiation of function template specialization 'std::make_shared<LayerNorm, long long &, float, bool>' requested here
            blocks["norm_final"]         = std::make_shared<LayerNorm>(hidden_size, 1e-06f, false);
                                                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'TimestepEmbedder' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<TimestepEmbedder, std::allocator<TimestepEmbedder>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<TimestepEmbedder, std::allocator<TimestepEmbedder>>::__shared_ptr_emplace<long long, int, int>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/z_image.hpp:297:45: note: in instantiation of function template specialization 'std::make_shared<TimestepEmbedder, long long, int, int>' requested here
            blocks["t_embedder"]     = std::make_shared<TimestepEmbedder>(MIN(z_image_params.hidden_size, 1024), 256, 256);
                                            ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'ZImage::JointTransformerBlock' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<ZImage::JointTransformerBlock, std::allocator<ZImage::JointTransformerBlock>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<ZImage::JointTransformerBlock, std::allocator<ZImage::JointTransformerBlock>>::__shared_ptr_emplace<int &, long long &, long long &, long long &, long long &, long long &, float &, float &, bool &, bool>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/z_image.hpp:302:35: note: in instantiation of function template specialization 'std::make_shared<ZImage::JointTransformerBlock, int &, long long &, long long &, long long &, long long &, long long &, float &, float &, bool &, bool>' requested here
                auto block = std::make_shared<JointTransformerBlock>(i,
                                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'ZImage::FinalLayer' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<ZImage::FinalLayer, std::allocator<ZImage::FinalLayer>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<ZImage::FinalLayer, std::allocator<ZImage::FinalLayer>>::__shared_ptr_emplace<long long &, int &, long long &>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/z_image.hpp:346:42: note: in instantiation of function template specialization 'std::make_shared<ZImage::FinalLayer, long long &, int &, long long &>' requested here
            blocks["final_layer"] = std::make_shared<FinalLayer>(z_image_params.hidden_size, z_image_params.patch_size, z_image_params.out_channels);
                                         ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'ResidualDenseBlock' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<ResidualDenseBlock>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<ResidualDenseBlock>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<ResidualDenseBlock>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/esrgan.hpp:62:26: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<ResidualDenseBlock>' requested here
        blocks["rdb1"] = std::shared_ptr<GGMLBlock>(new ResidualDenseBlock(num_feat, num_grow_ch));
                         ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'RRDB' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<RRDB>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<RRDB>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<RRDB>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/esrgan.hpp:99:32: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<RRDB>' requested here
            blocks[name]     = std::shared_ptr<GGMLBlock>(new RRDB(num_feat, num_grow_ch));
                               ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'RRDBNet' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<RRDBNet>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<RRDBNet>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
sd/esrgan.hpp:157:5: note: in instantiation of member function 'std::unique_ptr<RRDBNet>::~unique_ptr' requested here
    ESRGAN(ggml_backend_t backend,
    ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'PerceiverAttention' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<PerceiverAttention>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<PerceiverAttention>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<PerceiverAttention>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/pmid.hpp:173:32: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<PerceiverAttention>' requested here
            blocks[name]     = std::shared_ptr<GGMLBlock>(new PerceiverAttention(dim, dim_head, heads));
                               ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'PMFeedForward' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<PMFeedForward>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<PMFeedForward>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<PMFeedForward>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/pmid.hpp:175:32: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<PMFeedForward>' requested here
            blocks[name]     = std::shared_ptr<GGMLBlock>(new PMFeedForward(dim, ff_mult));
                               ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'FacePerceiverResampler' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<FacePerceiverResampler>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<FacePerceiverResampler>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<FacePerceiverResampler>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/pmid.hpp:218:41: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<FacePerceiverResampler>' requested here
        blocks["perceiver_resampler"] = std::shared_ptr<GGMLBlock>(new FacePerceiverResampler(
                                        ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'FuseBlock' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<FuseBlock>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<FuseBlock>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<FuseBlock>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/pmid.hpp:254:32: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<FuseBlock>' requested here
        blocks["mlp1"]       = std::shared_ptr<GGMLBlock>(new FuseBlock(imb_d * 2, imb_d, imb_d, false));
                               ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'FuseModule' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<FuseModule>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<FuseModule>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<FuseModule>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/pmid.hpp:317:41: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<FuseModule>' requested here
        blocks["fuse_module"]         = std::shared_ptr<GGMLBlock>(new FuseModule(2048));
                                        ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'QFormerPerceiver' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<QFormerPerceiver>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<QFormerPerceiver>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<QFormerPerceiver>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/pmid.hpp:363:41: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<QFormerPerceiver>' requested here
        blocks["qformer_perceiver"]   = std::shared_ptr<GGMLBlock>(new QFormerPerceiver(id_embeddings_dim,
                                        ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'GroupNorm' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<GroupNorm>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<GroupNorm>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<GroupNorm>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/tae.hpp:34:32: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<GroupNorm>' requested here
            blocks["pool.1"] = std::shared_ptr<GGMLBlock>(new GroupNorm(4, n_gn));
                               ^
12 warnings generated.
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'TAEBlock' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<TAEBlock>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<TAEBlock>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<TAEBlock>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/tae.hpp:90:43: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<TAEBlock>' requested here
        blocks[std::to_string(index++)] = std::shared_ptr<GGMLBlock>(new TAEBlock(channels, channels));
                                          ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'TPool' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<TPool>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<TPool>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<TPool>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/tae.hpp:333:47: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<TPool>' requested here
            blocks[std::to_string(index++)] = std::shared_ptr<GGMLBlock>(new TPool(hidden, stride));
                                              ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'MemBlock' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<MemBlock>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<MemBlock>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<MemBlock>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/tae.hpp:336:51: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<MemBlock>' requested here
                blocks[std::to_string(index++)] = std::shared_ptr<GGMLBlock>(new MemBlock(hidden, hidden));
                                                  ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'TGrow' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<TGrow>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<TGrow>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<TGrow>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/tae.hpp:392:47: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<TGrow>' requested here
            blocks[std::to_string(index++)] = std::shared_ptr<GGMLBlock>(new TGrow(channels[i], stride));
                                              ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'TinyVideoDecoder' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<TinyVideoDecoder>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<TinyVideoDecoder>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<TinyVideoDecoder>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/tae.hpp:454:29: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<TinyVideoDecoder>' requested here
        blocks["decoder"] = std::shared_ptr<GGMLBlock>(new TinyVideoDecoder(z_channels, patch));
                            ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'TinyVideoEncoder' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<TinyVideoEncoder>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<TinyVideoEncoder>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<TinyVideoEncoder>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/tae.hpp:456:33: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<TinyVideoEncoder>' requested here
            blocks["encoder"] = std::shared_ptr<GGMLBlock>(new TinyVideoEncoder(z_channels, patch));
                                ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'TinyDecoder' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<TinyDecoder>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<TinyDecoder>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<TinyDecoder>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/tae.hpp:511:36: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<TinyDecoder>' requested here
        blocks["decoder.layers"] = std::shared_ptr<GGMLBlock>(new TinyDecoder(z_channels, use_midblock_gn));
                                   ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2084:5: warning: delete called on non-final 'TinyEncoder' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2345:7: note: in instantiation of member function 'std::default_delete<TinyEncoder>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:2299:19: note: in instantiation of member function 'std::unique_ptr<TinyEncoder>::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3645:21: note: in instantiation of member function 'std::unique_ptr<TinyEncoder>::~unique_ptr' requested here
    unique_ptr<_Yp> __hold(__p);
                    ^
sd/tae.hpp:514:40: note: in instantiation of function template specialization 'std::shared_ptr<GGMLBlock>::shared_ptr<TinyEncoder>' requested here
            blocks["encoder.layers"] = std::shared_ptr<GGMLBlock>(new TinyEncoder(z_channels, use_midblock_gn));
                                       ^
In file included from sd/stable-diffusion.cpp:1:
In file included from sd/ggml_extend.hpp:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:643:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'PhiloxRNG' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3290:5: note: in instantiation of member function 'std::__shared_ptr_emplace<PhiloxRNG, std::allocator<PhiloxRNG>>::__on_zero_shared' requested here
    __shared_ptr_emplace(_Alloc __a)
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of member function 'std::__shared_ptr_emplace<PhiloxRNG, std::allocator<PhiloxRNG>>::__shared_ptr_emplace' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/stable-diffusion.cpp:210:45: note: in instantiation of function template specialization 'std::make_shared<PhiloxRNG>' requested here
    std::shared_ptr<RNG> rng         = std::make_shared<PhiloxRNG>();
                                            ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'CompVisDenoiser' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3290:5: note: in instantiation of member function 'std::__shared_ptr_emplace<CompVisDenoiser, std::allocator<CompVisDenoiser>>::__on_zero_shared' requested here
    __shared_ptr_emplace(_Alloc __a)
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of member function 'std::__shared_ptr_emplace<CompVisDenoiser, std::allocator<CompVisDenoiser>>::__shared_ptr_emplace' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/stable-diffusion.cpp:246:47: note: in instantiation of function template specialization 'std::make_shared<CompVisDenoiser>' requested here
    std::shared_ptr<Denoiser> denoiser = std::make_shared<CompVisDenoiser>();
                                              ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'STDDefaultRNG' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3290:5: note: in instantiation of member function 'std::__shared_ptr_emplace<STDDefaultRNG, std::allocator<STDDefaultRNG>>::__on_zero_shared' requested here
    __shared_ptr_emplace(_Alloc __a)
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of member function 'std::__shared_ptr_emplace<STDDefaultRNG, std::allocator<STDDefaultRNG>>::__shared_ptr_emplace' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/stable-diffusion.cpp:336:25: note: in instantiation of function template specialization 'std::make_shared<STDDefaultRNG>' requested here
            return std::make_shared<STDDefaultRNG>();
                        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'MT19937RNG' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3290:5: note: in instantiation of member function 'std::__shared_ptr_emplace<MT19937RNG, std::allocator<MT19937RNG>>::__on_zero_shared' requested here
    __shared_ptr_emplace(_Alloc __a)
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of member function 'std::__shared_ptr_emplace<MT19937RNG, std::allocator<MT19937RNG>>::__shared_ptr_emplace' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/stable-diffusion.cpp:338:25: note: in instantiation of function template specialization 'std::make_shared<MT19937RNG>' requested here
            return std::make_shared<MT19937RNG>();
                        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'SD3CLIPEmbedder' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<SD3CLIPEmbedder, std::allocator<SD3CLIPEmbedder>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<SD3CLIPEmbedder, std::allocator<SD3CLIPEmbedder>>::__shared_ptr_emplace<ggml_backend *&, bool &, OrderedMap<std::basic_string<char>, TensorStorage> &>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/stable-diffusion.cpp:550:41: note: in instantiation of function template specialization 'std::make_shared<SD3CLIPEmbedder, ggml_backend *&, bool &, OrderedMap<std::basic_string<char>, TensorStorage> &>' requested here
                cond_stage_model = std::make_shared<SD3CLIPEmbedder>(clip_backend,
                                        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'MMDiTModel' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<MMDiTModel, std::allocator<MMDiTModel>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<MMDiTModel, std::allocator<MMDiTModel>>::__shared_ptr_emplace<ggml_backend *&, bool &, OrderedMap<std::basic_string<char>, TensorStorage> &>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/stable-diffusion.cpp:553:41: note: in instantiation of function template specialization 'std::make_shared<MMDiTModel, ggml_backend *&, bool &, OrderedMap<std::basic_string<char>, TensorStorage> &>' requested here
                diffusion_model  = std::make_shared<MMDiTModel>(backend,
                                        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'T5CLIPEmbedder' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<T5CLIPEmbedder, std::allocator<T5CLIPEmbedder>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<T5CLIPEmbedder, std::allocator<T5CLIPEmbedder>>::__shared_ptr_emplace<ggml_backend *&, bool &, OrderedMap<std::basic_string<char>, TensorStorage> &, const bool &, const int &>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/stable-diffusion.cpp:574:45: note: in instantiation of function template specialization 'std::make_shared<T5CLIPEmbedder, ggml_backend *&, bool &, OrderedMap<std::basic_string<char>, TensorStorage> &, const bool &, const int &>' requested here
                    cond_stage_model = std::make_shared<T5CLIPEmbedder>(clip_backend,
                                            ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'LLMEmbedder' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<LLMEmbedder, std::allocator<LLMEmbedder>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<LLMEmbedder, std::allocator<LLMEmbedder>>::__shared_ptr_emplace<ggml_backend *&, bool &, OrderedMap<std::basic_string<char>, TensorStorage> &, SDVersion &, const char (&)[1], bool>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/stable-diffusion.cpp:580:45: note: in instantiation of function template specialization 'std::make_shared<LLMEmbedder, ggml_backend *&, bool &, OrderedMap<std::basic_string<char>, TensorStorage> &, SDVersion &, const char (&)[1], bool>' requested here
                    cond_stage_model = std::make_shared<LLMEmbedder>(clip_backend,
                                            ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'FluxCLIPEmbedder' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<FluxCLIPEmbedder, std::allocator<FluxCLIPEmbedder>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<FluxCLIPEmbedder, std::allocator<FluxCLIPEmbedder>>::__shared_ptr_emplace<ggml_backend *&, bool &, OrderedMap<std::basic_string<char>, TensorStorage> &>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/stable-diffusion.cpp:587:45: note: in instantiation of function template specialization 'std::make_shared<FluxCLIPEmbedder, ggml_backend *&, bool &, OrderedMap<std::basic_string<char>, TensorStorage> &>' requested here
                    cond_stage_model = std::make_shared<FluxCLIPEmbedder>(clip_backend,
                                            ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'FluxModel' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<FluxModel, std::allocator<FluxModel>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<FluxModel, std::allocator<FluxModel>>::__shared_ptr_emplace<ggml_backend *&, bool &, OrderedMap<std::basic_string<char>, TensorStorage> &, SDVersion &, const bool &>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/stable-diffusion.cpp:591:40: note: in instantiation of function template specialization 'std::make_shared<FluxModel, ggml_backend *&, bool &, OrderedMap<std::basic_string<char>, TensorStorage> &, SDVersion &, const bool &>' requested here
                diffusion_model = std::make_shared<FluxModel>(backend,
                                       ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'WanModel' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<WanModel, std::allocator<WanModel>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<WanModel, std::allocator<WanModel>>::__shared_ptr_emplace<ggml_backend *&, bool &, OrderedMap<std::basic_string<char>, TensorStorage> &, const char (&)[22], SDVersion &>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/stable-diffusion.cpp:614:41: note: in instantiation of function template specialization 'std::make_shared<WanModel, ggml_backend *&, bool &, OrderedMap<std::basic_string<char>, TensorStorage> &, const char (&)[22], SDVersion &>' requested here
                diffusion_model  = std::make_shared<WanModel>(backend,
                                        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'QwenImageModel' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<QwenImageModel, std::allocator<QwenImageModel>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<QwenImageModel, std::allocator<QwenImageModel>>::__shared_ptr_emplace<ggml_backend *&, bool &, OrderedMap<std::basic_string<char>, TensorStorage> &, const char (&)[22], SDVersion &, const bool &>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/stable-diffusion.cpp:646:41: note: in instantiation of function template specialization 'std::make_shared<QwenImageModel, ggml_backend *&, bool &, OrderedMap<std::basic_string<char>, TensorStorage> &, const char (&)[22], SDVersion &, const bool &>' requested here
                diffusion_model  = std::make_shared<QwenImageModel>(backend,
                                        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'ZImageModel' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<ZImageModel, std::allocator<ZImageModel>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<ZImageModel, std::allocator<ZImageModel>>::__shared_ptr_emplace<ggml_backend *&, bool &, OrderedMap<std::basic_string<char>, TensorStorage> &, const char (&)[22], SDVersion &>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/stable-diffusion.cpp:657:41: note: in instantiation of function template specialization 'std::make_shared<ZImageModel, ggml_backend *&, bool &, OrderedMap<std::basic_string<char>, TensorStorage> &, const char (&)[22], SDVersion &>' requested here
                diffusion_model  = std::make_shared<ZImageModel>(backend,
                                        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'FrozenCLIPEmbedderWithCustomWords' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<FrozenCLIPEmbedderWithCustomWords, std::allocator<FrozenCLIPEmbedderWithCustomWords>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<FrozenCLIPEmbedderWithCustomWords, std::allocator<FrozenCLIPEmbedderWithCustomWords>>::__shared_ptr_emplace<ggml_backend *&, bool &, OrderedMap<std::basic_string<char>, TensorStorage> &, std::map<std::basic_string<char>, std::basic_string<char>> &, SDVersion &, PMVersion>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/stable-diffusion.cpp:668:45: note: in instantiation of function template specialization 'std::make_shared<FrozenCLIPEmbedderWithCustomWords, ggml_backend *&, bool &, OrderedMap<std::basic_string<char>, TensorStorage> &, std::map<std::basic_string<char>, std::basic_string<char>> &, SDVersion &, PMVersion>' requested here
                    cond_stage_model = std::make_shared<FrozenCLIPEmbedderWithCustomWords>(clip_backend,
                                            ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'UNetModel' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<UNetModel, std::allocator<UNetModel>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<UNetModel, std::allocator<UNetModel>>::__shared_ptr_emplace<ggml_backend *&, bool &, OrderedMap<std::basic_string<char>, TensorStorage> &, SDVersion &>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/stable-diffusion.cpp:681:40: note: in instantiation of function template specialization 'std::make_shared<UNetModel, ggml_backend *&, bool &, OrderedMap<std::basic_string<char>, TensorStorage> &, SDVersion &>' requested here
                diffusion_model = std::make_shared<UNetModel>(backend,
                                       ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'CompVisVDenoiser' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3290:5: note: in instantiation of member function 'std::__shared_ptr_emplace<CompVisVDenoiser, std::allocator<CompVisVDenoiser>>::__on_zero_shared' requested here
    __shared_ptr_emplace(_Alloc __a)
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of member function 'std::__shared_ptr_emplace<CompVisVDenoiser, std::allocator<CompVisVDenoiser>>::__shared_ptr_emplace' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/stable-diffusion.cpp:1045:37: note: in instantiation of function template specialization 'std::make_shared<CompVisVDenoiser>' requested here
                    denoiser = std::make_shared<CompVisVDenoiser>();
                                    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'EDMVDenoiser' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3290:5: note: in instantiation of member function 'std::__shared_ptr_emplace<EDMVDenoiser, std::allocator<EDMVDenoiser>>::__on_zero_shared' requested here
    __shared_ptr_emplace(_Alloc __a)
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of member function 'std::__shared_ptr_emplace<EDMVDenoiser, std::allocator<EDMVDenoiser>>::__shared_ptr_emplace' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/stable-diffusion.cpp:1049:37: note: in instantiation of function template specialization 'std::make_shared<EDMVDenoiser>' requested here
                    denoiser = std::make_shared<EDMVDenoiser>();
                                    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'DiscreteFlowDenoiser' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<DiscreteFlowDenoiser, std::allocator<DiscreteFlowDenoiser>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<DiscreteFlowDenoiser, std::allocator<DiscreteFlowDenoiser>>::__shared_ptr_emplace<float &>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/stable-diffusion.cpp:1053:37: note: in instantiation of function template specialization 'std::make_shared<DiscreteFlowDenoiser, float &>' requested here
                    denoiser = std::make_shared<DiscreteFlowDenoiser>(flow_shift);
                                    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'FluxFlowDenoiser' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<FluxFlowDenoiser, std::allocator<FluxFlowDenoiser>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<FluxFlowDenoiser, std::allocator<FluxFlowDenoiser>>::__shared_ptr_emplace<float &>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/stable-diffusion.cpp:1058:37: note: in instantiation of function template specialization 'std::make_shared<FluxFlowDenoiser, float &>' requested here
                    denoiser = std::make_shared<FluxFlowDenoiser>(flow_shift);
                                    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'Flux2FlowDenoiser' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3290:5: note: in instantiation of member function 'std::__shared_ptr_emplace<Flux2FlowDenoiser, std::allocator<Flux2FlowDenoiser>>::__on_zero_shared' requested here
    __shared_ptr_emplace(_Alloc __a)
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of member function 'std::__shared_ptr_emplace<Flux2FlowDenoiser, std::allocator<Flux2FlowDenoiser>>::__shared_ptr_emplace' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/stable-diffusion.cpp:1063:37: note: in instantiation of function template specialization 'std::make_shared<Flux2FlowDenoiser>' requested here
                    denoiser = std::make_shared<Flux2FlowDenoiser>();
                                    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:5: warning: destructor called on non-final 'MultiLoraAdapter' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
    __data_.second().~_Tp();
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3296:9: note: in instantiation of member function 'std::__shared_ptr_emplace<MultiLoraAdapter, std::allocator<MultiLoraAdapter>>::__on_zero_shared' requested here
        __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:4038:26: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<MultiLoraAdapter, std::allocator<MultiLoraAdapter>>::__shared_ptr_emplace<std::vector<std::shared_ptr<LoraModel>> &>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
sd/stable-diffusion.cpp:1231:44: note: in instantiation of function template specialization 'std::make_shared<MultiLoraAdapter, std::vector<std::shared_ptr<LoraModel>> &>' requested here
            auto multi_lora_adapter = std::make_shared<MultiLoraAdapter>(cond_stage_lora_models);
                                           ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3318:23: note: qualify call to silence this warning
    __data_.second().~_Tp();
                      ^
sd/stable-diffusion.cpp:175:13: warning: unused function 'accumulate_tile' [-Wunused-function]
static void accumulate_tile(const ggml_tensor* tile_denoised,
            ^
In file included from sd/stable-diffusion.cpp:19:
sd/tae.hpp:82:9: warning: private field 'z_channels' is not used [-Wunused-private-field]
    int z_channels  = 4;
        ^
sd/tae.hpp:125:9: warning: private field 'z_channels' is not used [-Wunused-private-field]
    int z_channels   = 4;
        ^
sd/tae.hpp:320:9: warning: private field 'z_channels' is not used [-Wunused-private-field]
    int z_channels  = 4;
        ^
sd/tae.hpp:373:9: warning: private field 'z_channels' is not used [-Wunused-private-field]
    int z_channels               = 4;
        ^
sd/model.cpp:460:12: warning: unused variable 'total_size' [-Wunused-variable]
    size_t total_size  = 0;
           ^
4 warnings generated.
222 warnings generated.
clang++ -arch x86_64 -std=gnu++17 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L/Library/Frameworks/R.framework/Resources/lib -L/opt/R/x86_64/lib -o sd2R.so RcppExports.o sd2R_interface.o sd/stable-diffusion.o sd/model.o sd/name_conversion.o sd/tokenize_util.o sd/upscaler.o sd/util.o sd/version.o sd/thirdparty/zip.o -L/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/ggmlR/lib -lggml -lpthread -lm -F/Library/Frameworks/R.framework/.. -framework R
installing to /Volumes/Builds/packages/big-sur-x86_64/results/4.5/sd2R.Rcheck/00LOCK-sd2R/00new/sd2R/libs
** generating debug symbols (dSYM)
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (sd2R)