Skip to content

TypeError - Read only flag not supported - converttopytorch.py #5

@gbrackenridge

Description

@gbrackenridge

I am struggling to get converttotorch.py running properly. I keep throwing a TypeError as show below. Looks like there was some noise in git over in the numpy code repo. Any ideas? Thanks in advance!


loading shards for part 0
read from checkpoint
< (8, 4096) to (4096,)

transformer.wte.bias torch.Size([4096])
< (8, 6300, 4096) to (1, 50400, 4096)
transformer.wte.weight torch.Size([4096, 50400])
< (8, 4096, 512) to (1, 4096, 4096)
Traceback (most recent call last):
File "/data/models/model38/gpt-j-6B/converttotorch.py", line 147, in
params = torch.tensor(params.copy()).half()
TypeError: the read only flag is not supported, should always be False

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions