Downloads · 30 days
13
15% of all-time downloads
raphaelmerx/madlad400-10b-ct2
madlad400-10b-ct2 is a translation model from raphaelmerx. Use it when you need text moved from one language to another. It is set up for transformers. The card lists the license as apache-2.0.
The google/madlad400-10b-mt model, converted to cTranslate2 format.
Downloads · 30 days
13
15% of all-time downloads
All-time downloads
84
Public
Repo size
42.9 GB
Likes
0
Public
Click a slice to open those files.
.bin42.9 GB · 100%
From the Hugging Face model README
The google/madlad400-10b-mt model, converted to cTranslate2 format.
Usage:
from huggingface_hub import snapshot_download
model_path = snapshot_download("santhosh/madlad400-3b-ct2")
tokenizer = SentencePieceProcessor()
tokenizer.load(f"{model_path}/sentencepiece.model")
translator = ctranslate2.Translator(model_path, device="cuda" if torch.cuda.is_available() else "cpu")
text = "<2pt> I love pizza!"
input_ids = tokenizer.encode(text, out_type=str)
outputs = model.translate_batch(
[input_ids],
batch_type="tokens",
beam_size=2,
no_repeat_ngram_size=1,
)
tokenizer.decode(results[0].hypotheses[0])
# Eu adoro pizza!