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

torch model to ggml #149

Open
sadik-abd opened this issue May 11, 2023 · 4 comments
Open

torch model to ggml #149

sadik-abd opened this issue May 11, 2023 · 4 comments

Comments

@sadik-abd
Copy link

sadik-abd commented May 11, 2023

Is there any way or guide to convert models like LayoutLM, RoBERTa, T5, etc. and as well as my own torch models to ggml.

@redthing1
Copy link

There's bert.cpp if you want to run BERT models. But everything has architecture specifics so you have to wait for someone to write a layer/inference implementation. It's actually quite complicated and unfortunately undocumented.

@sadik-abd
Copy link
Author

I want to implement my custom models with ggml so that I can use that in c++. how can I do that is there any documentation for ggml and how can I use that

@redthing1
Copy link

No, there is no "documentation", the closest thing is just the GGML examples. They are not really simple.

@appvoid
Copy link
Contributor

appvoid commented May 27, 2023

I don't have access to gpt-4 but if there is someone who have access to the 32k version (or maybe 8k) and try to make the model infer the common steps in converting the architecture and abstracting them in such a way that a person should only check which layers to convert, that would be amazing.

Because I don't mind converting and supporting models like the upcoming falcon.cpp, what I do mind however is that this library is an important step into democratizing access to everyone! And it doesn't has a proper documentation. This project is getting bigger, @ggerganov we need your help here. I'm not a C++ expert but I'm willing to help if we somehow we manage to make this more "general".

CCLDArjun pushed a commit to CCLDArjun/ggml that referenced this issue Dec 18, 2023
* fixed color reset on exit

* added sigint handler for ansi_color_reset

* Update main.cpp

---------

Co-authored-by: Georgi Gerganov <[email protected]>
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