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

Need to disable default logging #313

Open
calliope-pro opened this issue Dec 30, 2024 · 0 comments
Open

Need to disable default logging #313

calliope-pro opened this issue Dec 30, 2024 · 0 comments

Comments

@calliope-pro
Copy link

Running a simple MambaBlock model automatically creates a logs directory and generates log files, even with minimal code:

class Model(nn.Module):
    def __init__(self, d_model: int, output_size: int):
        super().__init__()
        self.block = MambaBlock(
            dim=d_model,
            depth=1,
            d_conv=16,
        )
        self.fc = nn.Linear(d_model, output_size)
    def forward(self, x):
        x = self.block(x)
        x = self.fc(x)
        return x
if __name__ == "__main__":
    D_MODEL = 64
    OUTPUT_SIZE = 10
    x = torch.randn(1, 10, D_MODEL, device="cuda")
    model = Model(D_MODEL, OUTPUT_SIZE).to("cuda")
    y = model(x)
    print(f"{x.shape=}, {y.shape=}")

Please suggest ways to prevent this automatic logging.

(This English text was written with AI assistance)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant