Model reference · open weights

Colossal-LLaMA-2

LLMs hpcai-tech Text gen 1 build Open, with conditions 128 dl/mo

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.

  • Colossal-LLaMA-2-7b-base is an open-source text generation model developed by hpcai-tech as a derivation of LLaMA-2.
  • It supports Chinese and English with a context window of 4096 tokens and utilizes an extended vocabulary of 69,104 tokens.
  • The model was continually pre-trained on approximately 8.5 billion tokens and is licensed under the LLaMA-2 license and Apache 2.0 License.

Summary of the hpcai-tech/Colossal-LLaMA-2-7b-base model card, 2026-10-01

What it is

Released byhpcai-tech
Released2023-09-18
VRAM14.1 GB for the weights

What it runs on

Memory and cards for Colossal-LLaMA-2-7b-base (BF16)

14.1 GBweights, file size
524 MBcache per 1K tokens
658 MBruntime overhead, at least
4,096 tokenscontext max
CardRequests at onceContext maxMemory
4K each
RTX 3060 12 GB——11.6 GB
RTX 4060 Ti 16 GB—1K15.4 GB
RTX 3090 24 GB4all 4K23.4 GB
RTX 4090 24 GB4all 4K23.4 GB
RTX 5090 32 GB7all 4K31.0 GB
L40S 48 GB13all 4K44.0 GB
A100 80 GB29all 4K78.2 GB
H100 80 GB27all 4K78.1 GB
RTX PRO 6000 Blackwell 96 GB35all 4K93.8 GB
DGX Spark (GB10) 128 GB unified41all 4K107 GB
H200 141 GB55all 4K138 GB
B200 180 GB73all 4K176 GB
2× RTX 3060 12 GB
tensor parallel
3all 4K11.6 GB a card
2× RTX 4060 Ti 16 GB
tensor parallel
7all 4K15.4 GB a card
2× RTX 4090 24 GB
tensor parallel
14all 4K23.4 GB a card
2× RTX 3090 24 GB
tensor parallel
14all 4K23.4 GB a card
2× RTX 5090 32 GB
tensor parallel
21all 4K31.0 GB a card
Memory needed at each load
Requests at once4K tokens each
116.9 GB
525.5 GB
831.9 GB
1649.1 GB
3283.5 GB
64152 GB

One card, with vLLM's small-card settings.

From the model card

What hpcai-tech says about Colossal-LLaMA-2

Read the model card

Colossal-LLaMA-2-7B

🎉 We released Colossal-LLaMA-2-7B-base based on LLaMA-2 !!

|🔥 GitHub |

Table of Contents

Model Introduction

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.

Usage

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):])

Performance Evaluation

Performance Evaluation

We conducted comprehensive evaluation on 4 datasets and compare our Colossal-Llama-2-7b-base model with various models.

  • We use 5-shot for MMLU and calculate scores based on the logits of first predicted token.
  • We use 5-shot for CMMLU and calculate scores based on the logits of first predicted token.
  • We use 5-shot for AGIEval and only calculate scores for 4-choice questions using a combination metric of exact match and the logits of first predicted token. If any of the exact match or logits of first predicted token is correct, the model will get the score.
  • We use 0-shot for GAOKAO-Bench and only calculate scores for 4-choice questions based on the logits of first predicted token.
  • The generation config for all dataset is greedy search.
  • We also provided CEval scores from its latest leaderboard or the official repository of the model.

More details about metrics can be found in Metrics.

BackboneTokens ConsumedMMLUCMMLUAGIEvalGAOKAOCEval
--5-shot5-shot5-shot0-shot5-shot
Baichuan-7B-1.2T42.32 (42.30)44.53 (44.02)38.7236.7442.80
Baichuan2-7B-Base-2.6T46.97 (54.16)57.67 (57.07)45.7652.6054.00
ChatGLM-6B-1.0T39.67 (40.63)41.17 (-)40.1036.5338.90
ChatGLM2-6B-1.4T44.74 (45.46)49.40 (-)46.3645.4951.70
InternLM-7B--46.70 (51.00)52.00 (-)44.7761.6452.80
Qwen-7B (original)-2.2T54.29 (56.70)56.03 (58.80)52.4756.4259.60
Qwen-7B-2.4T58.33 (58.20)62.54 (62.20)64.3474.0563.50
Llama-2-7B-2.0T44.47 (45.30)32.97 (-)32.6025.46-
Linly-AI/Chinese-LLaMA-2-7B-hfLlama-2-7B1.0T37.4329.9232.0027.57-
wenge-research/yayi-7b-llama2Llama-2-7B-38.5631.5230.9925.95-
ziqingyang/chinese-llama-2-7bLlama-2-7B-33.8634.6934.5225.1834.2
TigerResearch/tigerbot-7b-baseLlama-2-7B0.3T43.7342.0437.6430.61-
LinkSoul/Chinese-Llama-2-7bLlama-2-7B-

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms