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

New Compressed SMODEL format along with visualizer #73

Open
wvabrinskas opened this issue Apr 29, 2024 · 3 comments
Open

New Compressed SMODEL format along with visualizer #73

wvabrinskas opened this issue Apr 29, 2024 · 3 comments

Comments

@wvabrinskas
Copy link
Owner

Create a new compressed form of the smodel format for model exports. Model sizes can quickly get really large. Having a compressed version will allow for larger models to be expressed smaller on disk.

@wvabrinskas
Copy link
Owner Author

Looked into using InputStream with JSONSerialization however it's still allocating a large chunk of memory. Will try breaking the allocations by Layer so the JSON isnt all in memory at once.

@wvabrinskas
Copy link
Owner Author

So it turns out I was encoding the JSON as swift Data object TWICE. causing excess memory allocations.

@wvabrinskas
Copy link
Owner Author

Maybe use some Quantization?

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