Giter Club home page Giter Club logo

falcon-local-ai-model's Introduction

Article : https://medium.com/@yash9439/introducing-falcon-llm-leading-the-way-in-language-generation-79a73a56dd5


Article : https://medium.com/@yash9439/unleashing-the-power-of-falcon-code-a-comparative-analysis-of-implementation-approaches-803048ce65dc

Installation

To install the required dependencies, run the following command:

!pip install -q transformers einops accelerate langchain bitsandbytes

Falcon Local

This repository contains three versions of the Falcon code, each designed for different use cases. These versions utilize different libraries and models for text generation. Below is a brief description of each version:


Version 1 : Using Transformers only.

File: falcon_local_withoutHuggingFacePipeline.py

This version uses the transformers library and the tiiuae/falcon-7b-instruct model. Its a text-generation model which gives answer for the question asked.


Version 2 : Using Transformers and HuggingFacePipeline only.

File: falcon_local_withHuggingFacePipeline.py

The second version of the Falcon code utilizes the langchain library and the tiiuae/falcon-7b-instruct model. It employs the HuggingFacePipeline class for text generation and generates a response to a given question.


Version 3 : Using HuggingFacePipeline Only.

File: falcon_local_HuggingFaceInferenceAPI.py

In this version, the code incorporates the dotenv, langchain, and textwrap libraries. It uses the HuggingFace model hub and the tiiuae/falcon-7b-instruct model. The code demonstrates a summarization chain for generating responses to questions.


Please refer to the individual code files for more details and instructions on running each version of the Falcon code.


License

This project is licensed under the Apache License 2.0.

falcon-local-ai-model's People

Contributors

yash9439 avatar

Stargazers

Christian Copeland avatar  avatar  avatar Sayo Ogunlegan avatar Vladislav Sorokin 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.