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

feat: implement model download and upload #192

Merged
merged 10 commits into from
Mar 22, 2022

Conversation

franklevasseur
Copy link
Member

@franklevasseur franklevasseur commented Mar 18, 2022

What was done

  • 2 new routes in nlu-server (GET /modelweights/:modelId and POST /modelweights)
  • this new ressource (modelweights) is behave differently than the rest of the API, it sends and receives raw bytes instead of JSON
  • special client for these 2 routes with typed responses

What's left

  • write an e2e scenario for model weights download and upload
  • validate model content on upload

@franklevasseur franklevasseur marked this pull request as draft March 19, 2022 01:36
Copy link
Member Author

@franklevasseur franklevasseur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small changes to do

packages/nlu-client/src/typings/info.ts Outdated Show resolved Hide resolved
packages/nlu-server/src/application/errors.ts Outdated Show resolved Hide resolved
@franklevasseur franklevasseur marked this pull request as ready for review March 22, 2022 17:44
@franklevasseur franklevasseur marked this pull request as draft March 22, 2022 17:44
@franklevasseur franklevasseur changed the base branch from cloud to model_transfer March 22, 2022 17:45
@franklevasseur franklevasseur marked this pull request as ready for review March 22, 2022 17:45
@franklevasseur franklevasseur merged commit 71db517 into model_transfer Mar 22, 2022
franklevasseur added a commit that referenced this pull request Mar 23, 2022
* chore: model repo now returns buffer instead of deserialized model

* fix: fix ts issues in engine

* clean in parallel

* chore(nlu-server): rm usage of declaration file

* feat(nlu-server): model transfer is available without the need of an external server

fix: small oversight
franklevasseur added a commit that referenced this pull request Mar 23, 2022
* chore: model repo now returns buffer instead of deserialized model

* fix: fix ts issues in engine

* clean in parallel

* chore(nlu-server): rm usage of declaration file

* feat(nlu-server): model transfer is available without the need of an external server

fix: small oversight
@franklevasseur franklevasseur deleted the model_download_upload branch September 9, 2022 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant