Skip to content

Commit

Permalink
Update to inference tokenizer and implement CFG (#117)
Browse files Browse the repository at this point in the history
* update sampling to inference tokenizer

* add inference tokenizer

* update training script
  • Loading branch information
loubbrad authored Dec 17, 2024
1 parent 3c03782 commit 40a245c
Show file tree
Hide file tree
Showing 8 changed files with 709 additions and 357 deletions.
3 changes: 3 additions & 0 deletions aria/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
import os
import json

from functools import lru_cache


CONFIG_DIR = os.path.join(os.path.dirname(__file__), "..", "config")


@lru_cache(maxsize=1)
def load_config():
"""Returns a dictionary loaded from the config.json file."""
with open(os.path.join(CONFIG_DIR, "config.json")) as f:
Expand Down
Loading

0 comments on commit 40a245c

Please sign in to comment.