Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NEAMT] Spawn all the modules as separate services #23

Open
nikit91 opened this issue Feb 21, 2023 · 1 comment
Open

[NEAMT] Spawn all the modules as separate services #23

nikit91 opened this issue Feb 21, 2023 · 1 comment
Labels
enhancement New feature or request WHB Tasks to be taken up by WHBs

Comments

@nikit91
Copy link
Member

nikit91 commented Feb 21, 2023

Modules like mgenre take forever to load onto the memory, which slows down the development/debugging process of the application. Having all modules as services would make the core framework lightweight and would allow faster development/debugging.

@nikit91 nikit91 added enhancement New feature or request WHB Tasks to be taken up by WHBs labels May 2, 2023
@nikit91
Copy link
Member Author

nikit91 commented May 19, 2023

For MT modules, we expect many future components to be from huggingface. In this case, we can create a docker service spawner that builds and spawns services based on a configuration. Usually, a single MT approach can have multiple models depending upon source and target language. Keeping that in mind, the configuration can look something like this:

{
  "<component_id>": [
    {
      "source_lang": "de",
      "target_lang": "en",
      "model": "<huggingface_model_id>",
      "tokenizer": "<huggingface_tokenizer_id>"
    }
  ],
  "<component_id_2>": [
    {
      "source_lang": "any",
      "target_lang": "en",
      "model": "<huggingface_model_id>",
      "tokenizer": "<huggingface_tokenizer_id>"
    }
  ],
  "<component_id_3>": [
    {
      "source_lang": "de",
      "target_lang": "en",
      "model": "<huggingface_model_id>",
      "tokenizer": "<huggingface_tokenizer_id>"
    },
    {
      "source_lang": "fr",
      "target_lang": "en",
      "model": "<huggingface_model_id>",
      "tokenizer": "<huggingface_tokenizer_id>"
    }
  ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request WHB Tasks to be taken up by WHBs
Projects
None yet
Development

No branches or pull requests

1 participant