mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-11-05 01:07:28 +00:00
[GH-ISSUE #950] [Feature] 绑定指定的CPU核心 #678
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/ktransformers#678
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yeungtuzi on GitHub (Mar 21, 2025).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/950
检查清单
需求背景
vllm中类似参数/环境变量为
或者可以使用numactl
numactl -N0-7 -m0-7 /path/to/llama-cli -m /path/to/model.gguf -t 8 --numa numactl来实现?相关资源
No response
@Atream commented on GitHub (Mar 22, 2025):
可以使用numactl来实现,不过由于权重是mmap到内存的,绑核前需要清空mmap缓存
sudo sh -c "echo 3 > /proc/sys/vm/drop_caches"