Giter Site home page Giter Site logo

shubhamsupekar / blog-generation-webapp Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 36.95 MB

Python 81.27% Shell 0.04% Batchfile 0.01% HTML 0.22% CSS 0.01% PowerShell 0.03% Perl 0.07% C 9.40% C++ 0.24% DTrace 0.01% Tcl 7.99% Makefile 0.21% GLSL 0.01% C# 0.03% GSC 0.48%

blog-generation-webapp's Introduction

Welcome to Blog Generation WebApp ๐Ÿค–

1 Introduction:

This web application utilizes Llama 2, an open-source Large Language Model (LLM) developed by Meta for generating blog content across different fields such as data science, research, and general interest topics. In this project, a compressed version of the Llama 2 model is employed to accommodate lower GPU specifications on my laptop. The specific pretrained model file used can be found at llama-2-7b.ggmlv3.q8_0.bin.

This model is a quantized version of the Llama 2 7B generative text model, created by Meta and converted by TheBloke. It uses the GGML format, which is a compressed format for CPU and GPU inference using llama.cpp and other compatible libraries and UIs. The model has 8-bit quantization, meaning it maintains nearly the same accuracy as the original float16 model but is smaller in size and faster to load. However, it also incurs higher resource usage and slower inference than lower-bit quantized models. The model is suitable for various text generation tasks, such as writing stories, poems, essays, code, etc., using prompts or templates.

1.1 what is Llama 2 ?

Llama 2 is a family of large language models (LLMs) developed and released by Meta, a company formerly known as Facebook. Llama 2 models are trained on a large corpus of public data and can generate natural language for various tasks and applications. Some of the Llama 2 models are also fine-tuned for dialogue using human feedback, making them more engaging and helpful for chatbot users. Llama 2

2 How to run Blog Generation WebApp:

Download pretrained Llama 2 GGM model from here. After downloading model file place into folder name "Model" Clone project:

git clone https://github.com/ShubhamSupekar/Blog-Generation-WebApp.git

Deactivate the default environment:

conda deactivate
Need help with Conda installation? You can find guidance at click here

Create new environment:

conda create -p venv python==3.9 --y

Activate new "venv" environment:

conda activate venv/

The "requirements.txt" file contains the names of all the libraries needed for this project. Installing all the libraries from requirements.txt file

pip install -r .\requirement.txt

now to run the WebApp:

streamlit run app.py

blog-generation-webapp's People

Contributors

shubhamsupekar avatar

Watchers

 avatar

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.