Archived
nemotron 3.5 implementation
This commit is contained in:
1 parent
33108e488b
commit
94c90b17ad
59 files changed
+6046
-76
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user