prefill: the CPU share is on by default on CUDA, one GPU, no batch slots, chunks below 1024 tokens (STRATA_PREFILL_CPU_SHARE=0 turns it off); start line; docs
This commit is contained in:
1 parent
aa19d0d395
commit
162ce64eff
4 files changed
+33
-7
No files matched your search
@@ -6105,7 +6105,7 @@ int main(int argc, char** argv) {
|
||||
// the pool is idle while a prompt is read unless batch slots decode between its parts; with
|
||||
// STRATA_PREFILL_CPU_SHARE the staged-chunk limit before the chunk below sizes the loans (bytes_needed reads it)
|
||||
const bool share_pool = o.batch <= 0 && !o.no_pool;
|
||||
strata::prefill::Prefill::arm_cpu_share(share_pool);
|
||||
strata::prefill::Prefill::arm_cpu_share(share_pool, share_pool && stages.empty() && !multi_gpu);
|
||||
void* borrow = nullptr;
|
||||
uint64_t borrow_bytes = 0;
|
||||
int32_t lend_first = -1; // the first slot the prompt path may borrow (its largest chunk)
|
||||
@@ -10941,7 +10941,7 @@ int main(int argc, char** argv) {
|
||||
int64_t pos_start = 0;
|
||||
int64_t spec_pos = 0; // plan v0.3 P6: where the speculative loop starts (0 = not used)
|
||||
strata::prefill::Prefill prefill;
|
||||
strata::prefill::Prefill::arm_cpu_share(!multi_gpu && !o.no_pool); // before the chunk below sizes the loan
|
||||
strata::prefill::Prefill::arm_cpu_share(!multi_gpu && !o.no_pool, !multi_gpu && !o.no_pool && o.batch <= 0); // before the chunk below sizes the loan
|
||||
bool kvg_started = false; // the elastic K/V took this run's cells
|
||||
double prefill_batched_ms = 0;
|
||||
std::FILE* final_r = o.dump_final_r.empty() ? nullptr : std::fopen(o.dump_final_r.c_str(), "wb");
|
||||
|
||||
Reference in new issue
Block a user