Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nllb 3.3B translate from Chinese to Korean got: , , , , , , , , , , , , , , , #5440

Open
micronetboy opened this issue Feb 7, 2024 · 0 comments

Comments

@micronetboy
Copy link

nllb 3.3B translate from Chinese to Korean got: , , , , , , , , , , , , , , ,

source_text: 哈哈哈哈哈 说的什么玩意儿呀 这个声音太尖了 耳朵有点受不了哎
translated_text: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

the following is my code:
model_name = "facebook/nllb-200-3.3B"
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
model = AutoModelForSeq2SeqLM.from_pretrained(model_name, trust_remote_code=True).cuda()

translator = pipeline(
    'translation',
    model=model,
    tokenizer=tokenizer,
    src_lang=zho_Hans,
    tgt_lang=kor_Hang,
    max_length=4096,
    device='cuda'
)
@micronetboy micronetboy changed the title nllb 3.3B translate from Korean to Korean got: , , , , , , , , , , , , , , , nllb 3.3B translate from Chinese to Korean got: , , , , , , , , , , , , , , , Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant