question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[api request] API to obtain "dataset_module" dynamic path?

See original GitHub issue

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is.

This is an awesome library.

It seems like the dynamic module path in this library has broken some of hyperparameter tuning functionality: https://discuss.huggingface.co/t/using-hyperparameter-search-in-trainer/785/34

This is because Ray will spawn new processes, and each process will load modules by path. However, we need to explicitly inform Ray to load the right modules, or else it will error upon import.

I’d like an API to obtain the dynamic paths. This will allow us to support this functionality in this awesome library while being future proof.

Describe the solution you’d like A clear and concise description of what you want to happen.

datasets.get_dynamic_paths -> List[str] will be sufficient for my use case.

By offering this API, we will be able to address the following issues (by patching the ray integration sufficiently):

https://github.com/huggingface/blog/issues/106 https://github.com/huggingface/transformers/issues/11565 https://discuss.huggingface.co/t/using-hyperparameter-search-in-trainer/785/34 https://discuss.huggingface.co/t/using-hyperparameter-search-in-trainer/785/35

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lhoestqcommented, May 5, 2021

I like the idea as well ! thanks @albertvillanova

1reaction
richardliawcommented, May 5, 2021

Hi @albertvillanova, the default value proposal seems great 😃 Looking forward to this!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Extract data from API request with dynamic output
Use a parameters dict, like this: requests.get('https://server/path', {dataMatchString: application.id, modStartDate: date1, modEndDate: date2}) ...
Read more >
Dynamic API Routes - Next.js
API routes support dynamic routes, and follow the same file naming rules used for pages . For example, the API route pages/api/post/[pid].js has...
Read more >
speechbrain.dataio.dataset module - Read the Docs
When a data point is fetched from this Dataset, more items are produced dynamically, based on pre-existing items and other dynamic created items....
Read more >
Dynamically Selecting API Gateway Back Ends Based on ...
A common requirement is to route requests sent to the same API gateway to different back ends based on elements in the request....
Read more >
Ability to add dynamic path variable to every request · Issue #16
I am looking for a way to add the same dynamic path variable to every call ... #region Category [Get("/API/Account/{accountId}/Category")] ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found