[EN/PL] How to make own local GPT4all in 5 minute without any skills! Jak postawić na własnym komputerze ChatBota/GPT4all bez żadnych umiejętności!

in #polish2 years ago (edited)

 thumb

[ENGLISH] - Język polski poniżej!

To start with, I will write that if you don't know Git or Python, you can scroll down a bit and use the version with the installer, so this article is for everyone!

Today we will be using Python, so it's a chance to learn something new. I don't know if it's just my opinion or if many people think that it's one of the three most commonly used programming languages nowadays, for me it's PHP, JavaScript, and Python.

To the point! It's impossible to ignore artificial intelligence algorithms and not hear about ChatGPT. But what if I told you that you can have your own ChatGPT on your local computer without any limitations?

Running your own bot will require basic knowledge of Git, using the console and editor, and having Python installed. However, by reading this tutorial, you should be able to manage with just having Python installed.

Git: https://git-scm.com/

Python: https://www.python.org/

Read more: https://hive.blog/polish/@chainableit/en-pl-introduction-to-python-installation-of-the-environment-wstep-do-pythona-instalacja-srodowiska

0 Chapter for more advanced users

0.0 We navigate to the directory where we want to create the project and open the console, or we launch the console (use whatever you want, you can use the console built into Visual Studio Code) and use the command:

0.1 We download the necessary package from the repository using the command (it may take a while):

0.2 Now, using Python, we can carry out local projects using AI.

PS. If you don't know Python yet, don't worry. I will introduce it to you a little more in future tutorials.

I Chapter for less advanced but curious users.

Alternative version without Git and Python.

1 We download the ready-made installer using the same GitHub repository. https://github.com/nomic-ai/gpt4all . Scrolling down the page a bit, we will find... "GPT4All-J Chat UI Installers" where we will see the installers. MAC/OSX, Windows and Ubuntu. Sure, I can provide the next steps for the Windows installer

Skróty: MAC/OSX https://gpt4all.io/installers/gpt4all-installer-darwin.dmg

Windows https://gpt4all.io/installers/gpt4all-installer-win64.exe

Ubuntu https://gpt4all.io/installers/gpt4all-installer-linux.run

  1. Run the installer and click "Next"
  2. Choose the installation location and click "Next"
  3. Accept the terms and click "Next"
  4. "Next"
  5. Click "Install" (this will take some time and requires several GB of space)
  6. After installation, click "Finish".
  7. Press the Win key and type GPT, then launch the GPT4ALL application.

The bot "converses" in English, although in my case it seems to understand Polish as well. It is trained on a smaller amount of data, but it can be further developed and certainly opens the way to exploring this topic.

With properly formulated questions, it can write code, poetry, or stories no worse than GPT 3.5 Turbo.

In the next tutorials, I will try to explain the topic of machine learning and write some code that will learn something.

[POLISH]

Na wstępie napiszę, że jeśli nie znasz gita, czy Pythona to możesz przewinąć nieco dalej i wykorzystać wersję z instalatorem, także jest to artykuł dla każdego!

Dzisiaj będziemy używali Pythona więc jest okazja nauczyć się czegoś innego, nie wiem czy tylko moim czy zdaniem wielu jest to 1 z 3 obecnie najczęściej używanych języków programowania, dla mnie PHP,JavaScript to święta trójca.

Do rzeczy! Nie sposób przejść obojętnym obok algorytmów sztucznej inteligencji i nie usłyszeć o ChatGPT. A co gdybym wam powiedział, że można mieć własnego ChataGPT na komputerze lokalnym bez żadnych ograniczeń?

Uruchomienie własnego bota będzie wymagało, podstawowej wiedzy na temat git'a, posługiwania się konsolą oraz edytorem, zainstalowanego Pythona choć czytając ten tutorial wystarczy mieć to po prostu zainstalowane i z resztą powinniście sobie poradzić.

Gita znajdziesz tutaj: https://git-scm.com/

Python: https://www.python.org/

Więcej o instalacji pythona: https://hive.blog/polish/@chainableit/en-pl-introduction-to-python-installation-of-the-environment-wstep-do-pythona-instalacja-srodowiska

0 Rodział dla bardziej zaawansowanych

0.0. Przechodzimy do katalogu w którym chcemy stworzyć projekt, i uruchamiamy konsolę, lub uruchamiamy konsolę (używaj czego chcesz, możesz użyć konsoli wbudowanej w Visual Studio Code) i używamy komendy:

0.1. Pobieramy niezbędną paczkę z repozytorium używając komendy (może to chwilę potrwać):

0.2. Teraz korzystając z Pythona możemy realizować lokalne projekty z użyciem AI.

PS. Jeśli nie znasz jeszcze Pythona nic straconego, w przyszłych tutorialach nieco go wam przybliżę.

I Rozdział dla mniej zaawansowanych ciekawskich.

Wersja alternatywna bez Gita i Pythona.

  1. Pobieramy gotowy instalator korzystając z tego samego repozytorium githuba https://github.com/nomic-ai/gpt4all . Przewijając stronę nieco w dół znajdziemy "GPT4All-J Chat UI Installers" gdzie ujrzymy instalatory MAC/OSX, Windowsa i Ubuntu. Ja przedstawię dalsze kroki na instalatorze Windowsa.

Skróty: MAC/OSX https://gpt4all.io/installers/gpt4all-installer-darwin.dmg

Windows https://gpt4all.io/installers/gpt4all-installer-win64.exe

Ubuntu https://gpt4all.io/installers/gpt4all-installer-linux.run

  1. Uruchamiamy instalator i klikamy "Dalej"
  2. Wybieramy lokalizację instalacji i klikamy "Dalej"
  3. Akceptujemy regulamin i "Dalej"
  4. "Dalej"
  5. "Zainstaluj" (zajmie to trochę czasu i wymaga kilka GB miejsca)
  6. Po zainstalowaniu , klikamy zakończ.
  7. Klikamy klawisz Win i wpisujemy GPT, odpalamy aplikację GPT4ALL

Bot "rozmawia" w języku angielskim choć sprawia wrażenie jakby rozumiał też polski. Jest wyuczony na mniejszej ilości danych, jednak może się rozwinąć i z pewnością otwiera drogę do eksploracji tego tematu.

Przy odpowiednim sformułowaniu pytań, potrafi napisać kod, wiersz czy opowiadania nie gorzej niż GPT 3.5Turbo

W kolejnych tutorialach postaram się przybliżyć temat uczenia maszynowego i napiszemy jakiś kod, który będzie się czegoś uczył.

Sort:  


The rewards earned on this comment will go directly to the people( @polish.hive ) sharing the post on Twitter as long as they are registered with @poshtoken. Sign up at https://hiveposh.com.