Archived
- every model serves without a GPU: libavx covers every op, so `--kernels libavx` alone serves every shipped container - Qwen3-ASR (zivius): speech to text on /v1/audio/transcriptions and live over /v1/realtime - /v1/messages works with Claude Code as it ships (gearwave00001) - a long agent conversation keeps its cached history when the client rewrites its last turn (manueloverride) - a stream's first event goes out with the first token, so llama-benchy measures prefill right - opt-in --prefill-interleave (Smellyyyy, baKon) and --prefill-span (keptn42) - four-rank TP releases the link early; four-rank selftests and docs/TP4.md (goodman-b) - NVFP4 and FP8 compressed-tensors imports (devmilan); tools/rad-export for finetunes and LoRA adapters (baKon) - many fixes, among them lost tokens on stop strings under concurrency, keep-alive, MiniCPM5 tool arguments and the CPU's vision and audio encoders - plugin ABI 17 and changed op schemas: out-of-tree plugins must be rebuilt
28 lines
954 B
Plaintext
28 lines
954 B
Plaintext
/* advance.hip -- the advance kernel: one thread per row of the batch it patches. See advance.h.
|
|
*
|
|
* Launched through hipLaunchKernel, which the AQL backend intercepts, so it is one dispatch on the
|
|
* rank's own queue, in stream order with its pass.
|
|
*/
|
|
#include <hip/hip_runtime.h>
|
|
|
|
#include "advance_impl.h"
|
|
|
|
namespace {
|
|
|
|
constexpr int kThreads = 64;
|
|
|
|
__global__ __launch_bounds__(kThreads) void rad_step_advance(rad::AdvanceArgs a) {
|
|
const int i = (int)(blockIdx.x * kThreads + threadIdx.x);
|
|
if (i < a.n_seq) rad::adv_row(a, i);
|
|
}
|
|
|
|
} // namespace
|
|
|
|
extern "C" int rad_step_advance_launch(const rad::AdvanceArgs* args, void* stream) {
|
|
if (!args || args->n_seq <= 0) return 0;
|
|
const unsigned blocks = (unsigned)((args->n_seq + kThreads - 1) / kThreads);
|
|
hipLaunchKernelGGL(rad_step_advance, dim3(blocks), dim3(kThreads), 0, (hipStream_t)stream,
|
|
*args);
|
|
return hipGetLastError() == hipSuccess ? 0 : -1;
|
|
}
|