Git Product home page Git Product logo

Comments (13)

G4GUO avatar G4GUO commented on June 3, 2024 3

Screenshot from 2023-04-14 21-39-33

I finally managed to build it, then use the model that came with the install but it seems a bit wonky

from gpt4all-chat.

G4GUO avatar G4GUO commented on June 3, 2024 2

I followed the instructions here
https://github.com/nomic-ai/gpt4all-chat
I installed Qt6 to a local directory on my machine and then in the CMakeLists.txt in the gpt4all-chat git directory I added a line to point to where I had installed Qt6 (see below)
SET(Qt6_DIR "/home/charles/Qt/6.5.0/gcc_64/lib/cmake/Qt6")
I then used the model file that comes with the nomic ai installation program https://gpt4all.io/installers/gpt4all-0.1.0-Linux.run
That was it. Hopefully I have all the right bits !! I think I may have mixed the old GPT-J and the new Chat4all model code though.

from gpt4all-chat.

mofosyne avatar mofosyne commented on June 3, 2024 1

Confirmed working.

Just remember when cloning the repo to also run git submodule update --init --recursive, instructions forgot to mention that.

As for locating your local gcc cmake Qt6 instance just run

locate Qt6 | grep gcc_64/lib/cmake/Qt6 | head -1

This should get you your SET(Qt6_DIR "<Path to local gcc cmake Qt6 instance>") to place on top of your CMakeLists.txt just under cmake_minimum_required(VERSION 3.16).

Now you can run the rest of the build step then... copy over the model and quantize it before running the chat UI

cd gpt4all-chat
mkdir build
cd build
cmake ..
cmake --build . --parallel
cp /opt/gpt4all/bin/ggml-gpt4all-j-v1.2-jazzy.bin ggml-gpt4all-j-v1.2-jazzy.bin
./bin/gpt-j-quantize ggml-gpt4all-j-v1.2-jazzy.bin ./ggml-model-q4_0.bin 2
./chat

Here is the result, looks like I broke the bot's brain somehow lol.

image

Btw is there any GPU acceleration for this?

from gpt4all-chat.

thiagodma avatar thiagodma commented on June 3, 2024

I'm getting similar behaviour:

./chat: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.35' not found (required by ./chat)
./chat: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by ./chat)
./chat: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by ./chat)
./chat: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by ./chat)
./chat: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./chat)
./chat: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./chat)
./chat: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /opt/gpt4all 0.1.0/bin/../lib/libicuuc.so.70)
./chat: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /opt/gpt4all 0.1.0/bin/../lib/libicuuc.so.70)

from gpt4all-chat.

fastrizwaan avatar fastrizwaan commented on June 3, 2024

you could u try this (libs from ubuntu 22.04)
https://github.com/fastrizwaan/gpt4all-libs/releases/tag/0.1.0

from gpt4all-chat.

G4GUO avatar G4GUO commented on June 3, 2024

That clears the GLIBCXX linker errors but not the libc related ones
my libc points to libc-2.31.so

./chat: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by ./chat)

./chat: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./chat)

./chat: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./chat)

from gpt4all-chat.

fastrizwaan avatar fastrizwaan commented on June 3, 2024

I'm not sure whether libc will work, but you can try https://packages.ubuntu.com/jammy/libc6 extracting https://packages.ubuntu.com/jammy/amd64/libc6/download (right click on the mirror link and save as) and open the deb file with file-roller (archive manager) and extract data.tar.zst to lib may work.

image

from gpt4all-chat.

G4GUO avatar G4GUO commented on June 3, 2024

Sadly I just get a core dump. Thanks for your efforts anyhow.

I also tried to build the program from the git repository but I am having issues with Qt6 libraries.

from gpt4all-chat.

fastrizwaan avatar fastrizwaan commented on June 3, 2024

no worries, https://open-assistant.io/ (online) is much better than this not so good gpt4all. If you want offiline, try alpaca-electron https://github.com/ItsPi3141/alpaca-electron/releases/tag/v1.0.5 with ggml*.bin like

gpt4-x-alpaca-13b-native-ggml-q4_0.bin
https://huggingface.co/Pi3141/alpaca-lora-13B-ggml/tree/main

etc.

from gpt4all-chat.

thiagodma avatar thiagodma commented on June 3, 2024

@G4GUO can you share how you managed to build it?

from gpt4all-chat.

thiagodma avatar thiagodma commented on June 3, 2024

Ok! I'll give it a try! Thanks

from gpt4all-chat.

G4GUO avatar G4GUO commented on June 3, 2024

Good luck!

from gpt4all-chat.

manyoso avatar manyoso commented on June 3, 2024

Ubuntu 22.04 is required.

from gpt4all-chat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.