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

unexpected keyword argument 'learned_mem_model_weights' #14

Closed
ExploringAI opened this issue Jan 24, 2025 · 1 comment
Closed

unexpected keyword argument 'learned_mem_model_weights' #14

ExploringAI opened this issue Jan 24, 2025 · 1 comment

Comments

@ExploringAI
Copy link

Thank you for reverse engineering this paper. When I tried to run python train_mac.py I got the following error:

Traceback (most recent call last):
  File "/content/titans-pytorch/train_mac.py", line 75, in <module>
    model = MemoryAsContextTransformer(
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/content/titans-pytorch/titans_pytorch/mac_transformer.py", line 543, in __init__
    mem = NeuralMemory(
          ^^^^^^^^^^^^^
TypeError: NeuralMemory.__init__() got an unexpected keyword argument 'learned_mem_model_weights'

I fixed it by commenting 'learned_mem_model_weights = LEARNED_MEM_MODEL_WEIGHTS,' out of:

neural_memory_kwargs = dict(
        dim_head = 64,
        heads = 4,
        attn_pool_chunks = STORE_ATTN_POOL_CHUNKS,
        momentum = NEURAL_MEM_MOMENTUM,
        use_accelerated_scan = USE_ACCELERATED_SCAN,
        learned_mem_model_weights = LEARNED_MEM_MODEL_WEIGHTS,
        default_model_kwargs = dict(
            depth = NEURAL_MEMORY_DEPTH,
        )

Not sure if it is important.

Thanks.

lucidrains added a commit that referenced this issue Jan 24, 2025
@lucidrains
Copy link
Owner

@ExploringAI yea it has been removed, my bad

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

2 participants