config.py 367 B

1234567891011
  1. # Copyright (c) Meta Platforms, Inc. and affiliates.
  2. # This software may be used and distributed according to the terms of the Llama 2 Community License Agreement.
  3. import yaml
  4. def load_config(config_path: str = "./config.yaml"):
  5. # Read the YAML configuration file
  6. with open(config_path, "r") as file:
  7. config = yaml.safe_load(file)
  8. return config