BA

baichuan2 7b base

BaichuanGGUF by shaowenchenUpdated 2023-09-16
Download on Hugging Face
Parameters7.51B
Context4K
Layers32
Architecturellama
Smallest quant3.3 GB
Quick answer

baichuan2 7b base needs about 9.6 GB of memory at Q4_1 (a 4.8 GB file) with an 8K context window, so it fits on a 12 GB GPU. This repository has 15 quants, from 3.3 GB (Q2_K) to 15.0 GB.

Baichuan2 7B Base – 7.51B parameter LLaMA‑style model

Baichuan2 7B Base is a 7.51 billion parameter LLaMA‑compatible model. It supports a 4096 token context window and is available in multiple GGUF quantizations. The model is released under an other license.

Good at

  • Large context handling
  • Low‑precision inference
  • Cross‑language text generation

Limits

  • No vision support
  • License not specified
  • Requires 8 k context for memory estimates

Best for

  • Chatbot back‑ends
  • Text summarization
  • Code generation

Who it’s for. Developers needing a lightweight LLaMA‑compatible model for local deployment. Suitable for users with limited GPU memory who can choose an appropriate quantization.

Quants & memory

QuantFileEst. memoryvs VRAMResultDownload
Q2_K3.3 GB 5.9 GB
Fits Get file →
Q3_K_S3.4 GB 6.1 GB
Fits Get file →
Q3_K3.8 GB 6.4 GB
Fits Get file →
Q3_K_L4.1 GB 6.7 GB
Fits Get file →
Q4_04.4 GB 7.0 GB
Fits Get file →
Q4_K_S4.4 GB 7.0 GB
Fits Get file →
Q4_K4.6 GB 7.3 GB
Tight Get file →
Q4_14.8 GB 7.4 GB
Tight Get file →
Q5_05.2 GB 7.9 GB
Tight Get file →
Q5_K_S5.2 GB 7.9 GB
Tight Get file →
Q5_K5.4 GB 8.0 GB
Too big Get file →
Q5_15.7 GB 8.3 GB
Too big Get file →
Q6_K6.2 GB 8.8 GB
Too big Get file →
Q8_08.0 GB 10.6 GB
Too big Get file →
—15.0 GB 17.7 GB
Too big Get file →

For 8 GB VRAM, use Q4_0 or Q4_K_S (≈9.2 GB memory). For 12 GB VRAM, Q6_K (≈11 GB) or Q8_0 (≈12.8 GB) are suitable. Higher precision models need more memory.

What GPU do you need for baichuan2 7b base?

These figures add the file size, an fp16 KV cache at an 8K context window (worked out from this model’s own header) and about 0.5 GB for the runtime. They are estimates, so leave a little headroom, and expect to use less context or a smaller quant if you are right at the limit.

  • 4 GB VRAM: no quant fits at an 8K context.
  • 6 GB VRAM: no quant fits at an 8K context.
  • 8 GB VRAM: no quant fits at an 8K context.
  • 12 GB VRAM: the best quant that fits is Q6_K (6.2 GB file, about 11.0 GB in use).
  • 16 GB VRAM: the best quant that fits is Q8_0 (8.0 GB file, about 12.8 GB in use).
  • 24 GB VRAM: the best quant that fits is the main file (15.0 GB file, about 19.8 GB in use).

Which baichuan2 7b base quant should you choose?

Q4_1 (4.8 GB) is the middle option in this repository. The usual sweet spot between file size and quality, and the quant most people start with.

If memory is tight, the smallest file is Q2_K at 3.3 GB, with the quality trade-offs that come with fewer bits. Use it only when memory is very tight. Expect a clear drop in quality, which is usually worse on small models and easier to live with on large ones.

New to quant names? Read GGUF quantization explained.

Specifications

Architecture from the GGUF header

Architecturellama
Parameters7.51B
Layers32
Trained context4,096 tokens
KV cache (fp16)512 KB per token

Source

Quantized byshaowenchen
FamilyBaichuan
Licenseother
Downloads (HF)583
Last updated2023-09-16

Frequently asked questions about baichuan2 7b base

How much VRAM does baichuan2 7b base need?

About 9.6 GB at Q4_1 with an 8K context window. That is the 4.8 GB file, plus the KV cache and roughly 0.5 GB of runtime overhead. Smaller quants need less and longer context needs more.

Can I run baichuan2 7b base on an 8 GB GPU?

Not at an 8K context. The smallest file needs about 8.1 GB, so you would need a larger GPU or CPU offloading.

What is the file size of baichuan2 7b base GGUF?

It depends on the quant: Q2_K is 3.3 GB, Q3_K_S is 3.4 GB, Q3_K is 3.8 GB, Q3_K_L is 4.1 GB, Q4_0 is 4.4 GB, Q4_K_S is 4.4 GB and 9 more.

What context length does baichuan2 7b base support?

The GGUF header lists a trained context length of 4,096 tokens (4K). The KV cache grows with the context you use: about 4.3 GB at 8K and 2.1 GB at 4K.

Where can I download baichuan2 7b base GGUF?

The files are on Hugging Face in the shaowenchen/baichuan2-7b-base-gguf repository. The download buttons on this page open the file on Hugging Face. ggufmodels.com does not host any model files.

What license does baichuan2 7b base use?

Hugging Face lists the license as other. Licenses can differ between the quantized files and the original model, so check the repository and the base model before commercial use.

Can I run Baichuan2 7B Base on 8 GB VRAM?

Yes, using Q4_0 or Q4_K_S quantizations, which require about 9.2 GB of VRAM at 8 k context.

What is the maximum context length?

The model supports a 4096 token context window.

Is the model multilingual?

The model’s language support is not specified in the provided data.

Similar models

Browse all →

More from shaowenchen

All by shaowenchen →

More Baichuan models

All Baichuan →

Other small models

All small models →