OneInterface/realtime-bakllava
소개
llama.cpp와 BakLLaVA 모델을 사용해 보이는 내용을 설명합니다.
AI 및 머신러닝측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original🍰 Bakllava Llama C++ Tutorial 🦙
Welcome to the delicious world of Bakllava Llama with C++! Follow these steps to get your code running and indulge in AI sweetness! 😋
🚨 Properly tested only with Apple silicon chip
similar relevant project: Be My Eyes" web app
🚀 Step 1: Install Llama C++
First things first, let's get the Llama C++ installed.
🔗 Clone the repository from GitHub:
git clone https://github.com/ggerganov/llama.cpp
cd llama.cpp
On Linux & macOS:
🛠 Build with make:
make
🏗 Or, if you prefer cmake:
cmake --build . --config Release
📦 Step 2: Download the Model!
- 📥 Download from Hugging Face - mys/ggml_bakllava-1 this 2 files:
- 🌟 ggml-model-q4_k.gguf (or any other quantized model) - only one is required!
- 🧊 mmproj-model-f16.gguf
✂️ Copy the paths of those 2 files.
🏃♂️ Run this in the llama.cpp repository (replace YOUR_PATH with the paths to the files you downloaded):
macOS
./server -m YOUR_PATH/ggml-model-q4_k.gguf --mmproj YOUR_PATH/mmproj-model-f16.gguf -ngl 1Windows
server.exe -m REPLACE_WITH_YOUR_PATH\ggml-model-q4_k.gguf --mmproj REPLACE_WITH_YOUR_PATH\mmproj-model-f16.gguf -ngl 1🎉 The llama server is now up and running!
⚠️ NOTE: Keep the server running in the background.
📹 Let's run the script to use the webcam or send it a single picture!
🏃♀️ Step 3: Running the Demo
Open a new terminal window and clone the demo app:
git clone https://github.com/Fuzzy-Search/realtime-bakllava.git
cd realtime-bakllava
🛠 (Optional) Create a new Python virtual environment and activate it
python3 -m venv bakllava-venv
source bakllava-venv/bin/activate
pip3 install -r requirements.txt
🎥 Webcam Script
To start streaming from your webcam:
! if you have problem with FFMPEG lib, download the source code and in file src/video_stream.py modify second line of code
python3 src/video_stream.py
🖼 Simple Picture Drop
pip install -r picture_requirements.txt
python src/picture_drop.py --path src/sample_pic.png
📝 Enjoy your adventure with Llama C++! 🚀🦙
Star History
관련 프로젝트 살펴보기
불러오는 중…