Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Module not found and import error for experiments fixed #17

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added experiments/__init__.py
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from .generate import ALL_ARGS
from .online_generate import OnlineTaskGenerateMaskedSeparate
from ..utils import DataGen
from ...metrics import SequenceAccuracy
from .metrics import SequenceAccuracy


def create_dataclass(cls_name, params_list, additional=[]):
Expand Down
File renamed without changes.
11 changes: 5 additions & 6 deletions experiments/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,17 @@
import torch
import torch.optim as optim
from dacite import from_dict
from experiments.data.formal_language.formal_language_dataset import (
FormLangDatasetGenerator,
)
from experiments.data.utils import DataGen
from experiments.lr_scheduler import LinearWarmupCosineAnnealing
from omegaconf import DictConfig, OmegaConf
from torch import nn
from torch.utils.data import DataLoader
from tqdm import tqdm

from xlstm.xlstm_lm_model import xLSTMLMModel, xLSTMLMModelConfig

from data.formal_language.formal_language_dataset import \
FormLangDatasetGenerator
from data.utils import DataGen
from lr_scheduler import LinearWarmupCosineAnnealing

dataset_registry: dict[str, Type[DataGen]] = {
"form_language": FormLangDatasetGenerator
}
Expand Down