Downloads Β· 30 days
0
OpenTrouter/Trouter-20b
Trouter-20b is a text generation model from OpenTrouter. Use it when you need the model to write or continue text. It is set up for adapter-transformers. The card lists the license as apache-2.0.
Downloads Β· 30 days
0
Access
Public
Updated Nov 2, 2025
Repo size
910 MB
Likes
1
Public
Click a slice to open those files.
.safetensors910 MB Β· 100%
From the Hugging Face model README
A powerful 20 billion parameter language model for advanced natural language processing
π€ Model Card | π Documentation
</div>Trouter-20B is a state-of-the-art decoder-only transformer language model with 20 billion parameters. Designed for versatility and performance, it excels at a wide range of natural language understanding and generation tasks including reasoning, question answering, creative writing, code generation, and conversational AI.
pip install transformers>=4.38.0 torch>=2.0.0 accelerate bitsandbytes
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
# Load model and tokenizer
model_id = "Trouter-Library/Trouter-20B"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto"
)
# Generate text
prompt = "Explain the concept of neural networks:"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=256, temperature=0.7)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
from transformers import BitsAndBytesConfig
# Configure 4-bit quantization
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype=torch.bfloat16
)
model = AutoModelForCausalLM.from_pretrained(
model_id,
quantization_config=bnb_config,
device_map="auto"
)
For more detailed usage examples, see the Usage Guide.
| Specification | Value |
|---|---|
| Parameters | 20 billion |
| Architecture | Decoder-only Transformer |
| Layers | 48 |
| Hidden Size | 5120 |
| Attention Heads | 40 (8 KV heads with GQA) |
| Context Length | 4096 tokens |
| Vocabulary Size | 32,000 tokens |
| Activation | SiLU (Swish) |
| Positional Encoding | RoPE (Rotary Position Embedding) |
| Normalization | RMSNorm |
| Precision | BFloat16 |
| Benchmark | Score | Notes |
|---|---|---|
| MMLU (5-shot) | TBD | Multitask Language Understanding |
| HellaSwag | TBD | Commonsense Reasoning |
| TruthfulQA | TBD | Truthfulness & Accuracy |
| HumanEval | TBD | Code Generation |
| GSM8K | TBD | Mathematical Reasoning |
| BBH | TBD | Big Bench Hard |
Benchmarks to be updated after comprehensive evaluation
| Configuration | Tokens/Second | Memory Usage |
|---|---|---|
| BF16 (A100 80GB) | ~XX tokens/s | ~40GB |
| 8-bit (A100 40GB) | ~XX tokens/s | ~20GB |
| 4-bit (RTX 4090) | ~XX tokens/s | ~10GB |
device_map="auto"Trouter-20B was trained on a diverse corpus of high-quality text data including:
Total Training Tokens: [Specify total tokens] Data Mix: [Provide breakdown of data sources] Cutoff Date: January 2025
Causal language modeling with next-token prediction using cross-entropy loss.
Like all large language models, Trouter-20B may exhibit biases including:
Mitigation Efforts: We encourage users to:
Trouter-20B is released under the Apache 2.0 License. You are free to:
β
Use commercially
β
Modify and distribute
β
Use privately
β
Use for patent purposes
See LICENSE file for full terms.
If you use Trouter-20B in your research or applications, please cite:
@software{trouter20b2025,
title={Trouter-20B: A 20 Billion Parameter Language Model},
author={Trouter-Library},
year={2025},
month={10},
url={https://huggingface.co/Trouter-Library/Trouter-20B},
version={1.0},
license={Apache-2.0}
}
We thank the open-source community and the following projects that made this work possible:
Built with β€οΈ for the AI community
</div>