Downloads · 30 days
2.3K
20% of all-time downloads
latam-gpt/Wayra-Perplexity-Estimator-55M
Wayra-Perplexity-Estimator-55M is a text classification model from latam-gpt. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
A100-optimized TensorRT version of WayraPPL for high-throughput prediction of Perplexity.
Downloads · 30 days
2.3K
20% of all-time downloads
All-time downloads
11.6K
Public
Parameters
55.4M
1 GB on disk
Likes
23
Public
Click a slice to open those files.
.gguf678 MB · 66%
From the Hugging Face model README
A100-optimized TensorRT version of WayraPPL for high-throughput prediction of Perplexity.

This model works on NVIDIA A100 GPUs with:

| Version | Throughput | Latency | Memory | Use Case |
|---|---|---|---|---|
| TensorRT (A100) | ~50,000/sec | <1ms | 2GB | Production inference |
| PyTorch Standard | ~1,000/sec | 10ms | 4GB | Research & development |
# Install requirements (A100 + CUDA 12.8+ required)
pip install -r tensorrt_requirements.txt
# Verify TensorRT installation
python -c "import tensorrt; print(tensorrt.__version__)" # Should be 10.13.x
from tensorrt_inference import WayraPPLTensorRT
from transformers import AutoTokenizer
# Load TensorRT model (A100 required)
model = WayraPPLTensorRT("wayrappl_fp16_bs2048.engine")
tokenizer = AutoTokenizer.from_pretrained("latam-gpt/Wayra-Perplexity-Estimator-55M")
# Multilingual examples
texts = [
# Spanish
"La inteligencia artificial está transformando el mundo.",
# Portuguese
"A tecnologia blockchain promete revolucionar sistemas financeiros.",
# English
"Natural language processing enables human-computer communication."
]
inputs = tokenizer(texts, return_tensors="pt", padding=True, truncation=True)
outputs = model.infer(inputs['input_ids'].numpy(), inputs['attention_mask'].numpy())
for i, text in enumerate(texts):
print(f"Text: {text}")
print(f"Perplexity: {outputs['ppl'][i]:.2f}\n")
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("latam-gpt/Wayra-Perplexity-Estimator-55M")
model = AutoModel.from_pretrained("latam-gpt/Wayra-Perplexity-Estimator-55M")
texts = ["Your text here"]
inputs = tokenizer(texts, return_tensors="pt", padding=True, truncation=True)
outputs = model(**inputs)
print(f"PPL: {outputs['ppl']}")
# TensorRT: ~2 hours for 100,000 examples
# PyTorch: ~28 hours for 100,000 examples
# Speedup: 14x faster with TensorRT
wayrappl_fp16_bs2048.engine - TensorRT engine (A100 only)tensorrt_config.json - Engine configurationtensorrt_inference.py - Inference code with multilingual examplestensorrt_requirements.txt - Dependenciespytorch_model.bin - Model weightsconfig.json - Model configurationtokenizer.json - Tokenizer
The A100-optimized engine includes advanced optimizations:
Layer Fusion:
Memory Optimizations:
Graph Optimizations:
| Model Type | Throughput | Latency | Memory | GPU Util | 100K Examples |
|---|---|---|---|---|---|
| Wayra TensorRT | ~50,000/sec | <1ms | 2GB | 95% | ~2 hours |
| Wayra PyTorch | ~1,000/sec | 10ms | 4GB | 60% | ~28 hours |
| Llama 3 1B | ~200/sec | 50ms | 8GB | 40% | ~139 hours |
"TensorRT engine not compatible"
nvidia-smi (should be 12.8+)python -c "import tensorrt" (should be 10.13.x)nvidia-smi (should be 570.124.06+)"CUDA out of memory"
nvidia-smi -l 1"Import tensorrt failed"
pip uninstall tensorrt && pip install tensorrt==10.13.0Performance not as expected
nvidia-smi -q -d PERFORMANCEnvidia-smi -pm 1@software{WayraPPL,
title={WayraPPL: High-Performance Perplexity Estimation of Data Novelty},
author={Omar U. Florez and LatamGPT Team},
year={2025},
url={https://huggingface.co/latam-gpt/Wayra-Perplexity-Estimator-55M}
}
Apache 2.0 - See LICENSE file
Note: This model is optimized for A100 GPUs. For other GPUs, use the PyTorch version or retrain the TensorRT engine for your specific hardware.