Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

megamolbart.proto 910 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
  1. syntax = "proto3";
  2. package nemo_chem.models.megamolbart.grpc;
  3. // import "google/protobuf/empty.proto";
  4. //python -m pip install grpcio
  5. //python -m pip install grpcio-tools
  6. //python -m grpc_tools.protoc -I./setup/ \
  7. // --python_out=./generated/ \
  8. // --grpc_python_out=./generated/ \
  9. // --experimental_allow_proto3_optional \
  10. // ./setup/megamolbart.proto
  11. service GenerativeSampler {
  12. rpc SmilesToEmbedding(InputSpec) returns (OutputSpec) {};
  13. rpc SmilesToHidden(InputSpec) returns (OutputSpec) {};
  14. rpc HiddenToSmis(InputSpec) returns (OutputSpec) {};
  15. }
  16. message InputSpec {
  17. repeated string smis = 1;
  18. repeated float hidden_states = 2;
  19. repeated int32 dim = 3;
  20. repeated bool masks = 4;
  21. }
  22. message OutputSpec {
  23. repeated string smis = 1;
  24. repeated float hidden_states = 2;
  25. repeated float embeddings = 3;
  26. repeated int32 dim = 4;
  27. repeated bool masks = 5;
  28. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...