huggingface / huggingface/candle

Why is llama_multiprocess's num_shards 4 slower than 2?

Open
#1,339 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
21.1k
Forks
1.8k
Avg merge
16h 42m
Merged PRs (30d)
25

Description

Left:num_shards=2; Right: num_shards=4

![图片](https://github.com/huggingface/candle/assets/16131917/2e5f95bd-9f22-4a1f-98f9-0c432b2e9b8f)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the llama_multiprocess entry point and the num_shards handling, then compare the 2-shard and 4-shard execution paths. Reproduce the reported timing difference and inspect how work is divided across shards. Done means the slowdown is explained and, if it is a defect, a focused fix is identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
machine-learning, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.