Views
No views yet
en -> urbest-bleuNLLB CCMatrix CCAligned OpenSubtitles Tanzil XLEnt \openlanguagedata_flores_plusopenlanguagedata_flores_plus.gitattributesconfig.jsongeneration_config.jsonmodel.safetensorssource.spmtarget.spmtokenizer_config.jsonvocab.json1from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
2
3repo_id = "YOUR_ORG/YOUR_MODEL"
4tokenizer = AutoTokenizer.from_pretrained(repo_id)
5model = AutoModelForSeq2SeqLM.from_pretrained(repo_id)
6
7text = "Hello world!"
8inputs = tokenizer(text, return_tensors="pt")
9outputs = model.generate(**inputs)
10print(tokenizer.batch_decode(outputs, skip_special_tokens=True)[0]).npz weights using the official Hugging Face Marian conversion module.