bert-classifier

Transformers based NLP classification models


Keywords
chatbot, chatbots, ctransformers, deeplearning, falcon, fine-tuning, gpt-2, langchain, llama2, llms, multi-label-classification, multi-task-learning, nlp, pytorch, qdrant-vector-database, transformers
License
GPL-3.0
Install
pip install bert-classifier==0.1.18

Documentation

PyPI - Package Version MIT License PyPI pyversions Python package Dependency Review

NLP Models

A repository for building transformer based nlp models

Installation

Install from PyPi

pip install nlp-models

Install from source

git clone git@github.com:minggnim/nlp-models.git
pip install -r requirements

Llama2 Quantization model on consumer CPU

Run Chat applications on CPU

  1. Streamlit UI

    cd apps
    streamlit run chat.py
    
  2. Command line

    llm_app chat -s 'hi there'
    

Run Q&A application on CPU

  1. Steamlit UI

    cd apps
    streamlit run qa.py
    

Models

  1. bert_classifier A wrapper package around BERT-based classification models

  2. multi_task_model An implementation of multi-tasking model built on encoder models

  3. GPT-2

  4. Falcon 7B

  5. Quantized Llama2 models