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

Use mmap for loading models #7

Open
snunez1 opened this issue Oct 9, 2024 · 0 comments
Open

Use mmap for loading models #7

snunez1 opened this issue Oct 9, 2024 · 0 comments

Comments

@snunez1
Copy link
Owner

snunez1 commented Oct 9, 2024

The system currently loads the entire model into memory, which limits the size to available RAM. By using mmap we can load larger models. This is also a good chance to rework read-checkpoint, which is written using binary-types. In hindsight, binary-types wasn't a good choice for loading checkpoints because there is a lot of variability in the binary format. See make-vocabulary for an example of using mmap.

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