LLaVA VS llamafile

Compare LLaVA vs llamafile and see what are their differences.

LLaVA

[NeurIPS'23 Oral] Visual Instruction Tuning (LLaVA) built towards GPT-4V level capabilities and beyond. (by haotian-liu)

llamafile

Distribute and run LLMs with a single file. (by Mozilla-Ocho)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
LLaVA llamafile
20 34
16,101 13,765
- 30.3%
9.4 9.6
6 days ago 5 days ago
Python C++
Apache License 2.0 GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

LLaVA

Posts with mentions or reviews of LLaVA. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-10.
  • Show HN: I Remade the Fake Google Gemini Demo, Except Using GPT-4 and It's Real
    4 projects | news.ycombinator.com | 10 Dec 2023
    Update: For anyone else facing the commercial use question on LLaVA - it is licensed under Apache 2.0. Can be used commercially with attribution: https://github.com/haotian-liu/LLaVA/blob/main/LICENSE
  • Image-to-Caption Generator
    3 projects | /r/computervision | 7 Dec 2023
    https://github.com/haotian-liu/LLaVA (fairly established and well supported)
  • Llamafile lets you distribute and run LLMs with a single file
    12 projects | news.ycombinator.com | 29 Nov 2023
    That's not a llamafile thing, that's a llava-v1.5-7b-q4 thing - you're running the LLaVA 1.5 model at a 7 billion parameter size further quantized to 4 bits (the q4).

    GPT4-Vision is running a MUCH larger model than the tiny 7B 4GB LLaVA file in this example.

    LLaVA have a 13B model available which might do better, though there's no chance it will be anywhere near as good as GPT-4 Vision. https://github.com/haotian-liu/LLaVA/blob/main/docs/MODEL_ZO...

  • FLaNK Stack Weekly for 27 November 2023
    28 projects | dev.to | 27 Nov 2023
  • Using GPT-4 Vision with Vimium to browse the web
    9 projects | news.ycombinator.com | 8 Nov 2023
    There are open source models such as https://github.com/THUDM/CogVLM and https://github.com/haotian-liu/LLaVA.
  • Is supervised learning dead for computer vision?
    9 projects | news.ycombinator.com | 28 Oct 2023
    Hey Everyone,

    I’ve been diving deep into the world of computer vision recently, and I’ve gotta say, things are getting pretty exciting! I stumbled upon this vision-language model called LLaVA (https://github.com/haotian-liu/LLaVA), and it’s been nothing short of impressive.

    In the past, if you wanted to teach a model to recognize the color of your car in an image, you’d have to go through the tedious process of training it from scratch. But now, with models like LLaVA, all you need to do is prompt it with a question like “What’s the color of the car?” and bam – you get your answer, zero-shot style.

    It’s kind of like what we’ve seen in the NLP world. People aren’t training language models from the ground up anymore; they’re taking pre-trained models and fine-tuning them for their specific needs. And it looks like we’re headed in the same direction with computer vision.

    Imagine being able to extract insights from images with just a simple text prompt. Need to step it up a notch? A bit of fine-tuning can do wonders, and from my experiments, it can even outperform models trained from scratch. It’s like getting the best of both worlds!

    But here’s the real kicker: these foundational models, thanks to their extensive training on massive datasets, have an incredible grasp of image representations. This means you can fine-tune them with just a handful of examples, saving you the trouble of collecting thousands of images. Indeed, they can even learn with a single example (https://www.fast.ai/posts/2023-09-04-learning-jumps)

  • Adept Open Sources 8B Multimodal Modal
    6 projects | news.ycombinator.com | 18 Oct 2023
    Fuyu is not open source. At best, it is source-available. It's also not the only one.

    A few other multimodal models that you can run locally include IDEFICS[0][1], LLaVA[2], and CogVLM[3]. I believe all of these have better licenses than Fuyu.

    [0]: https://huggingface.co/blog/idefics

    [1]: https://huggingface.co/HuggingFaceM4/idefics-80b-instruct

    [2]: https://github.com/haotian-liu/LLaVA

    [3]: https://github.com/THUDM/CogVLM

  • AI — weekly megathread!
    2 projects | /r/artificial | 15 Oct 2023
    Researchers released LLaVA-1.5. LLaVA (Large Language and Vision Assistant) is an open-source large multimodal model that combines a vision encoder and Vicuna for general-purpose visual and language understanding. LLaVA-1.5 achieved SoTA on 11 benchmarks, with just simple modifications to the original LLaVA and completed training in ~1 day on a single 8-A100 node [Demo | Paper | GitHub].
  • LLaVA: Visual Instruction Tuning: Large Language-and-Vision Assistant
    1 project | news.ycombinator.com | 11 Oct 2023
  • LLaVA gguf/ggml version
    1 project | /r/LocalLLaMA | 19 Sep 2023
    Hi all, I’m wondering if there is a version of LLaVA https://github.com/haotian-liu/LLaVA that works with gguf and ggml models?? I know there is one for miniGPT4 but it just doesn’t seem as reliable as LLaVA but you need at least 24gb of vRAM for LLaVA to run it locally by the looks of it. The 4bit version still requires 12gb vram.

llamafile

Posts with mentions or reviews of llamafile. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-09.
  • llamafile v0.8
    1 project | news.ycombinator.com | 24 Apr 2024
  • Mistral AI Launches New 8x22B Moe Model
    4 projects | news.ycombinator.com | 9 Apr 2024
    I think the llamafile[0] system works the best. Binary works on the command line or launches a mini webserver. Llamafile offers builds of Mixtral-8x7B-Instruct, so presumably they may package this one up as well (potentially a quantized format).

    You would have to confirm with someone deeper in the ecosystem, but I think you should be able to run this new model as is against a llamafile?

    [0] https://github.com/Mozilla-Ocho/llamafile

  • Apple Explores Home Robotics as Potential 'Next Big Thing'
    3 projects | news.ycombinator.com | 4 Apr 2024
    Thermostats: https://www.sinopetech.com/en/products/thermostat/

    I haven't tried running a local text-to-speech engine backed by an LLM to control Home Assistant. Maybe someone is working on this already?

    TTS: https://github.com/SYSTRAN/faster-whisper

    LLM: https://github.com/Mozilla-Ocho/llamafile/releases

    LLM: https://huggingface.co/TheBloke/Nous-Hermes-2-Mixtral-8x7B-D...

    It would take some tweaking to get the voice commands working correctly.

  • LLaMA Now Goes Faster on CPUs
    16 projects | news.ycombinator.com | 31 Mar 2024
    While I did not succeed in making the matmul code from https://github.com/Mozilla-Ocho/llamafile/blob/main/llamafil... work in isolation, I compared eigen, openblas, and mkl: https://gist.github.com/Dobiasd/e664c681c4a7933ef5d2df7caa87...

    In this (very primitive!) benchmark, MKL was a bit better than eigen (~10%) on my machine (i5-6600).

    Since the article https://justine.lol/matmul/ compared the new kernels with MLK, we can (by transitivity) compare the new kernels with Eigen this way, at least very roughly for this one use-case.

  • Llamafile 0.7 Brings AVX-512 Support: 10x Faster Prompt Eval Times for AMD Zen 4
    3 projects | news.ycombinator.com | 31 Mar 2024
    Yes, they're just ZIP files that also happen to be actually portable executables.

    https://github.com/Mozilla-Ocho/llamafile?tab=readme-ov-file...

  • Show HN: I made an app to use local AI as daily driver
    31 projects | news.ycombinator.com | 27 Feb 2024
    have you seen llamafile[0]?

    [0] https://github.com/Mozilla-Ocho/llamafile

  • FLaNK Stack 26 February 2024
    50 projects | dev.to | 26 Feb 2024
  • Gemma.cpp: lightweight, standalone C++ inference engine for Gemma models
    7 projects | news.ycombinator.com | 23 Feb 2024
    llama.cpp has integrated gemma support. So you can use llamafile for this. It is a standalone executable that is portable across most popular OSes.

    https://github.com/Mozilla-Ocho/llamafile/releases

    So, download the executable from the releases page under assets. You want either just main or just server. Don't get the huge ones with the model inlined in the file. The executable is about 30MB in size,

    https://github.com/Mozilla-Ocho/llamafile/releases/download/...

  • Ollama releases OpenAI API compatibility
    12 projects | news.ycombinator.com | 8 Feb 2024
    The improvements in ease of use for locally hosting LLMs over the last few months have been amazing. I was ranting about how easy https://github.com/Mozilla-Ocho/llamafile is just a few hours ago [1]. Now I'm torn as to which one to use :)

    1: Quite literally hours ago: https://euri.ca/blog/2024-llm-self-hosting-is-easy-now/

  • Localllm lets you develop gen AI apps on local CPUs
    7 projects | news.ycombinator.com | 7 Feb 2024
    Slightly off topic, here is the best local llama.cpp wrapper I've run into:

    https://github.com/Mozilla-Ocho/llamafile

    You can download any .gguf model (not just the ones in their examples) and run it locally (as long as you have the ram for it). I was running 7B models with ease on an old FX8350 and now 13B models on a 5600X (32GB RAM on both machines).

    This wrapper spins up a local web server that runs a simple web frontend to use immediately with no code, but also exposes an OpenAI compatible API for dev work and alt frontends (like SillyTavern).

What are some alternatives?

When comparing LLaVA and llamafile you can also consider the following projects:

MiniGPT-4 - Open-sourced codes for MiniGPT-4 and MiniGPT-v2 (https://minigpt-4.github.io, https://minigpt-v2.github.io/)

ollama - Get up and running with Llama 3, Mistral, Gemma, and other large language models.

CogVLM - a state-of-the-art-level open visual language model | 多模态预训练模型

ollama-webui - ChatGPT-Style WebUI for LLMs (Formerly Ollama WebUI) [Moved to: https://github.com/open-webui/open-webui]

FastChat - An open platform for training, serving, and evaluating large language models. Release repo for Vicuna and Chatbot Arena.

langchain - 🦜🔗 Build context-aware reasoning applications

mPLUG-Owl - mPLUG-Owl & mPLUG-Owl2: Modularized Multimodal Large Language Model

llama.cpp - LLM inference in C/C++

chatgpt-web - ChatGPT web interface using the OpenAI API

image2dsl - This repository contains the implementation of an Image to DSL (Domain Specific Language) model. The model uses a pre-trained Vision Transformer (ViT) as an encoder to extract image features and a custom Transformer Decoder to generate DSL code from the extracted features.

safetensors - Simple, safe way to store and distribute tensors