-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preparing to make this the new master
- Loading branch information
1 parent
72f94c2
commit e7d954c
Showing
46 changed files
with
536 additions
and
1,882 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from text_vae import * | ||
from sparse_vae import * | ||
import sys | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Sort of in order of how many internal dependencies each file has | ||
from .batch_generation import * | ||
from .core import select_best_gpu | ||
from .core.conditional_gaussian import * | ||
from .core.generation import * | ||
from .core.transformer import * | ||
from .core.language_model import * | ||
from .core.continuous_autoencoder import * | ||
from .lstm_vae import * | ||
from .lstm_language_model import * | ||
from .text_data_module import * | ||
from .transformer_vae import * | ||
|
||
# Useful utility to have | ||
from pathlib import Path | ||
|
||
def get_checkpoint_path_for_name(experiment: str, ckpt_name: str) -> Path: | ||
ckpt_path = Path.cwd() / 'sparse-vae-logs' / experiment / ckpt_name / "checkpoints" | ||
try: | ||
# Open the most recent checkpoint | ||
ckpt = max(ckpt_path.glob('*.ckpt'), key=lambda file: file.lstat().st_mtime) | ||
return ckpt | ||
except ValueError: | ||
print(f"Couldn't find checkpoint at path {ckpt_path}") | ||
exit(1) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
from .activation_offload import ActivationOffloadFunction, offload | ||
from .auto_select_gpu import select_best_gpu | ||
from .attention import * | ||
from .continuous_autoencoder import * | ||
from .quantizer import * | ||
from .conditional_gaussian import * | ||
from .language_model import * | ||
from .padded_tensor import PaddedTensor | ||
from .perceiver import Perceiver | ||
from .transformer import * | ||
from .transformer_layer import * | ||
from .utilities import * |
Oops, something went wrong.