Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bhimrazy/chat-with-phi-3-vision

Chat with Phi-3-vision-128k-instruct
https://github.com/bhimrazy/chat-with-phi-3-vision

chat-application huggingface litserve phi-3-vision streamlit

Last synced: about 18 hours ago
JSON representation

Chat with Phi-3-vision-128k-instruct

Awesome Lists containing this project

README

        





Chat with Phi 3.5/3 Vision LLMs



Open In Studio

## Overview

[**Phi-3.5-vision**](https://huggingface.co/microsoft/Phi-3.5-vision-instruct) is a lightweight, state-of-the-art open multimodal model built upon datasets which include - synthetic data and filtered publicly available websites - with a focus on very high-quality, reasoning dense data both on text and vision.

This model enables multi-frame image understanding, image comparison, multi-image summarization/storytelling, and video summarization, which have broad applications in office scenarios.

## Getting Started

Follow these steps to set up and run the project:

### 1. Install Dependencies

i. **Download and Install NVIDIA CUDA**
Visit the [NVIDIA CUDA Toolkit Downloads page](https://developer.nvidia.com/cuda-downloads) and follow the instructions to install CUDA compatible with your system.

ii. **Install Required Python Packages**
Ensure you have all the necessary dependencies installed by running the following commands:

```bash
pip install -r requirements.txt
pip install flash_attn
```

If you encounter any issues while installing `flash_attn`, refer to the [FlashAttention Installation Guide](https://github.com/Dao-AILab/flash-attention?tab=readme-ov-file#installation-and-features) for troubleshooting tips and additional setup details.

### 2. Start the API Server

Launch the API server powered by [LitServe](https://github.com/Lightning-AI/LitServe):

```bash
python server.py
```

### 3. Launch the Streamlit App

Start the Streamlit application with the following command:

```bash
streamlit run app.py
```

## About

This project is developed and maintained with ❤️ by [Bhimraj Yadav](https://github.com/bhimrazy).