Views
No views yet
| Property | Value |
|---|---|
| Base Model | meta-llama/Llama-3.1-8B-Instruct |
| Architecture | Llama 3.1 Dense Decoder-only Transformer |
| Parameters | 8B |
| Context Length | 128,000 tokens |
| Languages | EN, DE, FR, IT, PT, HI, ES, TH (8 languages) |
| Quantization | TevunahAi Ultra-Hybrid GPTQ + EoRA |
| Original Size | ~16 GB (BF16) |
| Quantized Size | ~6-7 GB |
| Compression | ~60% reduction |
| Active VRAM | ~7.08 GB (with inference overhead) |
| License | Llama 3.1 Community License |
| Component | Precision | EoRA Rank | Rationale |
|---|---|---|---|
| Layer 0 (all projections) | INT8 | 2048 | Maximum error correction at input - errors propagate through entire model |
| Layer 31 (all projections) | INT8 | 2048 | Maximum error correction at output - directly affects token prediction |
| Attention Q/K/V/O (layers 1-30) | INT8 | 128 | Quality preservation for attention |
| MLP gate/up/down (layers 1-24) | INT4 | 128 | Maximum compression in middle layers |
| MLP gate/up/down (layers 25-30) | INT8 | 128 | Higher precision near output |
| Embeddings | BF16 | - | Preserved for 128K vocab accuracy |
| LM Head | BF16 | - | Preserved for output quality |
| Test | Result | Speed | Details |
|---|---|---|---|
| Basic Instruction | ✅ PASS | 37.4 tok/s | Clear, helpful response |
| Reasoning | ✅ PASS | 37.1 tok/s | Sheep puzzle - correct answer (9) |
| Code Generation | ✅ PASS | 42.1 tok/s | Palindrome - 4/4 elements |
| German | ✅ PASS | 38.7 tok/s | 7/7 German indicators |
| French | ✅ PASS | 48.6 tok/s | 7/7 French indicators |
| Spanish | ✅ PASS | 42.6 tok/s | 7/8 Spanish indicators |
| Summarization | ✅ PASS | 46.9 tok/s | 4/4 key terms |
| Creative Writing | ✅ PASS | 47.2 tok/s | Valid haiku structure |
| Task | Score | Metric | Stderr |
|---|---|---|---|
| Winogrande | 76.00% | acc | ±4.29% |
| HellaSwag | 67.00% | acc_norm | ±4.73% |
| TruthfulQA MC2 | 51.94% | acc | ±4.15% |
| ARC-Challenge | 50.00% | acc_norm | ±5.03% |
| Metric | Value |
|---|---|
| VRAM Usage | 7.08 GB |
| Generation Speed | 37-48 tok/s |
| Load Time | ~36 seconds |
| Tests Passed | 8/8 |
Künstliche Intelligenz (KI) ist eine Disziplin, die sich mit der Entwicklung
von Computerprogrammen beschäftigt, die Fähigkeiten wie Lernen, Problemlösung,
Entscheidungsfindung und Kommunikation aufweisen...La Tour Eiffel est un monument emblématique de Paris, construit pour
l'Exposition Universelle de 1889 et conçu par les ingénieurs Gustave Eiffel
et Maurice Koechlin...Hacer ejercicio regularmente ofrece una variedad de beneficios para la salud
física y mental...1from gptqmodel import GPTQModel
2from transformers import AutoTokenizer
3
4model = GPTQModel.from_quantized(
5 "TevunahAi/Llama-3.1-8B-Instruct-TevunahAi-GPTQ",
6 device_map="auto",
7 trust_remote_code=True,
8)
9tokenizer = AutoTokenizer.from_pretrained(
10 "TevunahAi/Llama-3.1-8B-Instruct-TevunahAi-GPTQ",
11 trust_remote_code=True
12)
13
14messages = [
15 {"role": "system", "content": "You are a helpful assistant."},
16 {"role": "user", "content": "Explain quantum computing in simple terms."},
17]
18
19text = tokenizer.apply_chat_template(
20 messages,
21 tokenize=False,
22 add_generation_prompt=True,
23)
24inputs = tokenizer([text], return_tensors="pt").to(model.device)
25
26outputs = model.generate(
27 **inputs,
28 max_new_tokens=512,
29 temperature=0.7,
30 top_p=0.9,
31 do_sample=True,
32)
33print(tokenizer.decode(outputs[0], skip_special_tokens=True))1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained(
4 "TevunahAi/Llama-3.1-8B-Instruct-TevunahAi-GPTQ",
5 device_map="auto",
6 trust_remote_code=True
7)
8tokenizer = AutoTokenizer.from_pretrained(
9 "TevunahAi/Llama-3.1-8B-Instruct-TevunahAi-GPTQ",
10 trust_remote_code=True
11)
12
13# Use same generation code as above1pip install -U vllm
2
3vllm serve TevunahAi/Llama-3.1-8B-Instruct-TevunahAi-GPTQ \
4 --max-model-len 8192 \
5 --trust-remote-codepip install gptqmodel transformers>=4.48| Language | Code | Quality |
|---|---|---|
| English | EN | ⭐⭐⭐⭐⭐ |
| German | DE | ⭐⭐⭐⭐⭐ |
| French | FR | ⭐⭐⭐⭐⭐ |
| Italian | IT | ⭐⭐⭐⭐ |
| Portuguese | PT | ⭐⭐⭐⭐ |
| Hindi | HI | ⭐⭐⭐⭐ |
| Spanish | ES | ⭐⭐⭐⭐⭐ |
| Thai | TH | ⭐⭐⭐⭐ |
1# German
2messages = [{"role": "user", "content": "Erkläre mir künstliche Intelligenz."}]
3
4# French
5messages = [{"role": "user", "content": "Décrivez la Tour Eiffel."}]
6
7# Spanish
8messages = [{"role": "user", "content": "¿Cuáles son los beneficios del ejercicio?"}]fix_mistral_regex=True when loading tokenizer| Context Length | VRAM Required |
|---|---|
| Short (4K) | 7-8 GB |
| Medium (16K) | 10-12 GB |
| Long (32K) | 14-16 GB |
| Extended (64K) | 20-24 GB |
| Full (128K) | 32+ GB |
| Specification | Value |
|---|---|
| Method | GPTQ + Ultra-Hybrid + EoRA |
| Quantizer | GPTQModel |
| EoRA Boundary Rank | 2048 (layers 0 & 31) |
| EoRA Standard Rank | 128 (layers 1-30) |
| Calibration Samples | 2,048 (8x industry standard) |
| Sequence Length | 4,096 tokens |
| Group Size | 128 |
| desc_act | False |
| sym | True (symmetric quantization) |
| Bits (default) | 4 |
| Layer Rules | 224 custom precision rules |
| Specification | Value |
|---|---|
| Model Family | Meta Llama 3.1 |
| Variant | 8B-Instruct |
| Total Parameters | 8B |
| Total Layers | 32 |
| Hidden Size | 4,096 |
| Intermediate Size | 14,336 |
| Attention Heads | 32 |
| KV Heads | 8 (GQA) |
| Activation | SiLU (Swish) |
| Normalization | RMSNorm |
| Position Encoding | RoPE (theta=500000) |
| Context Length | 128,000 |
| Vocab Size | 128,256 |
| Training Tokens | 15T+ |
| Languages | 8 |
| Post-training | SFT + RLHF |
1@software{llama31_8b_gptq_2025,
2 title = {Meta Llama-3.1-8B-Instruct - TevunahAi Ultra-Hybrid GPTQ with EoRA},
3 author = {TevunahAi},
4 year = {2025},
5 note = {Ultra-Hybrid GPTQ with EoRA-2048 boundary layers for maximum quality retention},
6 url = {https://huggingface.co/TevunahAi/Llama-3.1-8B-Instruct-TevunahAi-GPTQ}
7}
8
9@misc{llama31_2024,
10 title = {The Llama 3 Herd of Models},
11 author = {Meta AI},
12 year = {2024},
13 url = {https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct}
14}