nemotron 3.5 implementation

This commit is contained in:
Gaspa79 authored and StillDeadcode committed 2026-10-30 10:22:53 +01:00
1 parent 33108e488b
commit 94c90b17ad
59 files changed
+6046 -76

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
/* Nemotron 3.5's retrieval template, with images kept typed until token assembly.
* Other embedding models continue through their existing template/raw-input paths. */
#pragma once
#include "server/iface.h"
#include <nlohmann/json.hpp>
struct RadModelMeta;
namespace rad::server {
struct Nemotron35Piece {
bool image = false;
std::string text;
json content; // the original image part, including its data URL
};
bool nemotron35_retrieval_meta(const RadModelMeta* meta);
int nemotron35_format(const json& messages, std::vector<Nemotron35Piece>* pieces, std::string* why);
} // namespace rad::server