Archived
config: --gpu-memory-mib, the inverse of --gpu-headroom-mib
N claims that many MiB of every card; headroom is the rest. The two flags cannot be combined. vLLM's utilisation fraction, written in MiB.
This commit is contained in:
1 parent
aa182fc156
commit
9cb04f62a8
10 files changed
+164
-22
No files matched your search
@@ -4133,10 +4133,16 @@ int Engine::start() {
|
||||
: fmt("%s --gpu-headroom-mib", humanb(want).c_str());
|
||||
if (room < allowance) {
|
||||
const int64_t raise_mib = (allowance - room + MiB - 1) / MiB;
|
||||
const int64_t need_head = std::max<int64_t>(cfg_.gpu_headroom_mib, 0) + raise_mib;
|
||||
const std::string fix = cfg_.gpu_memory_mib > 0
|
||||
? fmt("Set --gpu-memory-mib to at most %lld: what is left here falls with it one "
|
||||
"for one.",
|
||||
(long long)(props.vram_bytes / MiB - need_head))
|
||||
: fmt("Set --gpu-headroom-mib to at least %lld: what is left here rises with it "
|
||||
"one for one.", (long long)need_head);
|
||||
RAD_WARN("card %d settled at %s free against %s, which leaves %s for a kernel's first "
|
||||
"launch to load its code object and size its scratch in -- under the %s this "
|
||||
"engine allows for its own. %s Set --gpu-headroom-mib to at least %lld: what "
|
||||
"is left here rises with it one for one.",
|
||||
"engine allows for its own. %s %s",
|
||||
r->device, humanb(got).c_str(), asked.c_str(),
|
||||
humanb(std::max<int64_t>(room, 0)).c_str(), humanb(allowance).c_str(),
|
||||
got < want
|
||||
@@ -4144,7 +4150,7 @@ int Engine::start() {
|
||||
"another process on it or an allocation the budget does not "
|
||||
"count.", humanb(want - got).c_str()).c_str()
|
||||
: "",
|
||||
(long long)(std::max<int64_t>(cfg_.gpu_headroom_mib, 0) + raise_mib));
|
||||
fix.c_str());
|
||||
} else if (got < want) {
|
||||
RAD_INFO("card %d settled at %s free against %s: %s of the headroom was taken after "
|
||||
"the budget read the card, by another process on it or an allocation the "
|
||||
|
||||
Reference in new issue
Block a user