-
Notifications
You must be signed in to change notification settings - Fork 4
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
Clean up command line options for intgemm. #1
Comments
@ugermann , you are also missing I have proposed a change to the interface in my pull request against master, which unfortunately is not getting any love. I can update this with the proposed changes over the next few days. It's something like |
You may want to include in that change, if you haven't done so yet, the new Backend::configureDevice() that does device configuration in a single location rather than 3 copies of the same* code block (4 including the server's translation worker, which does not use the Translator class). |
Missing where? In Backend::configureDevice()? |
@ugermann is this approach acceptable to you: https://github.com/marian-nmt/marian-dev/blob/intgemm_reintegrated/src/tensors/backend.h#L32 If so, I'll go ahead and merge (including the additional options specific to this branch, such as Cheers, Nick |
Suggestion:
With
and remove the "int8" and "int16" options. |
Hey Uli, Would this be acceptable? Here's what i coded. marian-nmt/marian-dev@22842e1 I don't like the number of permutations of intgemm options, so I'm welcome to suggestions. Cheers, Nick |
Note to the reader of this thread: conversation continues at marian-nmt/marian-dev@22842e1. |
@ugermann, now maybe. I changed it a bit so that it's more similar to what might get into master one day. Also, we need to update all of our scripts. |
I'm lost. Can you point me to the relevant branch/commit? And I'd propose
to change 'now maybe' to 'after the review'.
…On Mon, Jul 20, 2020 at 7:51 PM Nikolay Bogoychev ***@***.***> wrote:
@ugermann <https://github.com/ugermann>, now maybe. I changed it a bit so
that it's more similar to what might get into master one day. Also, we need
to update all of our scripts.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABCAWO3IYH2YPZJNPR6GZVTR4SG2HANCNFSM4OP3HTUQ>
.
--
Ulrich Germann
Senior Researcher
School of Informatics
University of Edinburgh
|
This branch: https://github.com/marian-nmt/marian-dev/compare/cmdparsing It can definitely wait for after the review. There are some other fixes that should land from the intgemm_reintegrated_computstats branch... whne i code them. |
If I understand correctly, there are currently there are currently 4 interconnected boolean command line options relating to intgemm
This does not make sense to me as options are either mutually exclusive (things can't be 8-bit and 16-bit at the same time), or imply one another, e.g. intgemm-shift implies intgemm-shift and intgemm-shift implies optimize8.
These four options should be combined into a single string-valued option --optimize with the values
which are then interpreted in cpu::Backed::configureDevice() in tensor/cpu/backend.h
This should happen sooner rather than later so that we don't have command line interface legacy issues. Easy to fix now, a nightmare to change later once people have started using these options.
cc: @kpu
The text was updated successfully, but these errors were encountered: