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

make: *** No rule to make target 'gpt-2'. Stop. #666

Closed
sanliuyi901 opened this issue Dec 24, 2023 · 2 comments · Fixed by #671 or #692
Closed

make: *** No rule to make target 'gpt-2'. Stop. #666

sanliuyi901 opened this issue Dec 24, 2023 · 2 comments · Fixed by #671 or #692

Comments

@sanliuyi901
Copy link

make: *** No rule to make target 'gpt-2'. Stop.
why

@astariul
Copy link
Contributor

For context :

When running the GPT inference example, from the README, at the step make -j4 gpt-2 gpt-j, we get the following error :

make: *** No rule to make target `gpt-2'.  Stop.

Any idea how to fix this ?

@slaren
Copy link
Collaborator

slaren commented Dec 28, 2023

The gpt-2 example has been modified since that document was written, and currently that are multiple versions of it, meant to show how to use different features of ggml. The names of the targets are gpt-2-ctx, gpt-2-alloc, gpt-2-backend and gpt-2-backend2. You can use any of these instead.

Despite what the README says, the gpt-2-backend version supports full GPU offloading, and the gpt-2-backend2 version supports partial offloading, ie. running a part of the model in the GPU and the rest on the CPU, similar to llama.cpp.

This is still an issue, we need to update the documentation, and possibly make one of these the default gpt-2 target.

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

Successfully merging a pull request may close this issue.

3 participants