selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

LiquidAI logo

Can the Tesla T4 run d1-2B?

d1-2B·1.9B·Tesla T4·16 GB VRAM

Saved in this browser, used on every model page.
Yes

Yes. The Tesla T4 runs d1-2B fully in VRAM at FP16 / BF16 (about 4.3 GB of 16 GB), at roughly 46 tokens/s.

best quant
FP16 / BF16
needs
4.3 GB
usable
16 GB
est. speed
~46 tok/s

Estimates for an 8K context; offload assumes 32 GB of system RAM.Try other contexts on the d1-2B page →

Every quantisation of d1-2B on the Tesla T4

QuantQualityMemoryFitSpeed
Q2_K Heavy loss1.5 GBfits~279 tok/s
Q3_K_M Noticeable loss1.8 GBfits~188 tok/s
Q4_K_M Small loss1.9 GBfits~151 tok/s
Q5_K_M Near-lossless2.1 GBfits~129 tok/s
Q6_K Near-lossless2.4 GBfits~111 tok/s
Q8_0 Lossless2.7 GBfits~86 tok/s
FP16 / BF16 pickLossless4.3 GBfits~46 tok/s

Speed is a bandwidth-based estimate for generating text (320 GB/s); prompt processing and long contexts are slower.

Measured speed on the Tesla T4

No community reports for this pair yet.

Report your own speed →

Run d1-2B on the Tesla T4

Using FP16 / BF16, the best fit for Tesla T4.

Ollama · From the Ollama librarydocs
ollama run d1:2b

The library build picks its own default quantisation.

Ollama · F16 straight from Hugging Facedocs
ollama run hf.co/LiquidAI/d1-2B-GGUF:F16
llama.cpp · OpenAI-compatible server with a web UIdocs
llama-server -hf LiquidAI/d1-2B-GGUF:F16

Downloads the GGUF on first run. Installed through llama.app? The same flags work with `llama serve`.

LM Studio · Download with the lms CLIdocs
lms get LiquidAI/d1-2B-GGUF@F16

Then load it from the LM Studio app or with `lms load`.

Transformers · Ask about an imagedocs
from transformers import pipeline

pipe = pipeline("image-text-to-text", model="LiquidAI/d1-2B", dtype="auto", device_map="auto")
messages = [
    {
        "role": "user",
        "content": [
            {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/bee.jpg"},
            {"type": "text", "text": "Describe this image."},
        ],
    }
]
out = pipe(text=messages, max_new_tokens=256)
print(out[0]["generated_text"][-1]["content"])

Vision models that fit the Tesla T4 comfortably

All that fit →
ModelParamsBest quantMemorySpeedLicence
LiquidAI logoLFM3-VL-2BLiquidAI
1.9BQ8_0≈2.7 GBFits in memory~86 tok/sConditions
2.3BQ8_0≈2.8 GBFits in memory~73 tok/sCommercial OK
2.1BQ8_0≈3.2 GBFits in memory~78 tok/sCommercial OK
1.6BQ8_0≈1.9 GBFits in memory~107 tok/sCommercial OK
1.3BQ8_0≈1.7 GBFits in memory~127 tok/sCommercial OK
2.2BQ8_0≈2.6 GBFits in memory~74 tok/sCommercial OK

Other GPUs that run d1-2B

Frequently asked questions

Can the Tesla T4 run d1-2B?
Yes. The Tesla T4 runs d1-2B fully in VRAM at FP16 / BF16 (about 4.3 GB of 16 GB), at roughly 46 tokens/s.
How fast does d1-2B run on the Tesla T4?
An estimate from memory bandwidth gives about 46 tokens/s at FP16 / BF16.
Which quantisation of d1-2B should I use on the Tesla T4?
FP16 / BF16: the largest one that fits. Expected quality: lossless compared with the full-precision weights.

Memory and speed are estimates from the model's size and the card's memory bandwidth; real numbers depend on the runtime, drivers and context length. Community figures are medians of user reports.