models.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #pragma once
  2. #include "../clip-graph.h"
  3. struct clip_graph_siglip : clip_graph {
  4. clip_graph_siglip(clip_ctx * ctx, const clip_image_f32 & img) : clip_graph(ctx, img) {}
  5. ggml_cgraph * build() override;
  6. };
  7. struct clip_graph_pixtral : clip_graph {
  8. clip_graph_pixtral(clip_ctx * ctx, const clip_image_f32 & img) : clip_graph(ctx, img) {}
  9. ggml_cgraph * build() override;
  10. };
  11. struct clip_graph_qwen2vl : clip_graph {
  12. clip_graph_qwen2vl(clip_ctx * ctx, const clip_image_f32 & img) : clip_graph(ctx, img) {}
  13. ggml_cgraph * build() override;
  14. };
  15. struct clip_graph_qwen3vl : clip_graph {
  16. clip_graph_qwen3vl(clip_ctx * ctx, const clip_image_f32 & img) : clip_graph(ctx, img) {}
  17. ggml_cgraph * build() override;
  18. };
  19. struct clip_graph_minicpmv : clip_graph {
  20. clip_graph_minicpmv(clip_ctx * ctx, const clip_image_f32 & img) : clip_graph(ctx, img) {}
  21. ggml_cgraph * build() override;
  22. };
  23. struct clip_graph_internvl : clip_graph {
  24. clip_graph_internvl(clip_ctx * ctx, const clip_image_f32 & img) : clip_graph(ctx, img) {}
  25. ggml_cgraph * build() override;
  26. };
  27. struct clip_graph_llama4 : clip_graph {
  28. clip_graph_llama4(clip_ctx * ctx, const clip_image_f32 & img) : clip_graph(ctx, img) {}
  29. ggml_cgraph * build() override;
  30. };
  31. struct clip_graph_kimivl : clip_graph {
  32. clip_graph_kimivl(clip_ctx * ctx, const clip_image_f32 & img) : clip_graph(ctx, img) {}
  33. ggml_cgraph * build() override;
  34. };
  35. struct clip_graph_cogvlm : clip_graph {
  36. clip_graph_cogvlm(clip_ctx * ctx, const clip_image_f32 & img) : clip_graph(ctx, img) {}
  37. ggml_cgraph * build() override;
  38. };
  39. struct clip_graph_llava : clip_graph {
  40. clip_graph_llava(clip_ctx * ctx, const clip_image_f32 & img) : clip_graph(ctx, img) {}
  41. ggml_cgraph * build() override;
  42. };
  43. struct clip_graph_whisper_enc : clip_graph {
  44. clip_graph_whisper_enc(clip_ctx * ctx, const clip_image_f32 & img) : clip_graph(ctx, img) {}
  45. ggml_cgraph * build() override;
  46. };
  47. struct clip_graph_glm4v : clip_graph {
  48. clip_graph_glm4v(clip_ctx * ctx, const clip_image_f32 & img) : clip_graph(ctx, img) {}
  49. ggml_cgraph * build() override;
  50. };