Downloads · 30 days
0
kmehrad/english-german-transformer
english-german-transformer is a translation model from kmehrad. Use it when you need text moved from one language to another. It is set up for pytorch. The card lists the license as apache-2.0.
A 63.1M-parameter encoder-decoder Transformer created from scratch by Kamron M (Hugging Face: kmehrad, Kaggle: kammehr) at PyM Studio.
Downloads · 30 days
0
Access
Public
Updated Jul 17, 2026
Repo size
329 MB
Likes
0
Public
Click a slice to open those files.
.pt329 MB · 99%
From the Hugging Face model README
A 63.1M-parameter encoder-decoder Transformer created from scratch by Kamron M (Hugging Face: kmehrad, Kaggle: kammehr) at PyM Studio.
The model translates English text to German. It was trained on the WMT14 English-German recipe and uses a joint 37,000-token byte-level BPE tokenizer. The published weights average five validation-best checkpoints. The best constituent validation loss was 2.9379.
averaged.pt: averaged PyTorch model weights and configurationmodeling_transformer.py: inference model definitiontranslate_interactive.py: beam-search translation CLItokenizer.json: joint English-German tokenizerrequirements.txt: minimal runtime dependenciesLICENSE: Apache License 2.0pip install -r requirements.txt
python translate_interactive.py
Or translate one sentence:
python translate_interactive.py "The cat is sleeping"
Use --device cpu or --device cuda to choose a device. Beam search
defaults to beam size 4 and length penalty 0.6.
Copyright 2026 Kamron M (Kaggle: kammehr), PyM Studio.
Licensed under the Apache License, Version 2.0. See LICENSE.