Skip to content

Explore the power of Gemma model with GemGPT, a project leveraging AI for innovative solutions. Join us in shaping the future of AI!

License

Notifications You must be signed in to change notification settings

muhammad-fiaz/GemGPT

Repository files navigation

GemGPT is a project that leverages the Gemma model published by Google to create powerful natural language processing applications using the GPT architecture. This repository contains the codebase for GemGPT, which aims to provide a user-friendly interface for fine-tuning the Gemma model for 2b and 7b variants.

Don't forget to star ⭐ if you find GemGPT useful! and fork 🍴 the repository to contribute it ❤️

Table of Contents

Features

  • Utilizes the Gemma model for natural language processing tasks.
  • Provides an easy-to-use interface for integrating Gemma with AI applications.
  • Offers advanced features for text generation, sentiment analysis, and more.

Setup

To use a model from Hugging Face Hub, you need to first install the transformers library and then use the CLI to log in to the Hugging Face Hub.

Install the transformers library:

pip install transformers

Login to the Hugging Face Hub using the CLI:

transformers-cli login

After that, you need to auth using your login token. for more info checkout:- https://huggingface.co/docs/huggingface_hub/quick-start

Getting Started

To get started with GemGPT, clone the repository and follow the setup instructions in the documentation.

git clone https://github.com/muhammad-fiaz/gemgpt.git

Navigate to the project directory and install the required dependencies:

    cd gemgpt
    pip install -r requirements.txt

Run the application using the following command:

    python launch.py

To use GemGpt on Colab or Jupyter Notebook, you can use the following code:

!git clone https://github.com/muhammad-fiaz/gemgpt.git
!python -m pip install -r requirements.txt
!python launch.py --share

You can try out a demo of GemGPT on Hugging Face Spaces, but for optimal performance, we recommend running it locally with a CPU or GPU.

Hugging Face Spaces Demo

Technology Stack

GemGPT is built using the following technologies:

  • Python: Programming language used for the core implementation.
  • PyTorch: Deep learning framework used for training and inference.
  • Gradio: Web-based UI library used for creating the user interface.
  • Transformers: Library used for working with pre-trained language models.
  • Hugging Face: Platform used for sharing and downloading pre-trained models.
  • Logly: Logging library used for tracking and monitoring the application.

Contributing

We welcome contributions from the community to improve GemGPT. If you're interested in contributing, please read our contributing guidelines.

CODE OF CONDUCT

We expect contributors to adhere to the GemGPT code of conduct. Please read the code of conduct before contributing.

Support

If you have any questions or need help with GemGPT, please reach out to us via the issue tracker.

Support the Project by Becoming a Sponsor on GitHub

Sponsor muhammad-fiaz

Acknowledgements

GemGPT is built on top of the Gemma model published by Google. We would like to thank the authors of the Gemma model for their work and for making it available as open-source.

License

GemGPT is licensed under the Apache License 2.0. See the LICENSE file for more details.

@software{Muhammad_Fiaz_GemGPT_2024,
  author = {{Muhammad Fiaz}},
  license = {Apache-2.0},
  month = mar,
  title = {{GemGPT}},
  url = {https://github.com/muhammad-fiaz/GemGPT},
  version = {0.0.0},
  year = {2024}
}