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
+11
-16
@@ -23,6 +23,7 @@
|
||||
*/
|
||||
#pragma once
|
||||
#include "gen.h"
|
||||
#include "pass.h"
|
||||
#include "device/device.h"
|
||||
|
||||
#include <mutex>
|
||||
@@ -31,7 +32,7 @@
|
||||
namespace rad {
|
||||
namespace gen {
|
||||
|
||||
class Driver {
|
||||
class Driver final : public IPassDriver {
|
||||
public:
|
||||
struct RankIO {
|
||||
int device = 0;
|
||||
@@ -54,25 +55,18 @@ public:
|
||||
* request. */
|
||||
const RadGeneratorDecl& decl() const { return decl_; }
|
||||
int64_t max_cond_tokens() const { return max_tok_; }
|
||||
/* Fail every request queued or in flight, and refuse new ones. */
|
||||
void shutdown(const char* why, int status);
|
||||
void shutdown(const char* why, int status) override;
|
||||
|
||||
/* ---------------------------------------------------------- the engine thread */
|
||||
/* The next pass, staged on every rank's stream, or null when there is nothing to run.
|
||||
* `step` is the engine's pass counter, carried into RadBatch::step. */
|
||||
const RadBatch* next(int step);
|
||||
const RadBatch* batch_for(int rank) const;
|
||||
/* Bytes of image output the staged pass produces, 0 if none; the engine copies them to
|
||||
* host_image() behind the pass. */
|
||||
int64_t decode_bytes() const { return dec_bytes_; }
|
||||
void* host_image() const { return img_host_; }
|
||||
/* The pass has run on every rank and its streams are drained. */
|
||||
int done();
|
||||
const RadBatch* next(int step) override;
|
||||
const RadBatch* batch_for(int rank) const override;
|
||||
/* A decode pass's pixels: `image_out` into the pinned image buffer. */
|
||||
const std::vector<Readback>& readbacks() const override { return rb_; }
|
||||
int done() override;
|
||||
bool busy() const;
|
||||
|
||||
/* For /health, /stats and the dashboard. */
|
||||
int64_t queued() const;
|
||||
int64_t running() const;
|
||||
int64_t queued() const override;
|
||||
int64_t running() const override;
|
||||
|
||||
private:
|
||||
struct Cond {
|
||||
@@ -160,6 +154,7 @@ private:
|
||||
void* img_host_ = nullptr;
|
||||
int64_t img_bytes_ = 0;
|
||||
int64_t dec_bytes_ = 0;
|
||||
std::vector<Readback> rb_;
|
||||
|
||||
std::vector<RadBatch> out_; /* one per rank */
|
||||
std::vector<RadGenBatch> gout_;
|
||||
|
||||
Reference in new issue
Block a user