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

Simplify Inference #2429

Closed
wants to merge 4 commits into from
Closed

Conversation

l-k-11235
Copy link
Contributor

This PR aims to simplify inference by adding a translate_strings method to be applied to a list of raw strings.
It is used and it has been tested in eval_llm/MMLU/run_mmlu_opennmt.py and in docs/source/examples/replicate_vicuna/chatbot.py.

@l-k-11235
Copy link
Contributor Author

I should add an example for the inference from a list of strings here https://opennmt.net/OpenNMT-py/quickstart.html#step-3-translate

@vince62s
Copy link
Member

vince62s commented Jul 5, 2023

also remove the infer_opt changes in translator.py

@vince62s vince62s closed this Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants