Archived
radiance 1.8.0
- video: MiniMax-H3 and FastVideo's FastH3 8-Step V2, a video with its stereo soundtrack from text on OpenAI's /v1/videos, block fp8 on two cards - music: MiniMax-Music3, songs from lyrics and a description on /v1/audio/speech - speech: Breeze-TTS-2 on /v1/audio/speech and vLLM-Omni's realtime WebSocket - runtime LoRA adapters beside the base model, picked per request by `model` (baKon, #105) - several agent streams keep their cached history: --checkpoint-slots auto, the new default, sizes the snapshot store by --max-num-seqs (#108) - the Swift 1.5 27B W4 releases convert and serve: compressed-tensors AWQ and GPTQ int4, AutoRound, ModelOpt NVFP4 (#110) - the image's host tests pass where perf_event_open is refused, as in BuildKit's sandbox (#106) - plugin ABI 21: out-of-tree plugins must be rebuilt
This commit is contained in:
1 parent
91127395ee
commit
7a7707a955
179 files changed
+37542
-1892
No files matched your search
+55
-1
@@ -20,7 +20,7 @@
|
||||
#include <vector>
|
||||
|
||||
namespace rad {
|
||||
namespace gen { struct Request; }
|
||||
namespace gen { struct Request; struct AudioRequest; class AudioTicket; struct VideoRequest; class VideoTicket; }
|
||||
namespace mm { struct Frame; struct Item; }
|
||||
namespace server {
|
||||
|
||||
@@ -599,5 +599,59 @@ public:
|
||||
virtual int64_t running() const = 0;
|
||||
};
|
||||
|
||||
/* The audio generator (core/gen/audio_driver.h), for a model that makes music or other audio from
|
||||
* text: its declared prompt template and limits, the plugin's rewrite of a request's texts into
|
||||
* the form it was trained on, and its request queue. The server renders and tokenises the prompt
|
||||
* and reads the audio back off the ticket, a window at a time. */
|
||||
struct AudioGenInfo {
|
||||
/* The prompt templates (RadAudioGenDecl): with instructions, without them ("" makes them
|
||||
* required), and the unconditional branch's own ("" derives it from the conditional prompt). */
|
||||
std::string name, tmpl, tmpl_plain, neg_tmpl;
|
||||
int64_t max_prompt = 0, max_frames = 0, frame_rate_num = 1, frame_rate_den = 1;
|
||||
int64_t sample_rate = 0, channels = 0;
|
||||
int64_t default_steps = 0, max_lanes = 1; /* default_steps 0: no denoiser */
|
||||
double default_cfg = 1.0;
|
||||
};
|
||||
|
||||
class IAudioGen {
|
||||
public:
|
||||
virtual ~IAudioGen() = default;
|
||||
virtual const AudioGenInfo& info() const = 0;
|
||||
/* `in` rewritten as the model wants text for `field` (RAD_TEXT_*); the text unchanged when the
|
||||
* plugin states no rewrite. RAD_E_INVAL with `why` for text the model cannot take. */
|
||||
virtual int prepare(int field, const std::string& in, std::string* out,
|
||||
std::string* why) const = 0;
|
||||
/* Queue a request; refused at once, with `why`, when it can never run. */
|
||||
virtual int submit(std::unique_ptr<gen::AudioRequest> r, std::string* why) = 0;
|
||||
virtual int64_t queued() const = 0;
|
||||
virtual int64_t running() const = 0;
|
||||
};
|
||||
|
||||
/* The video generator (core/gen/video_driver.h), for a model that makes a video and its
|
||||
* soundtrack from text: its declared prompt template, sizes and lengths, and its request queue.
|
||||
* The server renders and tokenises the prompt, queues the request as a job, and turns what the
|
||||
* ticket hands back into an MP4 file. */
|
||||
struct VideoGenInfo {
|
||||
std::string name, tmpl;
|
||||
int64_t max_text = 0;
|
||||
int64_t fps_num = 1, fps_den = 1;
|
||||
int64_t frames_per_chunk = 1, frames_tail = 0, min_chunks = 1, max_chunks = 1;
|
||||
int64_t size_multiple = 32, min_side = 0, max_area = 0, max_aspect = 1;
|
||||
int64_t default_width = 0, default_height = 0, default_chunks = 1;
|
||||
int64_t sample_rate = 0, channels = 0;
|
||||
int64_t default_steps = 0, max_steps = 0, max_lanes = 1;
|
||||
bool fixed_steps = false; /* a trained schedule: max_steps grid points and no other */
|
||||
};
|
||||
|
||||
class IVideoGen {
|
||||
public:
|
||||
virtual ~IVideoGen() = default;
|
||||
virtual const VideoGenInfo& info() const = 0;
|
||||
/* Queue a request; refused at once, with `why`, when it can never run. */
|
||||
virtual int submit(std::unique_ptr<gen::VideoRequest> r, std::string* why) = 0;
|
||||
virtual int64_t queued() const = 0;
|
||||
virtual int64_t running() const = 0;
|
||||
};
|
||||
|
||||
} /* namespace server */
|
||||
} /* namespace rad */
|
||||
Reference in new issue
Block a user