Skip to content

Data inside workers #874

Closed
Closed

Description

@Didayolo

In CodaLab, we have the possibility to add data directly inside the compute workers, so it can be read by the ingestion or scoring program:

https://github.com/codalab/codalab-competitions/wiki/User_Using-your-own-compute-workers#put-data-directly-inside-the-worker

The way it is implemented is simply that the folder /data of the worker is mounted on the docker container of the submission.

Do we have this on Codabench? If no, should we implement this in the same way than in CodaLab or is there a better practice?

Activity

  1. added
    Discussion
    Post-it
    on May 12, 2023
  2. dtuantran commented on May 12, 2023

    @dtuantran
    Contributor

    On Codabench we have HOST_DIRECTORY=/codabench env variable. I think we can do probably the same by putting data in /codabench/storage/. We need to try to see if it works.
    Here is the code line related in compute_worker.py :

    if self.input_data:

  3. Didayolo commented on May 12, 2023

    @Didayolo
    MemberAuthor
  4. self-assigned this
    on May 12, 2023
  5. Didayolo commented on May 16, 2023

    @Didayolo
    MemberAuthor

    To be confirmed:

    • The data in HOST_DIRECTORY can be accessed
    • The access is read-only
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

DiscussionPost-it

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions