Archived
laya: Laya decision models on /v1/systemone (arch/laya)
This commit is contained in:
1 parent
d24cf32a13
commit
9c605a103d
18 files changed
+2346
-175
No files matched your search
@@ -16,6 +16,7 @@
|
||||
#include <functional>
|
||||
#include "http.h"
|
||||
#include "iface.h"
|
||||
#include "laya.h"
|
||||
#include "liveview.h"
|
||||
#include "metrics.h"
|
||||
#include "oai.h"
|
||||
@@ -82,13 +83,16 @@ struct ServerOptions {
|
||||
int64_t video_ttl_s = 3600;
|
||||
int64_t max_videos = 32;
|
||||
/* The decision protocol from the container's `decision.type`: "d1" serves /v1/systemone
|
||||
* (systemone.h), "clef" serves it through the head on the card (clef.h); empty answers it
|
||||
* 501. Never inferred from a name. */
|
||||
* (systemone.h), "clef" serves it through the head on the card (clef.h), "laya" through the
|
||||
* Laya plugin's option logits (laya.h); empty answers it 501. Never inferred from a name. */
|
||||
std::string decision_type;
|
||||
/* clef: the head's learned scalars from the container header (decision.clef.*, written by
|
||||
* rad-convert from joint_head.safetensors), and whether the header carried them. */
|
||||
double clef_prior_logit_scale = 0.0, clef_joint_logit_scale = 0.0, clef_residual_gate = 0.0;
|
||||
bool clef_scalars = false;
|
||||
/* laya: the sequence lengths, special tokens and fitted temperatures from the container
|
||||
* header (decision.laya.*, written by rad-convert). */
|
||||
LayaSettings laya;
|
||||
/* The most words one request may hand the plugin (Program::plugin_words). */
|
||||
int64_t plugin_words = 0;
|
||||
/* What --model named, reported as the model entry's `root` as vLLM reports its loaded path
|
||||
@@ -251,6 +255,7 @@ private:
|
||||
HttpResponse handle_embeddings(const HttpRequest& req);
|
||||
HttpResponse handle_systemone(const HttpRequest& req);
|
||||
HttpResponse handle_clef(const HttpRequest& req);
|
||||
HttpResponse handle_laya(const HttpRequest& req);
|
||||
HttpResponse handle_apply_template(const HttpRequest& req);
|
||||
using ToChat = int (*)(const std::string& body, const OaiLimits& lim, std::string* chat,
|
||||
std::string* extra, ApiError* err);
|
||||
|
||||
Reference in new issue
Block a user