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

Model Factory Everything is a block #359

Closed
lucidtronix opened this issue Jul 8, 2020 · 3 comments
Closed

Model Factory Everything is a block #359

lucidtronix opened this issue Jul 8, 2020 · 3 comments

Comments

@lucidtronix
Copy link
Collaborator

What
New model factory interface everything is a block.
ResNet, densenet, attention, weight sharing, variational bottlenecks, normalization and regularization are all blocks.

U_nets handled with denseDecoder style blocks or keep the automatic reflection?

How to specify modality specific blocks and aggregated blocks?

Why
Hard wired architecture details
We want to handle variable sized input, language inputs
We want to handle arbitrary internal connections, as we need for many attention based models, not just UNet style skips.

How
--blocks argument takes list of strings from the BlockType Enum.
Model factory now just iterates over blocks.
implement in parallel to existing model factory.

Acceptance Criteria
Default model parameters yield models with performance similar to master.
Attention, weight sharing and pooling concept level blocks allow dynamic shaped inputs and outputs.

@lucidtronix
Copy link
Collaborator Author

lucidtronix commented Sep 10, 2020

This also should address #190, serializable encoders and decoders, streamline using distance with hidden inference as a loss.

@lucidtronix
Copy link
Collaborator Author

lucidtronix commented Sep 10, 2020

And #385, Transformers and attention as model blocks

@lucidtronix
Copy link
Collaborator Author

lucidtronix commented Oct 9, 2020

First pass is in #393,

  • Model factory can return encoders & decoders as models,
  • Encoders can be model
  • External Model files can be model blocks
  • Color nested models in architecture diagram
  • Tokenizers are encoders

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

No branches or pull requests

1 participant