Giter Site home page Giter Site logo

parisneo / pygpt4all Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nomic-ai/pygpt4all

0.0 1.0 1.0 1.33 MB

Official supported Python bindings for llama.cpp + gpt4all

Home Page: https://nomic-ai.github.io/pyllamacpp/

License: MIT License

Shell 0.61% C++ 55.28% Python 21.59% C 15.77% Swift 0.02% Nix 0.07% Makefile 0.66% CMake 5.16% Batchfile 0.82% Dockerfile 0.03%

pygpt4all's Introduction

PyGPT4All

Official Python CPU inference for GPT4All language models based on llama.cpp and ggml

License: MIT

NB: Under active development

Installation

pip install pygpt4all

Usage

GPT4All model

Download a GPT4All model from https://the-eye.eu/public/AI/models/nomic-ai/gpt4all/

from pygpt4all.models.gpt4all import GPT4All

def new_text_callback(text):
    print(text, end="")

model = GPT4All('./models/ggml-gpt4all-j.bin')
model.generate("Once upon a time, ", n_predict=55, new_text_callback=new_text_callback)

GPT4All-J model

Download the GPT4All-J model from https://gpt4all.io/models/ggml-gpt4all-j-v1.3-groovy.bin

from pygpt4all.models.gpt4all_j import GPT4All_J

def new_text_callback(text):
    print(text, end="")

model = GPT4All_J('./models/ggml-gpt4all-j.bin')
model.generate("Once upon a time, ", n_predict=55, new_text_callback=new_text_callback)

License

This project is licensed under the MIT License.

pygpt4all's People

Contributors

abdeladim-s avatar andrewmelis avatar bmschmidt avatar deadredmond avatar kasimir123 avatar nuance1979 avatar parisneo avatar rguo123 avatar

Watchers

 avatar

Forkers

metawabbit

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.