Skip to content

Commit

Permalink
added push to hub option
Browse files Browse the repository at this point in the history
  • Loading branch information
Butanium committed Nov 22, 2024
1 parent daddac6 commit 1f026b9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dictionary_learning/dictionary.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@
"""

from abc import ABC, abstractclassmethod, abstractmethod
from huggingface_hub import PyTorchModelHubMixin

import torch as th
import torch.nn as nn
import torch.nn.init as init
from torch.nn.functional import relu
import einops
from warnings import warn
import tempfile


class Dictionary(ABC, nn.Module):
class Dictionary(ABC, nn.Module, PyTorchModelHubMixin):
"""
A dictionary consists of a collection of vectors, an encoder, and a decoder.
"""
Expand Down

0 comments on commit 1f026b9

Please sign in to comment.