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

inference_score.py 632 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
  1. import hydra
  2. import molbart.utils.data_utils as util
  3. from molbart.models import Chemformer
  4. @hydra.main(version_base=None, config_path="config", config_name="inference_score")
  5. def main(args):
  6. util.seed_everything(args.seed)
  7. print("Running model inference and scoring.")
  8. chemformer = Chemformer(args)
  9. chemformer.score_model(
  10. n_unique_beams=args.n_unique_beams,
  11. dataset=args.dataset_part,
  12. output_scores=args.output_score_data,
  13. output_sampled_smiles=args.output_sampled_smiles,
  14. )
  15. print("Model inference and scoring done.")
  16. return
  17. if __name__ == "__main__":
  18. main()
Tip!

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

Comments

Loading...