Model reference · open weights
Colossal-LLaMA-2 is an open-weight language model from hpcai-tech. Colossal-LLaMA-2-7b-base (BF16) weighs 14.1 GB; the smallest configuration that runs it is 2× RTX 3060 12 GB.
Summary of the hpcai-tech/Colossal-LLaMA-2-7b-base model card, 2026-10-01
What it is
| Released by | hpcai-tech |
|---|---|
| Released | 2023-09-18 |
| VRAM | 14.1 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory |
|---|---|---|---|
| 4K each | |||
| RTX 3060 12 GB | — | — | 11.6 GB |
| RTX 4060 Ti 16 GB | — | 1K | 15.4 GB |
| RTX 3090 24 GB | 4 | all 4K | 23.4 GB |
| RTX 4090 24 GB | 4 | all 4K | 23.4 GB |
| RTX 5090 32 GB | 7 | all 4K | 31.0 GB |
| L40S 48 GB | 13 | all 4K | 44.0 GB |
| A100 80 GB | 29 | all 4K | 78.2 GB |
| H100 80 GB | 27 | all 4K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 35 | all 4K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 41 | all 4K | 107 GB |
| H200 141 GB | 55 | all 4K | 138 GB |
| B200 180 GB | 73 | all 4K | 176 GB |
| 2× RTX 3060 12 GB tensor parallel | 3 | all 4K | 11.6 GB a card |
| 2× RTX 4060 Ti 16 GB tensor parallel | 7 | all 4K | 15.4 GB a card |
| 2× RTX 4090 24 GB tensor parallel | 14 | all 4K | 23.4 GB a card |
| 2× RTX 3090 24 GB tensor parallel | 14 | all 4K | 23.4 GB a card |
| 2× RTX 5090 32 GB tensor parallel | 21 | all 4K | 31.0 GB a card |
| Requests at once | 4K tokens each |
|---|---|
| 1 | 16.9 GB |
| 5 | 25.5 GB |
| 8 | 31.9 GB |
| 16 | 49.1 GB |
| 32 | 83.5 GB |
| 64 | 152 GB |
One card, with vLLM's small-card settings.
From the model card
Colossal-LLaMA-2-7B
🎉 We released Colossal-LLaMA-2-7B-base based on LLaMA-2 !!
|🔥 GitHub |
The Colossal-AI team has introduced the open-source model Colossal-LLaMA-2-7B-base. This model, a derivation of LLaMA-2, has undergone continual pre-training involving approximately 8.5 billion tokens over a duration of 15 hours with 64 A800 GPUs. At a cost of less than $1,000, you can achieve results similar to those that cost millions of dollars to pretrain from scratch. It is licensed under the LLaMA-2 license and Apache 2.0 License without any additional commercial use restrictions. This solution can also be used to build models of specific domain knowledge or tasks.
Colossal-LLaMA-2-7B-base is designed to accommodate both the Chinese and English languages, featuring an expansive context window spanning 4096 tokens. Remarkably, it has exhibited exceptional performance when benchmarked against models of equivalent scale in standard Chinese and English evaluation metrics, including C-Eval and MMLU, among others.
To load Colossal-LLaMA-2-7B-base model using Transformers, use the following code:
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("hpcai-tech/Colossal-LLaMA-2-7b-base", device_map="auto", trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained("hpcai-tech/Colossal-LLaMA-2-7b-base", trust_remote_code=True)
input = "明月松间照,\n\n->\n\n"
inputs = tokenizer(input, return_tensors='pt')
inputs = inputs.to('cuda:0')
pred = model.generate(**inputs,
max_new_tokens=512,
do_sample=True,
temperature=0.3,
top_k=50,
top_p=0.95,
num_return_sequences=1)
print(tokenizer.decode(pred.cpu()[0], skip_special_tokens=True)[len(input):])
We conducted comprehensive evaluation on 4 datasets and compare our Colossal-Llama-2-7b-base model with various models.
More details about metrics can be found in Metrics.
| Backbone | Tokens Consumed | MMLU | CMMLU | AGIEval | GAOKAO | CEval | ||
|---|---|---|---|---|---|---|---|---|
| - | - | 5-shot | 5-shot | 5-shot | 0-shot | 5-shot | ||
| Baichuan-7B | - | 1.2T | 42.32 (42.30) | 44.53 (44.02) | 38.72 | 36.74 | 42.80 | |
| Baichuan2-7B-Base | - | 2.6T | 46.97 (54.16) | 57.67 (57.07) | 45.76 | 52.60 | 54.00 | |
| ChatGLM-6B | - | 1.0T | 39.67 (40.63) | 41.17 (-) | 40.10 | 36.53 | 38.90 | |
| ChatGLM2-6B | - | 1.4T | 44.74 (45.46) | 49.40 (-) | 46.36 | 45.49 | 51.70 | |
| InternLM-7B | - | - | 46.70 (51.00) | 52.00 (-) | 44.77 | 61.64 | 52.80 | |
| Qwen-7B (original) | - | 2.2T | 54.29 (56.70) | 56.03 (58.80) | 52.47 | 56.42 | 59.60 | |
| Qwen-7B | - | 2.4T | 58.33 (58.20) | 62.54 (62.20) | 64.34 | 74.05 | 63.50 | |
| Llama-2-7B | - | 2.0T | 44.47 (45.30) | 32.97 (-) | 32.60 | 25.46 | - | |
| Linly-AI/Chinese-LLaMA-2-7B-hf | Llama-2-7B | 1.0T | 37.43 | 29.92 | 32.00 | 27.57 | - | |
| wenge-research/yayi-7b-llama2 | Llama-2-7B | - | 38.56 | 31.52 | 30.99 | 25.95 | - | |
| ziqingyang/chinese-llama-2-7b | Llama-2-7B | - | 33.86 | 34.69 | 34.52 | 25.18 | 34.2 | |
| TigerResearch/tigerbot-7b-base | Llama-2-7B | 0.3T | 43.73 | 42.04 | 37.64 | 30.61 | - | |
| LinkSoul/Chinese-Llama-2-7b | Llama-2-7B | - |
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.