Skip to content

Commit

Permalink
Figlet
Browse files Browse the repository at this point in the history
  • Loading branch information
knc6 committed Nov 27, 2024
1 parent c9bed52 commit 387c1d5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion atomgpt/forward_models/forward_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
import sys
import argparse
from alignn.pretrained import get_figshare_model
from atomgpt.inverse_models.utils import get_figlet


parser = argparse.ArgumentParser(
description="Atomistic Generative Pre-trained Transformer."
Expand Down Expand Up @@ -279,6 +281,8 @@ def __getitem__(self, idx):


def main(config_file="config.json"):
figlet = get_figlet()
print(figlet)
print("Running AtomGPT prop predictor.")
# run_path = os.path.abspath(config_file).split("config.json")[0]
config = loadjson(config_file)
Expand Down Expand Up @@ -772,6 +776,6 @@ def main(config_file="config.json"):
# output_dir = make_id_prop()
# output_dir="."
args = parser.parse_args(sys.argv[1:])
run_atomgpt(config_file=args.config_name)
main(config_file=args.config_name)
# config_file="config.json"
# )
4 changes: 3 additions & 1 deletion atomgpt/inverse_models/inverse_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ def batch_evaluate(


def main(config_file="config.json"):
if not torch.cuda.is_available():
raise ValueError("Currently model training is possible with GPU only.")
figlet = get_figlet()
print(figlet)
t1 = time.time()
Expand Down Expand Up @@ -464,6 +466,6 @@ def main(config_file="config.json"):
# output_dir = make_id_prop()
# output_dir="."
args = parser.parse_args(sys.argv[1:])
run_atomgpt_inverse(config_file=args.config_name)
main(config_file=args.config_name)
# config_file="config.json"
# )

0 comments on commit 387c1d5

Please sign in to comment.