Downloads · 30 days
167
8% of all-time downloads
Minibase/Spanish-to-English-Translation-Standard
Spanish-to-English-Translation-Standard is a translation model from Minibase. Use it when you need text moved from one language to another. The card lists the license as apache-2.0.
Downloads · 30 days
167
8% of all-time downloads
All-time downloads
2.1K
Public
Repo size
386 MB
Likes
2
Public
Click a slice to open those files.
.gguf386 MB · 100%
From the Hugging Face model README
A compact Spanish-to-English translation model optimized for accuracy and efficiency.
Built by Minibase - Train and deploy small AI models from your browser. Browse all of the models and datasets available on the Minibase Marketplace.
</div>Minibase-Spanish-to-English-Translation-Standard is a specialized translation model that converts Spanish text to high-quality English translations. It maintains contextual accuracy while being optimized for fast, local inference without requiring external API calls.
Install llama.cpp (if not already installed):
# Clone and build llama.cpp
git clone https://github.com/ggerganov/llama.cpp
cd llama.cpp
make
# Return to project directory
cd ../spanish-english-standard
Download the GGUF model:
# Download model files from HuggingFace
wget https://huggingface.co/Minibase/Spanish-to-English-Translation-Standard/resolve/main/model.gguf
wget https://huggingface.co/Minibase/Spanish-to-English-Translation-Standard/resolve/main/spanish_english_inference.py
wget https://huggingface.co/Minibase/Spanish-to-English-Translation-Standard/resolve/main/config.json
wget https://huggingface.co/Minibase/Spanish-to-English-Translation-Standard/resolve/main/tokenizer_config.json
wget https://huggingface.co/Minibase/Spanish-to-English-Translation-Standard/resolve/main/generation_config.json
Start the model server:
# Start llama.cpp server with the GGUF model
./Minibase-spanish-to-english-translation-standard-imported.app/Contents/MacOS/run_server
Make API calls:
import requests
# Translate Spanish text via REST API
response = requests.post("http://127.0.0.1:8000/completion", json={
"prompt": "Instruction: Translate the following Spanish text to English.\n\nSpanish: Hola, ¿cómo estás? Me gustaría pedir una pizza con pepperoni.\n\nEnglish: ",
"max_tokens": 100,
"temperature": 0.1
})
result = response.json()
print(result["content"])
# Output: "Hello, how are you? I would like to order a pepperoni pizza."
# Download and use the provided Python client
from spanish_english_inference import TranslationClient
# Initialize client (connects to local server)
client = TranslationClient()
# Translate Spanish text to English
spanish_text = """La inteligencia artificial está revolucionando el mundo de la tecnología.
Cada día vemos avances increíbles en el procesamiento del lenguaje natural."""
translation = client.translate_text(spanish_text)
print(translation)
# Output: "Artificial intelligence is revolutionizing the world of technology.
# Every day we see incredible advances in natural language processing."
# Translate text directly from command line
python3 spanish_english_inference.py "Hola mundo"
# Output: "Hello world"
| Metric | Score | Description |
|---|---|---|
| METEOR | 79.7% | Word-level similarity with stemming |
| chrF | 72.7% | Character n-gram F-score |
| Semantic Similarity | 70.9% | Meaning similarity (Jaccard coefficient) |
| Length Ratio | 1.05 | Translation length vs source length |
| Average Latency | 111ms | Response time (CPU inference) |
Benchmark Details: Spanish translation test dataset (20 samples), Q8_0 quantization, 4096 token context
Instruction: Translate the following Spanish text to English.
Spanish: [Your Spanish text here]
English:
Why These Scores Are Perfect for Translation:
METEOR (79.7%): More flexible metric that considers synonyms and word order. Higher scores indicate more natural translations.
chrF (72.7%): Character-level metric good for morphologically rich languages like Spanish. Scores above 70% show excellent character-level accuracy.
Semantic Similarity (70.9%): Ensures the translation conveys the same meaning as the source text.
Length Ratio (1.05): Good translations typically maintain similar length to the source text.
Latency (111ms): Fast enough for real-time translation applications.
Key Insight: While BLEU scores might seem modest compared to large commercial models, this compact model provides excellent translation quality for its size and speed.
If you use Spanish-to-English-Translation-Standard in your research, please cite:
@misc{spanish-english-translation-standard-2025,
title={Spanish-to-English-Translation-Standard: A Compact Translation Model},
author={Minibase AI Team},
year={2025},
publisher={Hugging Face},
url={https://huggingface.co/Minibase/Spanish-to-English-Translation-Standard}
}
This model is released under the Apache License 2.0.
Built with ❤️ by the Minibase team
Making AI more accessible for everyone
</div>