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

Free Colab #12

Open
rarhs opened this issue May 22, 2024 · 2 comments
Open

Free Colab #12

rarhs opened this issue May 22, 2024 · 2 comments

Comments

@rarhs
Copy link

rarhs commented May 22, 2024

Can't run on free colab due to not having adequate RAM.

@AbnerAI
Copy link

AbnerAI commented May 22, 2024

How much CPU/GPU resoures are required?

@wdndev
Copy link

wdndev commented May 25, 2024

Hello, I have an idea.

Because the model is loaded by the CPU, I am using my notebook (16G RAM) running and cannot load the Llama3-8B model.

So, I took the first two Transformers layers from the 32-layers architecture of the Llama3-8B model to form a new model. This can be run in a notebook with 16G RAM, occupying about 4~5G RAM, but the final decoding result is wrong, and the middle result is all correct.

You can try it with this model.

and the colab link, it can run directly:

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

3 participants