mlcommons / mlcommons/inference

[Performance] Slow loading of MM datas

Open
#2,483 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.6k
Forks
650
Avg merge
1d 22h
Merged PRs (30d)
6

Description

In _load_samples_to_ram and calls formulate_loaded_sample.

Image

Parallelize with ThreadPoolExecutor. For the Shopify benchmark, it can take up to 240s, which is unnecessary.

Also, it should use pybase64 for encode and decode

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating _load_samples_to_ram and its calls to formulate_loaded_sample, then run the Shopify benchmark to observe the loading time. Evaluate the proposed ThreadPoolExecutor parallelization and pybase64 encoding/decoding; done means the benchmark loads samples faster without changing results.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning, performance
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.