Город МОСКОВСКИЙ
00:01:23

How to install GPT4All for Python - Locally - Linux

Аватар
Программирование Взлёт
Просмотры:
26
Дата загрузки:
02.12.2023 07:11
Длительность:
00:01:23
Категория:
Технологии и интернет

Описание

? GPT4all ? :Python GPT4all
? documentation: https://docs.gpt4all.io/index.html

In this short tutorial I will show you how you can install GPT4All locally on your linux machine. We will use python package manager: pip | to install GPT4All.
Make sure pip is installed and python3 of course.

0) pip install nomic (not sure if it's still needed)
1) pip install gpt4all
2) Create a new python file like gpt.py
3) Paste in this code

from gpt4all import GPT4All
model = GPT4All("orca-mini-3b.ggmlv3.q4_0.bin")
output = model.generate("The capital of France is ", max_tokens=3)
print(output)

4) run the script with python3 gpt.py


#python #gpt4all #offlinegpt #localgpt #ai

Рекомендуемые видео