--- license: other license_name: llama-1-research-and-apache-2.0-components license_link: https://github.com/facebookresearch/llama/blob/llama_v1/LICENSE base_model: - Vision-CAIR/vicuna-7b - Vision-CAIR/MiniGPT-4 tags: - minigpt4 - vicuna - gguf - onnx - webgpu - wllama - onnxruntime-web pipeline_tag: image-text-to-text --- # MiniGPT-4 (7B, Vicuna v0) for the browser Weights for the [MiniGPT4-WebGPU Space](https://huggingface.co/spaces/WeReCooking/MiniGPT4-WebGPU). Nothing here is retrained: it is the original April 2023 MiniGPT-4 (frozen EVA ViT-G, frozen BLIP-2 Q-Former, one trained linear projection, Vicuna v0), converted. | file | what | |---|---| | `vision/vision_q8b64.onnx` + `.data` | EVA ViT-G (39 blocks) + `ln_vision` + Q-Former (32 queries) + `llama_proj`, image `[1,3,224,224]` to embeddings `[1,32,4096]`. Weight-only 8-bit (`MatMulNBits`, block 64) of the fp32 export; cosine 0.99996 against PyTorch. | | `vicuna-7b-v0-q4_0-embf16.gguf` | `Vision-CAIR/vicuna-7b` as Q4_0 GGUF, **token embeddings kept in F16** so the page can overwrite 32 rows (`<0x80>`..`<0x9F>`, ids 131..162) with image embeddings before loading. | | `config.json` | byte offset of the embedding table and the reserved ids. | Sources: `lainxx/eva_vit_g` (EVA ViT-G), the LAVIS BLIP-2 checkpoint (Q-Former), `ckpt/minigpt4-7B` (projection), `Vision-CAIR/vicuna-7b` (language model). Vicuna v0 derives from LLaMA-1 weights, so the language model keeps the LLaMA-1 non-commercial research terms; the vision parts keep their own licences (BSD-3 for BLIP-2/LAVIS, MIT for EVA-CLIP, BSD-3 for MiniGPT-4).