Yes, you can use two RTX 3080 GPUs to run LLaVA and Mistral multimodal models, but how well it works depends on your setup and usage strategy.
Key points for using 2x RTX 3080 (10GB or 12GB VRAM each) with LLaVA + Mistral:
1. VRAM Considerations
RTX 3080 typically has 10GB or 12GB VRAM (depending on model).
LLaVA-3-7B (vision + 7B LLM) quantized to 4-bit can fit comfortably in ~6-7GB VRAM.
Mistral 7B (text-only) quantized 4-bit also fits in ~5-6GB VRAM.
So each model fits on a single 3080 GPU with some VRAM headroom.
2. Multi-GPU Usage Strategies
A. Run LLaVA on GPU 0 and Mistral on GPU 1 (Parallel Inference) — Recommended
Assign LLaVA (vision + LLM) to GPU 0.
Assign Mistral (text generation) to GPU 1.
This way, each GPU runs independently, no PCIe bottleneck.
Use environment variables or device mapping in your code to assign models to specific GPUs.
Example:
bash
# Terminal 1: Run LLaVA on GPU 0
CUDA_VISIBLE_DEVICES=0 python run_llava.py
# Terminal 2: Run Mistral on GPU 1
CUDA_VISIBLE_DEVICES=1 python run_mistral.py
B. Model Parallelism (Splitting a single large model across GPUs)
Possible but not recommended for 2x 3080s because:
PCIe 3.0 x16 bandwidth (~16 GB/s) is slower than PCIe 4.0 or 5.0.
Communication overhead between GPUs will slow down inference.
Complex to set up and tune.
Better suited for servers with NVLink or PCIe 4.0/5.0 x16 slots on both GPUs.
3. Software Support
Use Hugging Face Transformers + Accelerate for easy multi-GPU model loading.
Use AutoGPTQ or AWQ quantization for 4-bit models to fit in VRAM.
Use PyTorch device_map or CUDA_VISIBLE_DEVICES to assign models to GPUs.
For vision + language multimodal models like LLaVA, ensure you load the vision encoder and LLM on the same GPU to avoid cross-GPU communication overhead.
4. Practical Tips
Monitor VRAM usage with nvidia-smi to avoid out-of-memory errors.
Use batch sizes and context lengths that fit comfortably in 10-12GB VRAM.
If you want to run both models in the same script, explicitly assign devices:
For inference pipelines, keep data transfer between GPUs minimal.
Summary
Setup
Feasibility
Performance
Complexity
LLaVA on GPU0 + Mistral on GPU1 (parallel)
✅ Easy & efficient
High
Low
Model parallelism (split one model across GPUs)
Possible but not ideal
Slower due to PCIe bottleneck
High
Bottom line:
Yes, 2x RTX 3080 GPUs are great for running LLaVA and Mistral simultaneously, each on its own GPU. This is the simplest and most performant approach for your use case.
If you want, I can help you with example code to set this up!
User
how about a single 10gb 3080
Assistant
Using a single RTX 3080 with 10GB VRAM for running LLaVA 3 7B and Mistral 7B models is definitely possible, but you’ll need to carefully manage VRAM and workload because 10GB is somewhat tight for both models simultaneously.
What to expect with a single 10GB RTX 3080:
1. VRAM Constraints
LLaVA 3 7B (vision + LLM) typically requires around 6-7GB VRAM when quantized to 4-bit.
Mistral 7B (text-only) requires about 5-6GB VRAM at 4-bit quantization.
Combined, they exceed 10GB VRAM if loaded simultaneously.
2. Possible Approaches
A. Run models sequentially, not simultaneously
Load LLaVA when you need vision + language tasks.
Unload LLaVA, then load Mistral for pure text generation.
This requires model loading/unloading overhead but fits VRAM limits.
B. Use smaller or more optimized models
Use LLaVA 3 7B with aggressive quantization (e.g., 4-bit AWQ or GPTQ).
Use a smaller variant of Mistral or a lighter LLM (e.g., 3B or distilled models).
This reduces VRAM footprint.
C. Offload some layers to CPU RAM
Use frameworks like llama.cpp or vLLM with CPU offloading.
Slower inference but allows running bigger models on limited VRAM.
3. Practical Tips
Use 4-bit quantization for both models.
Limit context length (e.g., 2048 tokens instead of 8192).
Use batch size = 1 for inference.
Monitor VRAM with nvidia-smi and adjust accordingly.
Consider loading only the vision encoder or LLM part of LLaVA if you only need one modality at a time.
4. Summary
Scenario
Feasible?
Notes
Run LLaVA 3 7B alone
Yes
Fits with 4-bit quantization
Run Mistral 7B alone
Yes
Fits with 4-bit quantization
Run both simultaneously
No
VRAM exceeds 10GB
Run both sequentially
Yes
Model load/unload overhead
Use smaller models or offloading
Yes
Slower but fits VRAM
Bottom line:
A single 10GB RTX 3080 can run either LLaVA 3 7B or Mistral 7B comfortably with quantization, but not both at the same time. For multitasking, you’ll need to load/unload models or use smaller models/offloading.
If you want, I can help you with example code for sequential loading or offloading!