huggingface / huggingface/candle

Candle vs. PyTorch performance

Open
#3,052 9 comments 5 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
21k
Forks
1.8k
Avg merge
16h 42m
Merged PRs (30d)
25

Description

I'm running https://github.com/huggingface/candle/tree/main/candle-examples/examples/llava vs. https://github.com/fpgaminer/joycaption/blob/main/scripts/batch-caption.py on a Mac m1.

Seeing significant performance difference, Candle seems much slower.
I enabled accelerate and metal features.

Would love some pointers how to improve it.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with candle-examples/examples/llava and compare its invocation and enabled features with scripts/batch-caption.py from joycaption. Reproduce the Mac M1 performance comparison, then profile or benchmark both paths to identify the cause of the difference. Done means a confirmed bottleneck and an actionable fix or documented limitation.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.