merge f-split-gyro (Gyro-S/M trellis port and catalog entries) into f-split-int
This commit is contained in:
commit
bcbf2caf3f
46 files changed
+3770
-90
No files matched your search
@@ -44,6 +44,7 @@
|
||||
#include "strata/kernels/cpu/pool.hpp"
|
||||
#include "strata/platform/aux_cpus.hpp"
|
||||
#include "strata/kernels/cpu/expert_layout.hpp"
|
||||
#include "strata/kernels/cpu/hadamard.hpp"
|
||||
#include "strata/kernels/ngram.hpp"
|
||||
#include "strata/kernels/iq_kernels.hpp"
|
||||
#include "strata/kernels/s2_expert_grouped.hpp"
|
||||
@@ -3014,6 +3015,28 @@ int main(int argc, char** argv) {
|
||||
// (strata_kq): asking for the formats opens it now, before the expert cache takes the free VRAM
|
||||
(void) strata::prefill::mmq::supported(f.gu_type);
|
||||
(void) strata::prefill::mmq::supported(f.d_type);
|
||||
#endif
|
||||
}
|
||||
// APR (prism.hadamard) packs: every expert path rotates its activations (CPU pool: native_quant_act / _h;
|
||||
// GPU verify, remote GPUs, prompt FP16 path: hadamard_rows). Validated end to end on CUDA (sm_86, sm_89 with
|
||||
// a two-GPU layer split and peer decode, sm_120) and on HIP gfx1151. Other HIP architectures run the same
|
||||
// kernels but have not been run end to end with such a pack: said here, not refused (the P2P prompt peer
|
||||
// says the same in Prefill::set_peer). The former opt-in STRATA_APR is no longer read.
|
||||
if (strata::kernels::cpu::hadamard_spec().any()) {
|
||||
std::fprintf(stderr, "strata generate: APR pack: Hadamard-folded experts (block %d)\n",
|
||||
strata::kernels::cpu::hadamard_spec().block);
|
||||
#if defined(STRATA_USE_HIP) || defined(STRATA_HIP_GFX906)
|
||||
int dev = 0;
|
||||
cudaDeviceProp p{};
|
||||
if (cudaGetDevice(&dev) == cudaSuccess && cudaGetDeviceProperties(&p, dev) == cudaSuccess) {
|
||||
std::string arch(p.gcnArchName);
|
||||
if (const size_t colon = arch.find(':'); colon != std::string::npos) arch.resize(colon);
|
||||
if (arch != "gfx1151")
|
||||
std::fprintf(stderr, "strata generate: warning: Hadamard-folded experts are validated end to end "
|
||||
"on gfx1151 among AMD GPUs, not yet on %s\n", arch.c_str());
|
||||
} else {
|
||||
(void) cudaGetLastError();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user