-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add env param KV_CACHE_LOCATION to control kv cache memory numanode location #462
base: main
Are you sure you want to change the base?
Conversation
…ocation Usage: before you run instance export KV_CACHE_LOCATION=#memory_numa_node_id_you_want_to_use_for_kv_cache by defaults, kv_cache location is the same as other parts of instance.
@a3213105 we need to put the environment reading to a unified place, please put it to environment.h |
DONE |
src/utils/environment.h
Outdated
@@ -71,6 +71,9 @@ class Env { | |||
// get Primitive Cache M | |||
int getPrimitiveCacheM() { return primitiveCacheM; } | |||
|
|||
// get KV Cache Location | |||
int getKVCacheLocation() { return primitiveCacheM; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be kvCacheLocation? and initKVCacheLocation is never called?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
Usage:
before you run instance
export KV_CACHE_LOCATION=#memory_numa_node_id_you_want_to_use_for_kv_cache
by defaults, kv_cache location is the same as other parts of instance.