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

OSError: [Errno 22] Invalid argument: 'preference_seq.memmap.npy' #30

Open
Oloup opened this issue Apr 10, 2024 · 0 comments
Open

OSError: [Errno 22] Invalid argument: 'preference_seq.memmap.npy' #30

Oloup opened this issue Apr 10, 2024 · 0 comments

Comments

@Oloup
Copy link

Oloup commented Apr 10, 2024

I 'm trying to run usage, I got this error:

Traceback (most recent call last):
  File "C:\Users\User\Desktop\self-rewarding-lm-pytorch\usage.py", line 31, in <module>
    trainer = SelfRewardingTrainer(
  File "<@beartype(self_rewarding_lm_pytorch.self_rewarding_lm_pytorch.SelfRewardingTrainer.__init__) at 0x1f18b06a8b0>", line 186, in __init__
  File "C:\Users\User\AppData\Roaming\Python\Python39\site-packages\self_rewarding_lm_pytorch\self_rewarding_lm_pytorch.py", line 807, in __init__
    self_reward_dataset_generator = DPODatasetGenerator(
  File "<@beartype(self_rewarding_lm_pytorch.self_rewarding_lm_pytorch.DPODatasetGenerator.__init__) at 0x1f18b04f670>", line 490, in __init__
  File "C:\Users\User\AppData\Roaming\Python\Python39\site-packages\self_rewarding_lm_pytorch\self_rewarding_lm_pytorch.py", line 477, in __init__
    self.preference_seq_memmap = open_memmap(str(self.preference_seq_memmap_path), dtype = 'int', mode = 'w+', shape = memmap_shape)
  File "C:\ProgramData\Anaconda3\lib\site-packages\numpy\lib\format.py", line 911, in open_memmap
    with open(os_fspath(filename), mode+'b') as fp:
OSError: [Errno 22] Invalid argument: 'preference_seq.memmap.npy'

could somebody help me with this? thanks!

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